แก้ api รายชื่อตอนเพิ่มเกษียณลูกจ้าง

This commit is contained in:
setthawutttty 2025-01-21 11:28:07 +07:00
parent a1fa91798f
commit ad47cc72c4

View file

@ -152,15 +152,12 @@ async function fecthProfile() {
hideLoader();
});
} else {
let queryParams: any = {
page: formPagePersonList.page,
pageSize: formPagePersonList.pageSize,
searchKeyword: formPagePersonList.keyword,
searchField: "fullName",
type: "perm",
};
http
.get(config.API.registryNew("-employee"), { params: queryParams })
.post(config.API.registryNew("-employee") + "/retire", {
page: formPagePersonList.page,
pageSize: formPagePersonList.pageSize,
keyword: formPagePersonList.keyword,
})
.then((res) => {
maxPage.value = Math.ceil(
res.data.result.total / formPagePersonList.pageSize
@ -174,8 +171,10 @@ async function fecthProfile() {
fullname: e.prefix + e.firstName + " " + e.lastName,
position: e.position,
level:
e.posType && e.posLevel ? e.posType + " (" + e.posLevel + ")" : "-",
organizationOrganization: findOrgName(e),
e.posTypeName && e.posLevelName
? e.posTypeName + " (" + e.posLevelName + ")"
: "-",
organizationOrganization: findOrgChildName(e),
}));
})
.catch((err) => {