From 8ebbef05d96d1d6e539af095b9f1b45591ab1ede Mon Sep 17 00:00:00 2001 From: AnandaTon Date: Tue, 19 Sep 2023 13:17:11 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84=E0=B8=82?= =?UTF-8?q?=20get=20dialog=20nodetree?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/02_organizational/views/MainTreeEmployee.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/02_organizational/views/MainTreeEmployee.vue b/src/modules/02_organizational/views/MainTreeEmployee.vue index 44e92526f..67b2cdab7 100644 --- a/src/modules/02_organizational/views/MainTreeEmployee.vue +++ b/src/modules/02_organizational/views/MainTreeEmployee.vue @@ -970,7 +970,6 @@ onMounted(async () => { await fetchOrganizationAgencyCode(); await fetchPosition(); await fetchData(); - await nodeTree(); }); const onSelected = async (id: string) => { @@ -1608,7 +1607,7 @@ const selectData = async (props: any) => { /** * กดปุ่มเพิ่มบน table */ -const clickAdd = () => { +const clickAdd = async () => { editRow.value = false; modalEdit.value = false; modal.value = true; @@ -1648,6 +1647,7 @@ const clickAdd = () => { isActive.value = false; isCondition.value = false; conditionNote.value = ""; + await nodeTree(); }; /**เมื่อเลือกใหม่