From 5fbb76690cc1c4cd7fd409c3f3528ab2604b464f Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 12 Feb 2026 13:17:27 +0700 Subject: [PATCH] fix:add field isAllRoot To API act/search --- src/modules/17_acting/views/main.vue | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/modules/17_acting/views/main.vue b/src/modules/17_acting/views/main.vue index 80c8f3c68..d36b9d9f6 100644 --- a/src/modules/17_acting/views/main.vue +++ b/src/modules/17_acting/views/main.vue @@ -46,6 +46,8 @@ const nodeTree = ref([]); const posmasterId = ref(""); const isAll = ref(false); const modalCommand = ref(false); + +const isAllRoot = ref(false); /** * function เรียกข้อมูลโครงสร้าง แบบปัจุบัน */ @@ -166,6 +168,7 @@ async function fetchPosMaster() { .post(config.API.orgPosAct + `/search`, { posmasterId: posmasterId.value, isAll: isAll.value, + isAllRoot: isAllRoot.value, }) .then((res) => { const data = res.data.result; @@ -186,6 +189,11 @@ function updateIsAll(val: boolean) { fetchPosMaster(); } +function updateIsAllRoot(val: boolean) { + isAllRoot.value = val; + fetchPosMaster(); +} + /** * function เลือกราชชื่อรักษาการ * @param data ข้อมูลรายชื่อ @@ -475,6 +483,18 @@ onMounted(async () => {
+
+ + แสดงทั้งหมดภายใต้หน่วยงาน + +
+