修改loading方法

This commit is contained in:
wjn 2024-06-25 15:25:31 +08:00
parent eb0c3f119e
commit 82708bce19

View File

@ -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;
}
}
})