From 7d5c026611aa1af7d01832d8bda0d1836d011141 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com> Date: Wed, 8 Feb 2023 10:46:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=96=AA=E8=B5=84=E6=A0=B8=E7=AE=97=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E9=9D=A2=E5=88=97=E8=A1=A8bug=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/calculateDetail/placeOnFileDetail.js | 16 +++++++++++++++- .../pages/calculateDetail/salaryDetail.js | 2 +- 2 files changed, 16 insertions(+), 2 deletions(-) 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), "*"); } };