diff --git a/pc4mobx/hrmSalary/pages/calculateDetail/placeOnFileDetail.js b/pc4mobx/hrmSalary/pages/calculateDetail/placeOnFileDetail.js index e7e207a1..7034d970 100644 --- a/pc4mobx/hrmSalary/pages/calculateDetail/placeOnFileDetail.js +++ b/pc4mobx/hrmSalary/pages/calculateDetail/placeOnFileDetail.js @@ -42,6 +42,20 @@ export default class PlaceOnFileDetail extends React.Component { if (type === "PR") { if (id === "BATCHDELETE") { this.setState({ selectedRowKeys: record }); + }else if (id === "PAGEINFO") { + const { pageNum: current, size: pageSize } = record; + this.pageInfo = { current, pageSize }; + const payload = { + type: "PR", + listType: "", + url: "/api/bs/hrmsalary/salaryacct/acctresult/list", + queryParams: { + salaryAcctRecordId, + employeeName: this.state.searchValue, + current, pageSize + } + }; + childFrameObj.contentWindow.postMessage(JSON.stringify(payload), "*"); } } else { const payload = { @@ -54,7 +68,7 @@ export default class PlaceOnFileDetail extends React.Component { employeeName: this.state.searchValue } }; - childFrameObj.contentWindow.postMessage(JSON.stringify(payload), "*"); + type && childFrameObj.contentWindow.postMessage(JSON.stringify(payload), "*"); } }; diff --git a/pc4mobx/hrmSalary/pages/calculateDetail/salaryDetail.js b/pc4mobx/hrmSalary/pages/calculateDetail/salaryDetail.js index 749c7be0..6c018985 100644 --- a/pc4mobx/hrmSalary/pages/calculateDetail/salaryDetail.js +++ b/pc4mobx/hrmSalary/pages/calculateDetail/salaryDetail.js @@ -111,7 +111,7 @@ export default class SalaryDetail extends React.Component { employeeName: this.props.employeeName } }; - childFrameObj.contentWindow.postMessage(JSON.stringify(payload), "*"); + type && childFrameObj.contentWindow.postMessage(JSON.stringify(payload), "*"); } };