riku
2024-08-12 65124213af664a68ad88ce7f6dcb133116d7702f
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];