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 + ")"; }