updated
This commit is contained in:
parent
24a8d5130b
commit
c91482ef7c
1 changed files with 4 additions and 5 deletions
|
|
@ -155,7 +155,7 @@
|
||||||
<q-space />
|
<q-space />
|
||||||
<div v-if="roleRegistryverify || roleKeyregistry">
|
<div v-if="roleRegistryverify || roleKeyregistry">
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="!isVerified && roleRegistryverify"
|
v-if="!profileStore.isVerified && roleRegistryverify"
|
||||||
outlined
|
outlined
|
||||||
color="green"
|
color="green"
|
||||||
icon="verified"
|
icon="verified"
|
||||||
|
|
@ -165,7 +165,7 @@
|
||||||
<q-tooltip>ยืนยันการตรวจสอบข้อมูล</q-tooltip>
|
<q-tooltip>ยืนยันการตรวจสอบข้อมูล</q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
<q-btn
|
<q-btn
|
||||||
v-else-if="isVerified && roleRegistryverify"
|
v-else-if="profileStore.isVerified && roleRegistryverify"
|
||||||
outlined
|
outlined
|
||||||
color="warning"
|
color="warning"
|
||||||
icon="mdi-lock-open"
|
icon="mdi-lock-open"
|
||||||
|
|
@ -175,7 +175,7 @@
|
||||||
<q-tooltip>ปลดล็อคให้แก้ไขข้อมูล</q-tooltip>
|
<q-tooltip>ปลดล็อคให้แก้ไขข้อมูล</q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
<q-btn
|
<q-btn
|
||||||
v-else-if="isVerified && roleKeyregistry"
|
v-else-if="profileStore.isVerified && roleKeyregistry"
|
||||||
flat
|
flat
|
||||||
color="green"
|
color="green"
|
||||||
icon="verified"
|
icon="verified"
|
||||||
|
|
@ -942,7 +942,7 @@ onMounted(async () => {
|
||||||
await checIsVerified();
|
await checIsVerified();
|
||||||
});
|
});
|
||||||
|
|
||||||
const isVerified = ref<boolean>(false);
|
// const isVerified = ref<boolean>(false);
|
||||||
const fetchData = async () => {
|
const fetchData = async () => {
|
||||||
showLoader();
|
showLoader();
|
||||||
await http
|
await http
|
||||||
|
|
@ -964,7 +964,6 @@ const fetchData = async () => {
|
||||||
leaveReason.value = ` (พ้นจากราชการด้วยสาเหตุ: ${data.leaveReason})`;
|
leaveReason.value = ` (พ้นจากราชการด้วยสาเหตุ: ${data.leaveReason})`;
|
||||||
}
|
}
|
||||||
reasonStatus.value = reason.length > 0 ? true : false;
|
reasonStatus.value = reason.length > 0 ? true : false;
|
||||||
isVerified.value = data.isVerified ? data.isVerified : false;
|
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue