แก้ 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();
|
hideLoader();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
let queryParams: any = {
|
|
||||||
page: formPagePersonList.page,
|
|
||||||
pageSize: formPagePersonList.pageSize,
|
|
||||||
searchKeyword: formPagePersonList.keyword,
|
|
||||||
searchField: "fullName",
|
|
||||||
type: "perm",
|
|
||||||
};
|
|
||||||
http
|
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) => {
|
.then((res) => {
|
||||||
maxPage.value = Math.ceil(
|
maxPage.value = Math.ceil(
|
||||||
res.data.result.total / formPagePersonList.pageSize
|
res.data.result.total / formPagePersonList.pageSize
|
||||||
|
|
@ -174,8 +171,10 @@ async function fecthProfile() {
|
||||||
fullname: e.prefix + e.firstName + " " + e.lastName,
|
fullname: e.prefix + e.firstName + " " + e.lastName,
|
||||||
position: e.position,
|
position: e.position,
|
||||||
level:
|
level:
|
||||||
e.posType && e.posLevel ? e.posType + " (" + e.posLevel + ")" : "-",
|
e.posTypeName && e.posLevelName
|
||||||
organizationOrganization: findOrgName(e),
|
? e.posTypeName + " (" + e.posLevelName + ")"
|
||||||
|
: "-",
|
||||||
|
organizationOrganization: findOrgChildName(e),
|
||||||
}));
|
}));
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue