diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/otherDeduct/detailSettingsDialog.js b/pc4mobx/hrmSalary/pages/dataAcquisition/otherDeduct/detailSettingsDialog.js index 84627b47..47c31fcb 100644 --- a/pc4mobx/hrmSalary/pages/dataAcquisition/otherDeduct/detailSettingsDialog.js +++ b/pc4mobx/hrmSalary/pages/dataAcquisition/otherDeduct/detailSettingsDialog.js @@ -62,7 +62,7 @@ class DetailSettingsDialog extends Component { this.setState({ loading: false }); if (status) { message.success(getLabel(111, "操作成功!")); - this.props.onCancel(this.props.onSuccess()); + this.props.onCancel(this.props.onSuccess); } else { message.error(errormsg); } @@ -148,7 +148,8 @@ class DetailSettingsDialog extends Component { }; return ( (pre += cur.items.length), 0) * 47 + 33 }} buttons={[ , diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/otherDeduct/taxSetDialog.js b/pc4mobx/hrmSalary/pages/dataAcquisition/otherDeduct/taxSetDialog.js index 5025d4b4..821442b1 100644 --- a/pc4mobx/hrmSalary/pages/dataAcquisition/otherDeduct/taxSetDialog.js +++ b/pc4mobx/hrmSalary/pages/dataAcquisition/otherDeduct/taxSetDialog.js @@ -127,9 +127,9 @@ class TaxSetDialog extends Component { - this.setState({ + this.setState({ detailSettingsDialog: { ...detailSettingsDialog, visible: false, id: "" } - })} onSuccess={this.getList}/> + }, () => callback && callback())} onSuccess={this.getList}/> );