소스 검색

吞吐量:项目半浮层

洪海涛 4 년 전
부모
커밋
364edd797c

+ 29 - 7
src/views/dataBigManage/components/drawerModal/drawerModalData.js

@@ -31,8 +31,7 @@ export const columns = {
       key: 'level',
       key: 'level',
       minWidth: 100,
       minWidth: 100,
       align: 'left',
       align: 'left',
-      type: 'slot',
-      slotName: 'returnReasonSlot'
+      type: 'level'
     },
     },
     {
     {
       label: '问题名称',
       label: '问题名称',
@@ -48,13 +47,13 @@ export const columns = {
     },
     },
     {
     {
       label: '改进方案',
       label: '改进方案',
-      key: 'statusString',
+      key: 'type',
       minWidth: 100,
       minWidth: 100,
       align: 'center'
       align: 'center'
     },
     },
     {
     {
       label: '发生时间',
       label: '发生时间',
-      key: 'statusString',
+      key: 'gmtCreate',
       minWidth: 100,
       minWidth: 100,
       align: 'center'
       align: 'center'
     }
     }
@@ -85,9 +84,7 @@ export const columns = {
     }
     }
   ],
   ],
   // 准出记录
   // 准出记录
-  releaseReportIdListColumns: [
-
-  ],
+  releaseReportIdListColumns: [],
   // 吞吐量: 需求
   // 吞吐量: 需求
   requirementListColumns: [
   requirementListColumns: [
     {
     {
@@ -138,6 +135,31 @@ export const columns = {
       align: 'left'
       align: 'left'
     }
     }
   ],
   ],
+  // 吞吐量: 任务
+  projectListColumns: [
+    {
+      label: '优先级',
+      key: 'priorityStr',
+      minWidth: 90,
+      align: 'left',
+      type: 'level'
+    },
+    {
+      label: '项目名称',
+      key: 'name',
+      align: 'left',
+      minWidth: 360,
+      type: 'topTitle',
+      topName: 'PROJECT',
+      topKey: 'id'
+    },
+    {
+      label: '状态',
+      key: 'status',
+      minWidth: 90,
+      align: 'left'
+    }
+  ],
   // 效率:
   // 效率:
   efficiency: {
   efficiency: {
     // 需求周期
     // 需求周期

+ 17 - 4
src/views/dataBigManage/components/drawerModal/index.vue

@@ -218,7 +218,7 @@ export default {
       }
       }
       if (this.headerTitle === '吞吐量') {
       if (this.headerTitle === '吞吐量') {
         this.drawerData.list.forEach(elm => {
         this.drawerData.list.forEach(elm => {
-          if (elm.label === this.drawerData.activeLabel) {
+          if (elm.label === this.drawerData.activeLabel && elm.idList) {
             this.ids = elm.idList.map(e => e)
             this.ids = elm.idList.map(e => e)
           }
           }
         })
         })
@@ -336,6 +336,9 @@ export default {
         if (this.title.search(/任务/) > -1) {
         if (this.title.search(/任务/) > -1) {
           this.column = columns.taskListColumns.map(e => e)
           this.column = columns.taskListColumns.map(e => e)
         }
         }
+        if (this.title.search(/项目/) > -1) {
+          this.column = columns.projectListColumns.map(e => e)
+        }
       }
       }
       if (this.headerTitle === '效率') {
       if (this.headerTitle === '效率') {
         let columnsKey = 'requirementColumns'
         let columnsKey = 'requirementColumns'
@@ -370,8 +373,11 @@ export default {
       if (index === 1) {
       if (index === 1) {
         if (this.headerTitle === '吞吐量') {
         if (this.headerTitle === '吞吐量') {
           this.timelineData.firstActive = value || 0
           this.timelineData.firstActive = value || 0
-          this.ids = this.sourceData[value || 0].IdList
-          this.title = name
+          console.log(this.sourceData)
+          if (this.sourceData[value || 0] && this.sourceData[value || 0].idList) {
+            this.ids = this.sourceData[value || 0].idList
+            this.title = name
+          }
         }
         }
         if (this.headerTitle === '效率') {
         if (this.headerTitle === '效率') {
           this.timelineData.firstActive = value || 0
           this.timelineData.firstActive = value || 0
@@ -395,6 +401,7 @@ export default {
     },
     },
     // 设置列表数据
     // 设置列表数据
     setTableList() {
     setTableList() {
+      this.tableList = []
       if (this.headerTitle === '质量') {
       if (this.headerTitle === '质量') {
         if (this.title.search(/新增缺陷|reopen/) > -1) {
         if (this.title.search(/新增缺陷|reopen/) > -1) {
           this.loading = true
           this.loading = true
@@ -411,11 +418,17 @@ export default {
       }
       }
       if (this.headerTitle === '吞吐量') {
       if (this.headerTitle === '吞吐量') {
         if (this.title.search(/需求/) > -1) {
         if (this.title.search(/需求/) > -1) {
+          this.loading = true
           this.ids.length && this.getRequirementList()
           this.ids.length && this.getRequirementList()
         }
         }
         if (this.title.search(/任务/) > -1) {
         if (this.title.search(/任务/) > -1) {
+          this.loading = true
           this.ids.length && this.getTaskList()
           this.ids.length && this.getTaskList()
         }
         }
+        if (this.title.search(/项目/) > -1) {
+          this.loading = true
+          this.ids.length && this.setProjectList()
+        }
       }
       }
       if (this.headerTitle === '效率') {
       if (this.headerTitle === '效率') {
         if (this.title === '需求周期') {
         if (this.title === '需求周期') {
@@ -496,7 +509,7 @@ export default {
       const paging = this.paging
       const paging = this.paging
       // {"ids":[14952,15453,15988,16182,17445,17447,17735,18062,18064,18067,18134,18137,18138,18140],"curIndex":2,"pageSize":10}
       // {"ids":[14952,15453,15988,16182,17445,17447,17735,18062,18064,18067,18134,18137,18138,18140],"curIndex":2,"pageSize":10}
       const res = await getProjectList({
       const res = await getProjectList({
-        ids: this.ids,
+        idList: this.ids,
         curIndex: this.paging.curIndex,
         curIndex: this.paging.curIndex,
         pageSize: 15
         pageSize: 15
       })
       })

+ 6 - 6
src/views/dataBigManage/components/qualityModule/index.vue

@@ -228,7 +228,7 @@ export default {
       // 线上问题图
       // 线上问题图
       if (onlineProblemChart) {
       if (onlineProblemChart) {
         const { xaxis, yaxis } = onlineProblemChart
         const { xaxis, yaxis } = onlineProblemChart
-        console.log(xaxis, yaxis[0].data)
+        // console.log(xaxis, yaxis[0].data)
         this.onlineProblemChartOption = getOption(xaxis, yaxis[0].data, 'bar', { endValue: 10 })
         this.onlineProblemChartOption = getOption(xaxis, yaxis[0].data, 'bar', { endValue: 10 })
       }
       }
       // 线下质量表
       // 线下质量表
@@ -302,7 +302,7 @@ export default {
           'titleUnit': '个',
           'titleUnit': '个',
           'subTitleUnit': 'rate',
           'subTitleUnit': 'rate',
           'subTitle': newBug.chainRatio,
           'subTitle': newBug.chainRatio,
-          'IdList': newBug.IdList
+          'IdList': newBug.idList
         },
         },
         {
         {
           ...this.yellowObj,
           ...this.yellowObj,
@@ -311,7 +311,7 @@ export default {
           'titleUnit': '次',
           'titleUnit': '次',
           'subTitleUnit': 'rate',
           'subTitleUnit': 'rate',
           'subTitle': reopen.chainRatio,
           'subTitle': reopen.chainRatio,
-          'IdList': reopen.IdList
+          'IdList': reopen.idList
         },
         },
         {
         {
           'color': '#3F9DFE',
           'color': '#3F9DFE',
@@ -351,7 +351,7 @@ export default {
             'label': online.label,
             'label': online.label,
             'title': online.countStr,
             'title': online.countStr,
             'titleUnit': '次',
             'titleUnit': '次',
-            'IdList': online.IdList
+            'IdList': online.idList
           },
           },
           {
           {
             'innerColor': '#7ED321',
             'innerColor': '#7ED321',
@@ -360,7 +360,7 @@ export default {
             'label': testFreeOnlineRate.label,
             'label': testFreeOnlineRate.label,
             'title': testFreeOnlineRate.countStr,
             'title': testFreeOnlineRate.countStr,
             'titleUnit': '%',
             'titleUnit': '%',
-            'IdList': testFreeOnlineRate.IdList
+            'IdList': testFreeOnlineRate.idList
           },
           },
           {
           {
             'innerColor': '#F5222D',
             'innerColor': '#F5222D',
@@ -369,7 +369,7 @@ export default {
             'label': onlinebyStreakingRate.label,
             'label': onlinebyStreakingRate.label,
             'title': onlinebyStreakingRate.countStr,
             'title': onlinebyStreakingRate.countStr,
             'titleUnit': '%',
             'titleUnit': '%',
-            'IdList': onlinebyStreakingRate.IdList
+            'IdList': onlinebyStreakingRate.idList
           }
           }
         ],
         ],
         rollBack
         rollBack