薪资核算详情页面列表bug修改

This commit is contained in:
黎永顺 2023-02-08 10:46:16 +08:00
parent b8f941d575
commit 7d5c026611
2 changed files with 16 additions and 2 deletions

View File

@ -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), "*");
}
};

View File

@ -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), "*");
}
};