ui ค้นหาทะเบียนประวัติ

This commit is contained in:
Kittapath 2023-07-21 14:21:19 +07:00
parent f1d1b722d8
commit 4547e3ea34
2 changed files with 169 additions and 0 deletions

View file

@ -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<string>("officer");
const profileEmployeeType = ref<string>("temp");
const retireYear = ref<number>();
const govAge = ref<number>();
const positionPath = ref<string>("");
const positionLevel = ref<string>("");
const positionExecutive = ref<string>("");
const employeePosition = ref<string>("");
const employeeLevel = ref<string>("");
const posNo = ref<string>("");
const initialPagination = ref<Pagination>({
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