From fd4d45638c6800b954853a44dfdd444b28598096 Mon Sep 17 00:00:00 2001 From: waruneeta Date: Thu, 8 Feb 2024 14:12:00 +0700 Subject: [PATCH] updated --- .../04_registry/components/Information/top.vue | 2 +- src/modules/04_registry/components/Profile.vue | 15 ++++++++------- src/modules/04_registry/store.ts | 2 ++ 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/modules/04_registry/components/Information/top.vue b/src/modules/04_registry/components/Information/top.vue index 5c0d55de4..f9a7c4824 100644 --- a/src/modules/04_registry/components/Information/top.vue +++ b/src/modules/04_registry/components/Information/top.vue @@ -15,7 +15,7 @@ {{ header }} -
+
", data.isVerified); + console.log("roleRegistryverify===>", roleRegistryverify.value); + console.log("roleKeyregistry===>", roleKeyregistry.value); + if (data.isVerified || roleRegistryverify.value) { + profileStore.isEdit = false; + } else { + profileStore.isEdit = true; + } }) .catch((err) => { messageError($q, err); diff --git a/src/modules/04_registry/store.ts b/src/modules/04_registry/store.ts index b41fae61f..4296aba60 100644 --- a/src/modules/04_registry/store.ts +++ b/src/modules/04_registry/store.ts @@ -3,6 +3,7 @@ import { defineStore } from "pinia"; export const useProfileDataStore = defineStore("profile", () => { const isVerified = ref(false); + const isEdit = ref(false); const emplployeeClass = ref(""); interface profile { main: { columns: String[] }; @@ -79,6 +80,7 @@ export const useProfileDataStore = defineStore("profile", () => { return { isLoad, isVerified, + isEdit, profileData, changeProfileColumns, birthDate,