parent
d9f3fafd51
commit
8af1f0a79a
|
|
@ -63,7 +63,7 @@ class Index extends Component {
|
|||
this.setState({
|
||||
importDialog: {
|
||||
...this.state.importDialog, link: this.handleExportTemp,
|
||||
visible: nextProps.visible, title: nextProps.title
|
||||
visible: nextProps.visible, title: nextProps.title, importResult: {}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,7 +29,10 @@ class Index extends Component {
|
|||
const { hasData, importDialog } = this.state;
|
||||
const { params, previewUrl } = nextProps;
|
||||
this.setState({
|
||||
importDialog: { ...importDialog, link: this.handleExportTemp, params, previewUrl, extraPreview: params }
|
||||
importDialog: {
|
||||
...importDialog, importResult: {}, link: this.handleExportTemp,
|
||||
params, previewUrl, extraPreview: params
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ class Index extends Component {
|
|||
if (isExtEmp) payload = { ...payload, extSalaryArchiveList: true };
|
||||
this.setState({
|
||||
importDialog: {
|
||||
...this.state.importDialog, extraPreview,
|
||||
...this.state.importDialog, extraPreview, importResult: {},
|
||||
link: `/api/bs/hrmsalary/salaryArchive/downloadTemplate?${convertToUrlString(payload)}`
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ class StandingBookCalcImportDialog extends Component {
|
|||
const { data } = await API[fieldUrl]();
|
||||
this.setState({
|
||||
importDialog: {
|
||||
...this.state.importDialog, link: this.handleExportTemp, title: getLabel(24023, "数据导入")
|
||||
...this.state.importDialog, importResult: {}, link: this.handleExportTemp, title: getLabel(24023, "数据导入")
|
||||
},
|
||||
headerFieldsDialog: {
|
||||
...this.state.headerFieldsDialog, itemsByGroup: data,
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ class Index extends Component {
|
|||
};
|
||||
this.setState({
|
||||
importDialog: {
|
||||
...this.state.importDialog,
|
||||
...this.state.importDialog, importResult: {},
|
||||
link: `/api/bs/hrmsalary/scheme/template/export?${convertToUrlString(payload)}`
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue