custom/万德隆
This commit is contained in:
parent
971b4bf281
commit
b57cd59b2d
|
|
@ -26,6 +26,18 @@ class Index extends Component {
|
|||
};
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps, nextContext) {
|
||||
if (nextProps.visible !== this.props.visible && !nextProps.visible) {
|
||||
this.setState({
|
||||
importDialog: {
|
||||
nextloading: false, importResult: {}, imageId: "",
|
||||
previewUrl: "/api/bs/hrmsalary/salaryacct/wdl/previewWdlDynamicSalaryReport",
|
||||
link: "/api/bs/hrmsalary/salaryacct/wdl/exportDynamicSalaryReport"
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
handleImport = (payload) => {
|
||||
const { importDialog } = this.state;
|
||||
this.setState({ importDialog: { ...importDialog, nextloading: true } });
|
||||
|
|
@ -34,7 +46,7 @@ class Index extends Component {
|
|||
if (status) {
|
||||
this.setState({
|
||||
importDialog: { ...importDialog, ...payload, importResult: data }
|
||||
}, ()=> this.props.onSuccess());
|
||||
}, () => this.props.onSuccess());
|
||||
}
|
||||
}).catch(() => this.setState({ importDialog: { ...importDialog, nextloading: false } }));
|
||||
};
|
||||
|
|
@ -46,7 +58,7 @@ class Index extends Component {
|
|||
{...this.props} {...importDialog}
|
||||
onResetImportResult={() => this.setState({
|
||||
importDialog: {
|
||||
...importDialog, importResult: {}, imageId: "", link: ""
|
||||
...importDialog, importResult: {}, imageId: ""
|
||||
}
|
||||
})}
|
||||
exportDataDom={null}
|
||||
|
|
|
|||
Loading…
Reference in New Issue