From e0cea6864433ec7ffd08ec0706874cefc9ba5691 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E7=8E=89=E7=90=A6?= <7507756+jiang_yuqi@user.noreply.gitee.com> Date: Mon, 29 Jan 2024 13:34:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/trouble/pshProblemmodify/index.vue | 10 ++++++++-- ruoyi-ui/src/views/trouble/sspProblemmodify/index.vue | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/ruoyi-ui/src/views/trouble/pshProblemmodify/index.vue b/ruoyi-ui/src/views/trouble/pshProblemmodify/index.vue index a6e005ff..153291e0 100644 --- a/ruoyi-ui/src/views/trouble/pshProblemmodify/index.vue +++ b/ruoyi-ui/src/views/trouble/pshProblemmodify/index.vue @@ -537,8 +537,14 @@ export default { if (response && response.data) { let sum = 0; this.tabs.dzg = "待整改(0)"; - let chk03=(response.data.check0)+(response.data.check3) - if (chk03) { + let chk03=0; + if(response.data.check0){ + chk03+=response.data.check0; + } + if(response.data.check3){ + chk03+=response.data.check3; + } + if (chk03){ sum += chk03; this.tabs.dzg = "待整改(" + chk03 + ")"; } diff --git a/ruoyi-ui/src/views/trouble/sspProblemmodify/index.vue b/ruoyi-ui/src/views/trouble/sspProblemmodify/index.vue index c94c2682..531e82f3 100644 --- a/ruoyi-ui/src/views/trouble/sspProblemmodify/index.vue +++ b/ruoyi-ui/src/views/trouble/sspProblemmodify/index.vue @@ -530,8 +530,14 @@ export default { if (response && response.data) { let sum = 0; this.tabs.dzg = "待整改(0)"; - let chk03=(response.data.check0)+(response.data.check3) - if (chk03) { + let chk03=0; + if(response.data.check0){ + chk03+=response.data.check0; + } + if(response.data.check3){ + chk03+=response.data.check3; + } + if (chk03){ sum += chk03; this.tabs.dzg = "待整改(" + chk03 + ")"; }