From afd02241d79e20a7e76a6b87011d1006d2651a8d Mon Sep 17 00:00:00 2001 From: waruneeta Date: Mon, 12 Feb 2024 14:31:56 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1?= =?UTF-8?q?=E0=B8=9B=E0=B8=B8=E0=B9=88=E0=B8=A1=E0=B8=AA=E0=B9=88=E0=B8=87?= =?UTF-8?q?=E0=B8=82=E0=B9=89=E0=B8=AD=E0=B8=A1=E0=B8=B9=E0=B8=A5=E0=B9=84?= =?UTF-8?q?=E0=B8=9B=E0=B8=95=E0=B8=A3=E0=B8=A7=E0=B8=88=E0=B8=AA=E0=B8=AD?= =?UTF-8?q?=E0=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/registry/api.profile.ts | 2 +- .../04_registry/components/Profile.vue | 37 ++++++++++++++++++- 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/src/api/registry/api.profile.ts b/src/api/registry/api.profile.ts index c4afaf591..c54f86e9b 100644 --- a/src/api/registry/api.profile.ts +++ b/src/api/registry/api.profile.ts @@ -201,7 +201,7 @@ export default { profileVerified: (profileId: string) => `${profile}verified/${profileId}`, profileVerifiedUnlock: (profileId: string) => `${profile}not-verified/${profileId}`, - + profileSendVerified: (profileId: string) => `${profile}send-verified/${profileId}`, registryNew, registryNewId: (id: string) => `${registryNew}${id}`, diff --git a/src/modules/04_registry/components/Profile.vue b/src/modules/04_registry/components/Profile.vue index 40503964b..dff43c81b 100644 --- a/src/modules/04_registry/components/Profile.vue +++ b/src/modules/04_registry/components/Profile.vue @@ -155,7 +155,7 @@
ยืนยันการตรวจสอบข้อมูล + + ส่งข้อมูลไปตรวจสอบ + { + showLoader(); + await http + .put(config.API.profileSendVerified(profileId.value)) + .then((res) => { + checIsVerified(); + success($q, "ส่งข้อมูลไปตรวจสอบสำเร็จ"); + }) + .catch((e) => { + messageError($q, e); + }) + .finally(() => { + hideLoader(); + }); + }, + "ยืนยันการส่งข้อมูลไปตรวจสอบ", + "ต้องการยืนยันการส่งข้อมูลไปตรวจสอบหรือไม่?" + ); +} + function onClickUnlock() { dialogConfirm( $q, @@ -1006,6 +1039,7 @@ const fetchData = async () => { }); }; +const isSendVerified = ref(false); async function checIsVerified() { // showLoader(); await http @@ -1014,6 +1048,7 @@ async function checIsVerified() { const data = res.data.result; profileStore.isVerified = data.isVerified; + isSendVerified.value = data.isSendVerified; if (roleRegistryverify.value || roleKeyregistry.value) { if (data.isVerified || roleRegistryverify.value) { profileStore.isEdit = false;