From b515bc36c05db7d8fbdbc373538104ab9e8c46ce Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Thu, 3 Apr 2025 16:21:55 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=82=E0=B8=AB?= =?UTF-8?q?=E0=B8=A5=E0=B8=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Dialogs/DialogOrgSelectOneStep.vue | 21 +------------------ 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/src/components/Dialogs/DialogOrgSelectOneStep.vue b/src/components/Dialogs/DialogOrgSelectOneStep.vue index 334ad3ed6..a5b50aad2 100644 --- a/src/components/Dialogs/DialogOrgSelectOneStep.vue +++ b/src/components/Dialogs/DialogOrgSelectOneStep.vue @@ -53,7 +53,6 @@ const selectedModal = defineModel("selectedModal"); const filter = ref(""); const isAll = ref(false); -const isBlank = ref(false); const positionNo = ref([]); const itemTaps = ref(); const positionId = ref(""); @@ -124,7 +123,6 @@ function close() { modal.value = false; filter.value = ""; isAll.value = false; - isBlank.value = false; expanded.value = []; nodeLevel.value = 0; nodeId.value = ""; @@ -208,24 +206,6 @@ watch( } ); -watch( - () => isAll.value, - (value, oldVal) => { - if (value !== oldVal) { - getDataTable(nodeId.value, nodeLevel.value); - } - } -); - -watch( - () => isBlank.value, - (value, oldVal) => { - if (value !== oldVal) { - getDataTable(nodeId.value, nodeLevel.value); - } - } -); - watch( () => positionId.value, (n) => { @@ -324,6 +304,7 @@ onMounted(async () => { v-model="isAll" label="แสดงทั้งหมด" color="primary" + @click="getDataTable(nodeId, nodeLevel)" > แสดงทั้งหมด