From f46786f11c5c08ead7501a82e5a71430ad69b782 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期日, 27 四月 2025 17:39:24 +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