From 65124213af664a68ad88ce7f6dcb133116d7702f Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期一, 12 八月 2024 17:27:08 +0800 Subject: [PATCH] 监管场景设备信息管理模块 --- pages/inspection/detail/chart-proxy.js | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/inspection/detail/chart-proxy.js b/pages/inspection/detail/chart-proxy.js index c0e86fc..2e07be9 100644 --- a/pages/inspection/detail/chart-proxy.js +++ b/pages/inspection/detail/chart-proxy.js @@ -112,17 +112,17 @@ const changes = []; const xAxisMonth = this.getXAxisMonth(); xAxisMonth.forEach(m => { - problems.push('0'); - changes.push('0'); + problems.push(0); + changes.push(0); }); this.data.subtaskSummary.forEach(s => { const month = dayjs(s.stPlanTime).month() + 1 + '鏈�'; const index = xAxisMonth.findIndex(value => { return month == value; }); - if (index) { - problems[index] = s.proNum; - changes[index] = s.changeNum; + if (index != -1) { + problems[index] += s.proNum; + changes[index] += s.changeNum; } }); const datas = [problems, changes]; -- Gitblit v1.9.3