From ec7f5ba1f7eb84507e1c8e7b6f66b1ecfbc22728 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期四, 17 四月 2025 17:31:25 +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