工资单发放页面列表优化

This commit is contained in:
黎永顺 2023-03-17 14:36:45 +08:00
parent 328ad2b1d4
commit 7c330c2675
1 changed files with 6 additions and 2 deletions

View File

@ -22,10 +22,13 @@ export default class PayrollDetail extends React.Component {
};
}
componentWillMount() {
this.getPayrollDetailList();
}
componentDidMount() {
this.getPayrollInfo();
this.getPayrollDetailSa();
this.getPayrollDetailList();
window.addEventListener("message", this.handleReceiveMessage, false);
}
@ -62,6 +65,7 @@ export default class PayrollDetail extends React.Component {
showSum: status && sysData === "1",
salaryBillSendSum
}), "*");
this.getPayrollDetailList({ child: type });
}
};
getPayrollInfo = () => {
@ -107,7 +111,7 @@ export default class PayrollDetail extends React.Component {
pageInfo: { ...pageInfo, current, pageSize, total }
}, () => {
const { pageInfo, dataSource, columns, salaryBillSendSum, showSum } = this.state;
child === "PAGEINFO" &&
(child === "PAGEINFO" || child === "init") &&
childFrameObj.contentWindow.postMessage(JSON.stringify({
dataSource,
columns,