diff --git a/src/modules/04_registry/components/TableProfile.vue b/src/modules/04_registry/components/TableProfile.vue index aa56a8a57..0b7cb8a80 100644 --- a/src/modules/04_registry/components/TableProfile.vue +++ b/src/modules/04_registry/components/TableProfile.vue @@ -127,6 +127,7 @@ " > filterSelector(inputValue, doneFn,'employeeTypeOps' ) " --> + +
+ + + + + + +
{ @@ -393,6 +490,24 @@ const updateIsShowRetire = (value: string | number | null) => { const updateIsProbation = (value: string | number | null) => { emit("update:isProbation", value); }; +const updatePositionPath = (value: string | number | null) => { + emit("update:positionPath", value); +}; +const updatePositionLevel = (value: string | number | null) => { + emit("update:positionLevel", value); +}; +const updatePositionExecutive = (value: string | number | null) => { + emit("update:positionExecutive", value); +}; +const updateEmployeePosition = (value: string | number | null) => { + emit("update:employeePosition", value); +}; +const updateEmployeeLevel = (value: string | number | null) => { + emit("update:employeeLevel", value); +}; +const updatePosNo = (value: string | number | null) => { + emit("update:posNo", value); +}; // const updateProfileType = (value: string | number | null) => { // emit("update:profileType", value); // }; diff --git a/src/modules/04_registry/views/Main.vue b/src/modules/04_registry/views/Main.vue index 6d3758e01..0168d9cd5 100644 --- a/src/modules/04_registry/views/Main.vue +++ b/src/modules/04_registry/views/Main.vue @@ -73,6 +73,12 @@ v-model:govAge="govAge" v-model:isProbation="isProbation" v-model:isTab="isDrawer" + v-model:positionPath="positionPath" + v-model:positionLevel="positionLevel" + v-model:positionExecutive="positionExecutive" + v-model:employeePosition="employeePosition" + v-model:employeeLevel="employeeLevel" + v-model:posNo="posNo" :doSearch="doSearch" :onExport="onExport" :onTab="changeTab" @@ -160,6 +166,12 @@ const profileType = ref("officer"); const profileEmployeeType = ref("temp"); const retireYear = ref(); const govAge = ref(); +const positionPath = ref(""); +const positionLevel = ref(""); +const positionExecutive = ref(""); +const employeePosition = ref(""); +const employeeLevel = ref(""); +const posNo = ref(""); const initialPagination = ref({ rowsPerPage: 0, }); @@ -1256,6 +1268,48 @@ const doSearch = async () => { } } + if (positionPath.value !== null && positionPath.value !== "") { + cirteria.push({ + criteriaType: "position_path", + criteriaValue: positionPath.value, + }); + } + + if (positionLevel.value !== null && positionLevel.value !== "") { + cirteria.push({ + criteriaType: "position_level", + criteriaValue: positionLevel.value, + }); + } + + if (positionExecutive.value !== null && positionExecutive.value !== "") { + cirteria.push({ + criteriaType: "position_executive", + criteriaValue: positionExecutive.value, + }); + } + + if (employeePosition.value !== null && employeePosition.value !== "") { + cirteria.push({ + criteriaType: "employee_position", + criteriaValue: employeePosition.value, + }); + } + + if (employeeLevel.value !== null && employeeLevel.value !== "") { + cirteria.push({ + criteriaType: "employee_level", + criteriaValue: employeeLevel.value, + }); + } + + if (posNo.value !== null && posNo.value !== "") { + cirteria.push({ + criteriaType: "pos_no", + criteriaValue: posNo.value, + }); + } + if (selected.value == null || selected.value == "") return; loaderPage(true); await http