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( + +
+ +
+
+ + + + +
+