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) => {
|
handleImport = (payload) => {
|
||||||
const { importDialog } = this.state;
|
const { importDialog } = this.state;
|
||||||
this.setState({ importDialog: { ...importDialog, nextloading: true } });
|
this.setState({ importDialog: { ...importDialog, nextloading: true } });
|
||||||
|
|
@ -34,7 +46,7 @@ class Index extends Component {
|
||||||
if (status) {
|
if (status) {
|
||||||
this.setState({
|
this.setState({
|
||||||
importDialog: { ...importDialog, ...payload, importResult: data }
|
importDialog: { ...importDialog, ...payload, importResult: data }
|
||||||
}, ()=> this.props.onSuccess());
|
}, () => this.props.onSuccess());
|
||||||
}
|
}
|
||||||
}).catch(() => this.setState({ importDialog: { ...importDialog, nextloading: false } }));
|
}).catch(() => this.setState({ importDialog: { ...importDialog, nextloading: false } }));
|
||||||
};
|
};
|
||||||
|
|
@ -46,7 +58,7 @@ class Index extends Component {
|
||||||
{...this.props} {...importDialog}
|
{...this.props} {...importDialog}
|
||||||
onResetImportResult={() => this.setState({
|
onResetImportResult={() => this.setState({
|
||||||
importDialog: {
|
importDialog: {
|
||||||
...importDialog, importResult: {}, imageId: "", link: ""
|
...importDialog, importResult: {}, imageId: ""
|
||||||
}
|
}
|
||||||
})}
|
})}
|
||||||
exportDataDom={null}
|
exportDataDom={null}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue