- updated paging ทะเบียนประวัติ

- ปรับเมนูระบบพัฒนา
This commit is contained in:
Warunee Tamkoo 2024-04-01 11:53:25 +07:00
parent e13f6fecb3
commit f4b5141b73
4 changed files with 96 additions and 69 deletions

View file

@ -684,9 +684,34 @@ const menuList = readonly<any[]>([
key: 14,
icon: "mdi-briefcase-account",
activeIcon: "mdi-briefcase-account",
label: "พัฒนาบุคลากร/การศึกษาต่อ",
label: "พัฒนาบุคลากร",
role: "development",
path: "developmentMain",
children: [
{
key: 14.1,
label: "โครงการ/หลักสูตรการฝึกอบรม",
path: "developmentMain",
role: "development",
},
{
key: 14.2,
label: "ประวัติการฝึกอบรม ขรก.",
path: "developmentHistory",
role: "development",
},
{
key: 14.3,
label: "ประวัติการฝึกอบรมลูกจ้าง",
path: "developmentEmployeeHistory",
role: "development",
},
{
key: 14.4,
label: "ขรก. ที่ได้รับทุนการศึกษา",
path: "developmentScholarship",
role: "development",
},
],
},
// {
// key: 99,

View file

@ -458,7 +458,7 @@ import PopupADdEmployee from "@/components/DialogAddEmployee.vue";
const currentPage = ref<number>(1);
const maxPage = ref<number>(1);
const page = ref<number>(1);
const rowsPerPage = ref<number>(20);
const rowsPerPage = ref<number>(50);
const attrs = ref<any>(useAttrs());

View file

@ -87,7 +87,7 @@
:page="page"
:maxPage="maxPage"
@update:pagination="updatePagingProp"
:rows-per-page-options="[20, 50, 100, 200]"
:rows-per-page-options="[50, 100, 200, 500]"
>
<template #columns="props">
<q-tr
@ -174,7 +174,7 @@ const { profileData, changeProfileColumns } = store;
const { changeTreeRegister, selectedRegister, expandedRegister } = dataStore;
const maxPage = ref<number>(1);
const rowsPerPage = ref<number>(20);
const rowsPerPage = ref<number>(50);
const page = ref<number>(1);
const mixin = useCounterMixin();
@ -200,7 +200,7 @@ const employeeLevel = ref<string>("");
const posNo = ref<string>("");
const initialPagination = ref<Pagination>({
page: 1,
rowsPerPage: 10,
rowsPerPage: 50,
});
const expanded = ref<string[]>([]);
const selected = ref<string>("");
@ -1213,7 +1213,7 @@ const changeTab = () => {
};
const onSelected = async (id: string) => {
rowsPerPage.value = 20;
rowsPerPage.value = 50;
page.value = 1;
await clickTree();
await doSearch();
@ -1268,33 +1268,33 @@ const doSearch = async () => {
});
}
if (isShowRetire.value !== null) {
cirteria.push({
criteriaType: "is_retire",
criteriaValue: isShowRetire.value.toString(),
});
}
// if (isShowRetire.value !== null) {
// cirteria.push({
// criteriaType: "is_retire",
// criteriaValue: isShowRetire.value.toString(),
// });
// }
if (isProbation.value !== null) {
cirteria.push({
criteriaType: "is_probation",
criteriaValue: isProbation.value.toString(),
});
}
// if (isProbation.value !== null) {
// cirteria.push({
// criteriaType: "is_probation",
// criteriaValue: isProbation.value.toString(),
// });
// }
if (retireYear.value !== null && retireYear.value !== undefined) {
cirteria.push({
criteriaType: "retire_year",
criteriaValue: retireYear.value,
});
}
// if (retireYear.value !== null && retireYear.value !== undefined) {
// cirteria.push({
// criteriaType: "retire_year",
// criteriaValue: retireYear.value,
// });
// }
if (govAge.value !== null && govAge.value !== undefined) {
cirteria.push({
criteriaType: "gov_age",
criteriaValue: govAge.value,
});
}
// if (govAge.value !== null && govAge.value !== undefined) {
// cirteria.push({
// criteriaType: "gov_age",
// criteriaValue: govAge.value,
// });
// }
if (employeeClass.value == "officer" || employeeClass.value == "employee") {
profileType.value = employeeClass.value;
@ -1321,47 +1321,47 @@ const doSearch = async () => {
}
}
if (positionPath.value !== null && positionPath.value !== "") {
cirteria.push({
criteriaType: "position_path",
criteriaValue: positionPath.value,
});
}
// 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 (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 (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 (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 (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 (posNo.value !== null && posNo.value !== "") {
// cirteria.push({
// criteriaType: "pos_no",
// criteriaValue: posNo.value,
// });
// }
if (selected.value == null || selected.value == "") return;
showLoader();

View file

@ -740,7 +740,8 @@ watch(
menuItem.key == 8 ||
menuItem.key == 9 ||
menuItem.key == 11 ||
menuItem.key == 12
menuItem.key == 12 ||
menuItem.key == 14
"
>
<div class="row items-center no-wrap">
@ -904,7 +905,8 @@ watch(
menuItem.key == 8 ||
menuItem.key == 9 ||
menuItem.key == 11 ||
menuItem.key == 12
menuItem.key == 12 ||
menuItem.key == 14
"
>
<template v-slot:header>