hotfix/2.9.42310.02

This commit is contained in:
黎永顺 2023-10-31 15:45:15 +08:00
parent e246e10af7
commit 6aed11a411
1 changed files with 16 additions and 2 deletions

View File

@ -88,7 +88,8 @@ class Index extends Component {
if (!selectItems) {
message.error(getLabel(111, "请选择表头字段"));
} else {
window.open(exportTempUrl, "_blank");
console.log(exportTempUrl);
// window.open(exportTempUrl, "_blank");
}
};
handleSelectedField = () => {
@ -155,7 +156,20 @@ class Index extends Component {
}
}, () => {
const { selectItems: salaryItems } = this.state.headerFieldsDialog;
cacheImportField({ salaryItems: salaryItems ? salaryItems.split(",") : [] }).then();
cacheImportField({ salaryItems: salaryItems ? salaryItems.split(",") : [] })
.then(({ status, errormsg }) => {
if (status) {
const payload = {
exportData: getURLParameters(exportTempUrl).exportData,
salaryAcctRecordId, salaryItemIds: salaryItems
};
this.setState(({
exportTempUrl: `/api/bs/hrmsalary/salaryacct/acctresult/importtemplate/export?${convertToUrlString(payload)}`
}));
} else {
message.error(errormsg);
}
});
})}
/>
</React.Fragment>