工资单发放页面列表优化
This commit is contained in:
parent
328ad2b1d4
commit
7c330c2675
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue