qinzhipeng_v@didiglobal.com 4 년 전
부모
커밋
0d6b4ebc0c
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/views/monthlyReport/childrenPage/editReport/components/SubTitle.vue

+ 2 - 2
src/views/monthlyReport/childrenPage/editReport/components/SubTitle.vue

@@ -70,7 +70,7 @@ export default {
         this.requireList = { toType: '缺陷', xaxis: this.bugPriority, title: '新增缺陷', yaxis: yaxis, dataIndex: index }
       } else if (index === 3) {
         const yaxis = this.setList(data, index)
-        this.requireList = { toType: '缺陷', xaxis: this.bugPrioritys, title: '缺陷修复时长', yaxis: yaxis, dataIndex: 0 }
+        this.requireList = { toType: '缺陷', xaxis: this.bugPrioritys, title: '缺陷修复时长', yaxis: yaxis, dataIndex: 1 }
       } else if (index === 5) {
         const yaxis = data.reportBugs.map(item => { return item.id })
         this.requireList = { toType: '缺陷', title: '累计reopen', yaxis: yaxis, idList: yaxis }
@@ -79,7 +79,7 @@ export default {
         const [a, s, d, f, g, h, j, k, l] = [[], [], [], [], [], [], [], [], []]
         if (data.reportBugs[0]) {
           data.reportBugs.map(item => {
-            if (item.isRepaired && item.repairTime < 24) { // 24小时内修复
+            if (item.isRepaired && Number(item.repairTime) < 24) { // 24小时内修复
               f.push(item.id) // 全部
               if (item.priority < 2) { g.push(item.id) } // P0&P1
               if (item.priority > 1) { h.push(item.id) } // P1以上