แก้โค้ดตาม issue
This commit is contained in:
parent
3968d2b1a0
commit
bb6afbb98e
12 changed files with 323 additions and 252 deletions
|
|
@ -1706,52 +1706,50 @@ const fetchData = async () => {
|
|||
.then((res) => {
|
||||
let data = res.data.result;
|
||||
rows.value = [];
|
||||
data.map((e: any) => {
|
||||
rows.value.push({
|
||||
id: e.id,
|
||||
date: new Date(e.date),
|
||||
amount: e.amount,
|
||||
positionSalaryAmount: e.positionSalaryAmount,
|
||||
mouthSalaryAmount: e.mouthSalaryAmount,
|
||||
oc: e.oc,
|
||||
ocId: e.ocId,
|
||||
position: e.position,
|
||||
positionName: e.positionName,
|
||||
positionId:
|
||||
e.positionId !== "00000000-0000-0000-0000-000000000000"
|
||||
? e.positionId
|
||||
: "",
|
||||
posNo: e.posNo,
|
||||
posNoId:
|
||||
e.posNoId !== "00000000-0000-0000-0000-000000000000"
|
||||
? e.posNoId
|
||||
: "",
|
||||
positionLine: e.positionLine,
|
||||
positionLineName: e.positionLineName,
|
||||
positionLineId: e.positionLineId,
|
||||
positionPathSide: e.positionPathSide,
|
||||
positionPathSideId: e.positionPathSideId,
|
||||
positionPathSideName: e.positionPathSideName,
|
||||
positionType: e.positionType,
|
||||
positionTypeId: e.positionTypeId,
|
||||
positionLevelId: e.positionLevelId,
|
||||
positionLevel: e.positionLevel,
|
||||
positionExecutive: e.positionExecutive,
|
||||
positionExecutiveId: e.positionExecutiveId,
|
||||
positionExecutiveName: e.positionExecutiveName,
|
||||
positionExecutiveSide: e.positionExecutiveSide,
|
||||
positionExecutiveSideId: e.positionExecutiveSideId,
|
||||
salaryClass: e.salaryClass,
|
||||
salaryRef: e.salaryRef,
|
||||
salaryStatus: e.salaryStatus,
|
||||
refCommandNo: e.refCommandNo,
|
||||
createdFullName: e.createdFullName,
|
||||
orgName: e.orgName,
|
||||
agencyName: e.agencyName,
|
||||
cLevel: e.cLevel,
|
||||
createdAt: new Date(e.createdAt),
|
||||
});
|
||||
});
|
||||
rows.value = data.map((e: any) => ({
|
||||
id: e.id,
|
||||
date: new Date(e.date),
|
||||
amount: e.amount,
|
||||
positionSalaryAmount: e.positionSalaryAmount,
|
||||
mouthSalaryAmount: e.mouthSalaryAmount,
|
||||
oc: e.oc,
|
||||
ocId: e.ocId,
|
||||
position: e.position,
|
||||
positionName: e.positionName,
|
||||
positionId:
|
||||
e.positionId !== "00000000-0000-0000-0000-000000000000"
|
||||
? e.positionId
|
||||
: "",
|
||||
posNo: e.posNo,
|
||||
posNoId:
|
||||
e.posNoId !== "00000000-0000-0000-0000-000000000000"
|
||||
? e.posNoId
|
||||
: "",
|
||||
positionLine: e.positionLine,
|
||||
positionLineName: e.positionLineName,
|
||||
positionLineId: e.positionLineId,
|
||||
positionPathSide: e.positionPathSide,
|
||||
positionPathSideId: e.positionPathSideId,
|
||||
positionPathSideName: e.positionPathSideName,
|
||||
positionType: e.positionType,
|
||||
positionTypeId: e.positionTypeId,
|
||||
positionLevelId: e.positionLevelId,
|
||||
positionLevel: e.positionLevel,
|
||||
positionExecutive: e.positionExecutive,
|
||||
positionExecutiveId: e.positionExecutiveId,
|
||||
positionExecutiveName: e.positionExecutiveName,
|
||||
positionExecutiveSide: e.positionExecutiveSide,
|
||||
positionExecutiveSideId: e.positionExecutiveSideId,
|
||||
salaryClass: e.salaryClass,
|
||||
salaryRef: e.salaryRef,
|
||||
salaryStatus: e.salaryStatus,
|
||||
refCommandNo: e.refCommandNo,
|
||||
createdFullName: e.createdFullName,
|
||||
orgName: e.orgName,
|
||||
agencyName: e.agencyName,
|
||||
cLevel: e.cLevel,
|
||||
createdAt: new Date(e.createdAt),
|
||||
}));
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
|
|
@ -2257,46 +2255,44 @@ const clickHistory = async (row: RequestItemsObject) => {
|
|||
.then((res) => {
|
||||
let data = res.data.result;
|
||||
rowsHistory.value = [];
|
||||
data.map((e: any) => {
|
||||
rowsHistory.value.push({
|
||||
id: e.id,
|
||||
date: new Date(e.date),
|
||||
amount: e.amount,
|
||||
positionSalaryAmount: e.positionSalaryAmount,
|
||||
mouthSalaryAmount: e.mouthSalaryAmount,
|
||||
oc: e.oc,
|
||||
ocId: e.ocId,
|
||||
position: e.position,
|
||||
positionId: e.positionId,
|
||||
positionName: e.positionName,
|
||||
posNo: e.posNo,
|
||||
posNoId: e.posNoId,
|
||||
positionLine: e.positionLine,
|
||||
positionLineName: e.positionLineName,
|
||||
positionLineId: e.positionLineId,
|
||||
positionPathSide: e.positionPathSide,
|
||||
positionPathSideId: e.positionPathSideId,
|
||||
positionPathSideName: e.positionPathSideName,
|
||||
positionType: e.positionType,
|
||||
positionTypeId: e.positionTypeId,
|
||||
positionLevel: e.positionLevel,
|
||||
positionLevelId: e.positionLevelId,
|
||||
positionExecutive: e.positionExecutive,
|
||||
positionExecutiveId: e.positionExecutiveId,
|
||||
positionExecutiveName: e.positionExecutiveName,
|
||||
positionExecutiveSide: e.positionExecutiveSide,
|
||||
positionExecutiveSideId: e.positionExecutiveSideId,
|
||||
salaryClass: e.salaryClass,
|
||||
salaryStatus: e.salaryStatus,
|
||||
salaryRef: e.salaryRef,
|
||||
refCommandNo: e.refCommandNo,
|
||||
createdFullName: e.createdFullName,
|
||||
orgName: e.orgName,
|
||||
agencyName: e.agencyName,
|
||||
cLevel: e.cLevel,
|
||||
createdAt: new Date(e.createdAt),
|
||||
});
|
||||
});
|
||||
rowsHistory.value = data.map((e: any) => ({
|
||||
id: e.id,
|
||||
date: new Date(e.date),
|
||||
amount: e.amount,
|
||||
positionSalaryAmount: e.positionSalaryAmount,
|
||||
mouthSalaryAmount: e.mouthSalaryAmount,
|
||||
oc: e.oc,
|
||||
ocId: e.ocId,
|
||||
position: e.position,
|
||||
positionId: e.positionId,
|
||||
positionName: e.positionName,
|
||||
posNo: e.posNo,
|
||||
posNoId: e.posNoId,
|
||||
positionLine: e.positionLine,
|
||||
positionLineName: e.positionLineName,
|
||||
positionLineId: e.positionLineId,
|
||||
positionPathSide: e.positionPathSide,
|
||||
positionPathSideId: e.positionPathSideId,
|
||||
positionPathSideName: e.positionPathSideName,
|
||||
positionType: e.positionType,
|
||||
positionTypeId: e.positionTypeId,
|
||||
positionLevel: e.positionLevel,
|
||||
positionLevelId: e.positionLevelId,
|
||||
positionExecutive: e.positionExecutive,
|
||||
positionExecutiveId: e.positionExecutiveId,
|
||||
positionExecutiveName: e.positionExecutiveName,
|
||||
positionExecutiveSide: e.positionExecutiveSide,
|
||||
positionExecutiveSideId: e.positionExecutiveSideId,
|
||||
salaryClass: e.salaryClass,
|
||||
salaryStatus: e.salaryStatus,
|
||||
salaryRef: e.salaryRef,
|
||||
refCommandNo: e.refCommandNo,
|
||||
createdFullName: e.createdFullName,
|
||||
orgName: e.orgName,
|
||||
agencyName: e.agencyName,
|
||||
cLevel: e.cLevel,
|
||||
createdAt: new Date(e.createdAt),
|
||||
}));
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue