修改loading方法
This commit is contained in:
parent
eb0c3f119e
commit
82708bce19
@ -82,7 +82,7 @@ class HM061ShowPrint extends React.Component {
|
|||||||
XLSX.writeFile(wb, "风险任务表.xlsx")
|
XLSX.writeFile(wb, "风险任务表.xlsx")
|
||||||
}
|
}
|
||||||
onPersonalAgree() {
|
onPersonalAgree() {
|
||||||
this.state.loading = true;
|
this.setState({ loading: true });
|
||||||
this.props.dispatch({
|
this.props.dispatch({
|
||||||
type: 'app/getDataByPost',
|
type: 'app/getDataByPost',
|
||||||
url: 'HM/HMRiskTask/UserSignin',
|
url: 'HM/HMRiskTask/UserSignin',
|
||||||
@ -91,12 +91,10 @@ class HM061ShowPrint extends React.Component {
|
|||||||
TaskID: this.props.data.TaskID,
|
TaskID: this.props.data.TaskID,
|
||||||
},
|
},
|
||||||
onComplete: (ret) => {
|
onComplete: (ret) => {
|
||||||
if (ret.IsSuccessful) {
|
if (ret) {
|
||||||
message.success('确认成功!');
|
message.success('确认成功!');
|
||||||
this.setState({ BtnSignDisplay: 'none' })
|
this.setState({ BtnSignDisplay: 'none' })
|
||||||
this.BtnClose();
|
this.BtnClose();
|
||||||
} else {
|
|
||||||
this.state.loading = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user