โครงสร้างอัตรากำลัง => จัดลำดับตำแหน่ง แสดชื้่อคนครอง
This commit is contained in:
parent
a40c2464b2
commit
a319e4efa9
2 changed files with 4 additions and 2 deletions
|
|
@ -79,13 +79,15 @@ function getData() {
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
const dataList = res.data.result.data;
|
const dataList = res.data.result.data;
|
||||||
|
console.log(dataList);
|
||||||
|
|
||||||
const dataMap = dataList.map((item: any) => ({
|
const dataMap = dataList.map((item: any) => ({
|
||||||
id: item.id,
|
id: item.id,
|
||||||
name: `${item.orgShortname}${
|
name: `${item.orgShortname}${
|
||||||
item.posMasterNoPrefix ? item.posMasterNoPrefix : ""
|
item.posMasterNoPrefix ? item.posMasterNoPrefix : ""
|
||||||
}${item.posMasterNo ? item.posMasterNo : ""}${
|
}${item.posMasterNo ? item.posMasterNo : ""}${
|
||||||
item.posMasterNoSuffix ? item.posMasterNoSuffix : ""
|
item.posMasterNoSuffix ? item.posMasterNoSuffix : ""
|
||||||
}`,
|
} ${item.fullNameNextHolder ? item.fullNameNextHolder : ""}`,
|
||||||
posMasterNoPrefix: item.posMasterNoPrefix,
|
posMasterNoPrefix: item.posMasterNoPrefix,
|
||||||
posMasterNo: item.posMasterNo,
|
posMasterNo: item.posMasterNo,
|
||||||
posMasterNoSuffix: item.posMasterNoSuffix,
|
posMasterNoSuffix: item.posMasterNoSuffix,
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,7 @@ function getData() {
|
||||||
item.posMasterNoPrefix ? item.posMasterNoPrefix : ""
|
item.posMasterNoPrefix ? item.posMasterNoPrefix : ""
|
||||||
}${item.posMasterNo ? item.posMasterNo : ""}${
|
}${item.posMasterNo ? item.posMasterNo : ""}${
|
||||||
item.posMasterNoSuffix ? item.posMasterNoSuffix : ""
|
item.posMasterNoSuffix ? item.posMasterNoSuffix : ""
|
||||||
}`,
|
} ${item.fullNameNextHolder ? item.fullNameNextHolder : ""}`,
|
||||||
posMasterNoPrefix: item.posMasterNoPrefix,
|
posMasterNoPrefix: item.posMasterNoPrefix,
|
||||||
posMasterNo: item.posMasterNo,
|
posMasterNo: item.posMasterNo,
|
||||||
posMasterNoSuffix: item.posMasterNoSuffix,
|
posMasterNoSuffix: item.posMasterNoSuffix,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue