From 2aa55bc64227459db7ccb9824e2810008bb75e28 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Mon, 5 Feb 2024 14:46:03 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=20=E0=B8=95?= =?UTF-8?q?=E0=B8=B3=E0=B9=81=E0=B8=AB=E0=B8=99=E0=B9=88=E0=B8=87=E0=B9=80?= =?UTF-8?q?=E0=B8=87=E0=B8=B4=E0=B8=99=E0=B9=80=E0=B8=94=E0=B8=B7=E0=B8=AD?= =?UTF-8?q?=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/04_registry/components/Salary.vue | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/modules/04_registry/components/Salary.vue b/src/modules/04_registry/components/Salary.vue index 69dacf8c8..afe614290 100644 --- a/src/modules/04_registry/components/Salary.vue +++ b/src/modules/04_registry/components/Salary.vue @@ -1505,7 +1505,6 @@ watch(visibleColumns, async (count: String[], prevCount: String[]) => { onMounted(async () => { // await fetchPosition(); await getPosition(); - await fetchType(); // await nodeTree(); await fetchData(); }); @@ -2398,11 +2397,17 @@ async function fetchType() { hideLoader(); }); } -// watch(()=>modal.value,()=>{ -// if(modal.value == true){ -// getPosition() -// } -// }) +watch( + () => modal.value, + () => { + if (modal.value == true) { + positionTypeOptions.value = []; + positionLevelOptions.value = []; + positionLevelOptionsFilter.value = []; + fetchType(); + } + } +);