From 70bd64ba19cd14771a3c71064f260f4d8562f302 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 12 Feb 2024 11:02:48 +0700 Subject: [PATCH] =?UTF-8?q?UI=20=E0=B9=82=E0=B8=84=E0=B8=A3=E0=B8=87?= =?UTF-8?q?=E0=B8=AA=E0=B8=A3=E0=B9=89=E0=B8=B2=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/DialogSelectPerson.vue | 332 +++++++++--------- .../components/mainTree.vue | 27 +- 2 files changed, 181 insertions(+), 178 deletions(-) diff --git a/src/modules/02_organizationalNew/components/DialogSelectPerson.vue b/src/modules/02_organizationalNew/components/DialogSelectPerson.vue index 02dc8fc88..aec7d50e6 100644 --- a/src/modules/02_organizationalNew/components/DialogSelectPerson.vue +++ b/src/modules/02_organizationalNew/components/DialogSelectPerson.vue @@ -520,174 +520,176 @@ watch([() => page.value, () => pageSize.value], () => { ค้นหาคนครอง
-
-
- -
-
- -
-
- -
-
- - -
-
- -
+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+
+ +
- -
- - - + + +
diff --git a/src/modules/02_organizationalNew/components/mainTree.vue b/src/modules/02_organizationalNew/components/mainTree.vue index 9d0fb2102..88d482208 100644 --- a/src/modules/02_organizationalNew/components/mainTree.vue +++ b/src/modules/02_organizationalNew/components/mainTree.vue @@ -114,19 +114,20 @@ function updateSelected(data: DataTree) { }) .then(async (res: any) => { const data = await res.data.result; - - store.getSumPosition({ - totalPosition: data.totalPosition, - totalPositionCurrentUse: data.totalPositionCurrentUse, - totalPositionCurrentVacant: data.totalPositionCurrentVacant, - totalPositionNextUse: data.totalPositionNextUse, - totalPositionNextVacant: data.totalPositionNextVacant, - totalRootPosition: data.totalPosition, - totalRootPositionCurrentUse: data.totalPositionCurrentUse, - totalRootPositionCurrentVacant: data.totalPositionCurrentVacant, - totalRootPositionNextUse: data.totalPositionNextUse, - totalRootPositionNextVacant: data.totalPositionNextVacant, - }); + if (data) { + store.getSumPosition({ + totalPosition: data.totalPosition, + totalPositionCurrentUse: data.totalPositionCurrentUse, + totalPositionCurrentVacant: data.totalPositionCurrentVacant, + totalPositionNextUse: data.totalPositionNextUse, + totalPositionNextVacant: data.totalPositionNextVacant, + totalRootPosition: data.totalPosition, + totalRootPositionCurrentUse: data.totalPositionCurrentUse, + totalRootPositionCurrentVacant: data.totalPositionCurrentVacant, + totalRootPositionNextUse: data.totalPositionNextUse, + totalRootPositionNextVacant: data.totalPositionNextVacant, + }); + } }); // } }