From 85d2035b001e5c2795e60de2e41653b3a71ecbdb Mon Sep 17 00:00:00 2001 From: puriphatt Date: Tue, 16 Jul 2024 02:11:18 +0000 Subject: [PATCH] fix: 02,03 surface color --- .../02_personnel-management/MainPage.vue | 52 ++++++++----------- src/pages/03_customer-management/MainPage.vue | 14 ++--- 2 files changed, 28 insertions(+), 38 deletions(-) diff --git a/src/pages/02_personnel-management/MainPage.vue b/src/pages/02_personnel-management/MainPage.vue index 705db843..19959c3b 100644 --- a/src/pages/02_personnel-management/MainPage.vue +++ b/src/pages/02_personnel-management/MainPage.vue @@ -266,31 +266,26 @@ async function openDialog( agencyFileList.value = result; } } - } if(userStore.userOption.hqOpts.length !== 0) { - + } + if (userStore.userOption.hqOpts.length !== 0) { hqId.value = userStore.userOption.hqOpts[0].value; } - if(userStore.userOption.hqOpts.length === 0) { + if (userStore.userOption.hqOpts.length === 0) { console.log('no hq'); - dialog({ - color: 'warning', - icon: 'mdi-alert', - title: t('warning'), - actionText: t('agree'), - persistent: true, - message: t('headquartersNotEstablished'), - action: async () => { + dialog({ + color: 'warning', + icon: 'mdi-alert', + title: t('warning'), + actionText: t('agree'), + persistent: true, + message: t('headquartersNotEstablished'), + action: async () => {}, + }); - }, - }); - - - return - + return; } - if (action === 'FORM') { modal.value = true; } else if (action === 'INFO') { @@ -710,12 +705,12 @@ watch(inputSearch, async () => await fetchUserList());
@@ -939,7 +934,7 @@ watch(inputSearch, async () => await fetchUserList());
-
+
await fetchUserList()); openDialog('INFO', props.row.id); } " - v-close-popup - clickable + v-close-popup + clickable dense class="row q-py-sm" style="white-space: nowrap" @@ -1133,8 +1128,8 @@ watch(inputSearch, async () => await fetchUserList()); await fetchUserList());
@@ -1783,7 +1783,10 @@ watch([inputSearch, currentStatus], async () => { class="col" >