From 657704f8ea7bdfa08e17f5e2b0e1bca20f0f6437 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com> Date: Wed, 28 Dec 2022 16:38:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A4=BE=E4=BF=9D=E6=A0=B8=E7=AE=97=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/socialSecurityBenefits/standingBook/index.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/index.js index afb50e78..2d81ab0d 100644 --- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/index.js +++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/index.js @@ -333,6 +333,14 @@ export default class StandingBook extends React.Component { this.timer = setInterval(() => { getCalculateProgress(moment(billMonth).format("YYYY-MM")).then(({ status, data }) => { if (status) { + if (!data.status) { + clearInterval(this.timer); + this.setState({ + progressVisible: false, + progress: 0 + }); + return; + } if (this.state.progress !== 100) { this.setState({ progress: (Number(data.progress).toFixed(2)) * 100