From 82708bce193b4fa467ce9b24ad290f393a448334 Mon Sep 17 00:00:00 2001 From: wjn Date: Tue, 25 Jun 2024 15:25:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9loading=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CustomPages/HM/HM061ShowPrint.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; } } })