From 0c0dffe34bcba99ca4a35fd6557b29e791d188d7 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Wed, 10 Sep 2025 17:13:03 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=82?= =?UTF-8?q?=E0=B8=AB=E0=B8=A5=E0=B8=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/02_users/views/03_permissionsView.vue | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/modules/02_users/views/03_permissionsView.vue b/src/modules/02_users/views/03_permissionsView.vue index ccaf097c..7ded91c7 100644 --- a/src/modules/02_users/views/03_permissionsView.vue +++ b/src/modules/02_users/views/03_permissionsView.vue @@ -477,15 +477,10 @@ watch([() => reqMaster.pageSize], () => { fetchDataTable(reqMaster.id, reqMaster.revisionId, reqMaster.type); }); -/** callblck function ทำการ fetch ข้อมูล Table เมื่อมีการเปลี่ยนจำนวนต่อแแแถว*/ -watch( - () => [reqMaster.isAll, reqMaster.isBlank], - () => { - reqMaster.page = 1; - - fetchDataTable(reqMaster.id, reqMaster.revisionId, reqMaster.type); - } -); +function isUpload() { + reqMaster.page = 1; + fetchDataTable(reqMaster.id, reqMaster.revisionId, reqMaster.type); +} onMounted(() => { fetchOrganizationActive(); @@ -630,6 +625,7 @@ onMounted(() => { v-model="reqMaster.isBlank" label="แสดงเฉพาะตำแหน่งว่าง" color="primary" + @update:model-value="isUpload" > แสดงเฉพาะตำแหน่งว่าง @@ -642,6 +638,7 @@ onMounted(() => { v-model="reqMaster.isAll" label="แสดงตำแหน่งทั้งหมด" color="primary" + @update:model-value="isUpload" > แสดงตำแหน่งทั้งหมดภายใต้หน่วยงาน/ส่วนราชการที่เลือก