แก้ api รายชื่อตอนเพิ่มเกษียณลูกจ้าง
This commit is contained in:
parent
a1fa91798f
commit
ad47cc72c4
1 changed files with 9 additions and 10 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue