release/2.19.1.2501.01

This commit is contained in:
lys 2025-04-01 15:05:39 +08:00
parent bb3ded5692
commit 925bc0f75a
1 changed files with 4 additions and 1 deletions

View File

@ -30,6 +30,7 @@ class Index extends Component {
componentWillReceiveProps(nextProps, nextContext) { componentWillReceiveProps(nextProps, nextContext) {
const { importDialog } = this.state; const { importDialog } = this.state;
if (nextProps.visible !== this.props.visible && nextProps.visible) { if (nextProps.visible !== this.props.visible && nextProps.visible) {
console.log("importDialog", importDialog);
const { baseTableStore: { VSalryForm, VExtraSalryForm } } = nextProps; const { baseTableStore: { VSalryForm, VExtraSalryForm } } = nextProps;
const payload = { const payload = {
...VSalryForm.getFormParams(), ...VExtraSalryForm.getFormParams(), hasData: importDialog.hasData ...VSalryForm.getFormParams(), ...VExtraSalryForm.getFormParams(), hasData: importDialog.hasData
@ -96,7 +97,9 @@ class Index extends Component {
<ImportDialog <ImportDialog
{...this.props} {...importDialog} {...this.props} {...importDialog}
onResetImportResult={() => this.setState({ onResetImportResult={() => this.setState({
importDialog: { ...importDialog, importResult: {}, imageId: "", link: null } importDialog: {
...importDialog, importResult: {}, imageId: "", link: "/api/bs/hrmsalary/variableSalary/downloadTemplate"
}
})} })}
importParams={this.renderFormComponent()} importParams={this.renderFormComponent()}
exportDataDom={ exportDataDom={