ปรับ ทะเบียนประวัติ filter

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-05-21 11:34:42 +07:00
parent b27e8fb46f
commit 9707d557c7
2 changed files with 7 additions and 3 deletions

View file

@ -154,7 +154,7 @@ function clickSearch(type: string) {
rows.value = data.map((e: any) => ({
id: e.id,
citizenId: e.citizenId,
name: e.firstName + " " + e.lastName,
name: e.fullName,
posNo: e.posNo,
position: e.position,
date: date2Thai(e.date),
@ -190,7 +190,11 @@ function filterFn(val: string, update: any) {
}
}
function clickRedirect(id: string) {
router.push(`/registry/${id}`);
const url =
employeeClass.value === "officer"
? "registry-new"
: "registry-new-employee";
router.push(`${url}/${id}`);
}
const paging = ref<boolean>(true);

View file

@ -260,7 +260,7 @@ function selectType(item: DataOption) {
fetchLevel();
}
fetchDataPerson();
fetchDataPerson(true);
}
function selectPosType(item: DataOption) {