From 8845a23b4d2d78c22729baf05245076ab5fd8b46 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 12 Feb 2026 15:53:22 +0700 Subject: [PATCH 1/3] feat:filter holdPosition --- .../21_report/views/02_reportRegistry.vue | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/src/modules/21_report/views/02_reportRegistry.vue b/src/modules/21_report/views/02_reportRegistry.vue index 018c8f831..88049f513 100644 --- a/src/modules/21_report/views/02_reportRegistry.vue +++ b/src/modules/21_report/views/02_reportRegistry.vue @@ -82,6 +82,14 @@ const positionExecutive = ref(""); //ตำแหน่งทางก const executiveOps = ref([]); //ตัวเลือกรายการตำแหน่งทางการบริหาร const executiveOpsMain = ref([]); //ตัวเลือกรายการตำแหน่งทางการบริหาร +const holdPosition = ref(""); //ตำแหน่งทางการบริหาร +const holdPositionOps = ref([]); //ตัวเลือกการครองตำแหน่ง +const holdPositionOpsMain = ref([ + { id: "", name: "ทั้งหมด" }, + { id: "hold", name: "ครองตำแหน่ง" }, + { id: "not-hold", name: "ไม่ครองตำแหน่ง" }, +]); //ตัวเลือกการครองตำแหน่ง + /** สภานภาพ */ const gender = ref(""); //เพศ const genderOpsMain = ref([]); //ตัวเลือกหลัก เพศ @@ -442,6 +450,10 @@ function filterOption(val: string, update: any, typeOp: string) { : retireTypeOpsMainEMP.value.filter( (v: DataOption) => v.name.indexOf(val) > -1 ); + } else if (typeOp == "holdPosition") { + holdPositionOps.value = holdPositionOpsMain.value.filter( + (v: DataOption) => v.name.indexOf(val) > -1 + ); } }); } @@ -557,6 +569,7 @@ async function onSearch() { posLevel: posLevel.value, position: position.value, positionExecutive: positionExecutive.value, + holdPosition: holdPosition.value, gender: gender.value, status: status.value, education: education.value.trim(), @@ -754,6 +767,7 @@ function clearFilter() { posLevel.value = ""; //ระดับตำแหน่ง, ชั้นงาน position.value = ""; //ตำแหน่งในสายงาน positionExecutive.value = ""; //ตำแหน่งทางการบริหาร + holdPosition.value = ""; //การครองตำแหน่ง gender.value = ""; //เพศ status.value = ""; //สถานภาพ education.value = ""; //วุฒิการศึกษา @@ -1244,6 +1258,48 @@ watch( + +
+ +
+
+ + + + +
+
Date: Thu, 19 Feb 2026 10:52:39 +0700 Subject: [PATCH 2/3] fix(report-registry): add Query Parameter isCurrent --- src/modules/21_report/views/02_reportRegistry.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/modules/21_report/views/02_reportRegistry.vue b/src/modules/21_report/views/02_reportRegistry.vue index 88049f513..d382a8359 100644 --- a/src/modules/21_report/views/02_reportRegistry.vue +++ b/src/modules/21_report/views/02_reportRegistry.vue @@ -569,7 +569,12 @@ async function onSearch() { posLevel: posLevel.value, position: position.value, positionExecutive: positionExecutive.value, - holdPosition: holdPosition.value, + isCurrent: + holdPosition.value === "ครองตำแหน่ง" + ? true + : holdPosition.value === "ไม่ครองตำแหน่ง" + ? false + : undefined, gender: gender.value, status: status.value, education: education.value.trim(), From 1d37e1720d74e083b938c1d5b57356901703ee90 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 19 Feb 2026 10:54:12 +0700 Subject: [PATCH 3/3] fix: keyword holdPositionOpsMain --- src/modules/21_report/views/02_reportRegistry.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/21_report/views/02_reportRegistry.vue b/src/modules/21_report/views/02_reportRegistry.vue index d382a8359..69c2f3a5f 100644 --- a/src/modules/21_report/views/02_reportRegistry.vue +++ b/src/modules/21_report/views/02_reportRegistry.vue @@ -86,8 +86,8 @@ const holdPosition = ref(""); //ตำแหน่งทางการ const holdPositionOps = ref([]); //ตัวเลือกการครองตำแหน่ง const holdPositionOpsMain = ref([ { id: "", name: "ทั้งหมด" }, - { id: "hold", name: "ครองตำแหน่ง" }, - { id: "not-hold", name: "ไม่ครองตำแหน่ง" }, + { id: "hold", name: "ครอง" }, + { id: "not-hold", name: "ไม่ครอง" }, ]); //ตัวเลือกการครองตำแหน่ง /** สภานภาพ */ @@ -570,9 +570,9 @@ async function onSearch() { position: position.value, positionExecutive: positionExecutive.value, isCurrent: - holdPosition.value === "ครองตำแหน่ง" + holdPosition.value === "ครอง" ? true - : holdPosition.value === "ไม่ครองตำแหน่ง" + : holdPosition.value === "ไม่ครอง" ? false : undefined, gender: gender.value,