diff --git a/src/components/CustomPages/HM/HM061ShowPrint.js b/src/components/CustomPages/HM/HM061ShowPrint.js index 1d81258..1da36c0 100644 --- a/src/components/CustomPages/HM/HM061ShowPrint.js +++ b/src/components/CustomPages/HM/HM061ShowPrint.js @@ -82,7 +82,7 @@ class HM061ShowPrint extends React.Component { XLSX.writeFile(wb, "风险任务表.xlsx") } onPersonalAgree() { - this.state.loading = true; + this.setState({ loading: true }); this.props.dispatch({ type: 'app/getDataByPost', url: 'HM/HMRiskTask/UserSignin', @@ -91,12 +91,10 @@ class HM061ShowPrint extends React.Component { TaskID: this.props.data.TaskID, }, onComplete: (ret) => { - if (ret.IsSuccessful) { + if (ret) { message.success('确认成功!'); this.setState({ BtnSignDisplay: 'none' }) this.BtnClose(); - } else { - this.state.loading = false; } } })