ปรับ ทะเบียนประวัติ filter
This commit is contained in:
parent
b27e8fb46f
commit
9707d557c7
2 changed files with 7 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -260,7 +260,7 @@ function selectType(item: DataOption) {
|
|||
fetchLevel();
|
||||
}
|
||||
|
||||
fetchDataPerson();
|
||||
fetchDataPerson(true);
|
||||
}
|
||||
|
||||
function selectPosType(item: DataOption) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue