hotfix/2.9.42310.02
This commit is contained in:
parent
e246e10af7
commit
6aed11a411
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue