Browse Source

Merge remote-tracking branch 'origin/http_mock' into http_mock

洪海涛 4 years ago
parent
commit
a6b6fb04d5
1 changed files with 15 additions and 13 deletions
  1. 15 13
      src/views/dataBigManage/components/drawerModal/index.vue

+ 15 - 13
src/views/dataBigManage/components/drawerModal/index.vue

@@ -318,7 +318,9 @@ export default {
           }
           if (this.drawerData.moduleName && this.drawerData.moduleName === '上线过程') {
             first = [...timelineList.lineRate]
-            firstActive = this.drawerData.index
+            // 免测上线率是1
+            this.drawerData.index === 2 ? firstActive = 1 : firstActive = 0
+            // console.log(first, firstActive)
           }
           if (this.drawerData.moduleName && this.drawerData.moduleName === '回滚次数') {
             first = [...timelineList.returnCase]
@@ -329,7 +331,6 @@ export default {
           secondActive = 0
           firstActive = 0
           first = []
-
           this.sourceData.forEach((elm, index) => {
             if (this.title.indexOf(elm.label) > -1) {
               firstActive = index
@@ -337,7 +338,7 @@ export default {
             first.push(elm.label)
           })
           if (this.title.search(/需求/) > -1) {
-            first = timelineList.requirementData.map(e => e)
+            first = [...timelineList.requirementData]
           }
         }
         if (this.headerTitle === '效率') {
@@ -427,30 +428,30 @@ export default {
     // 设置表格头
     setColumn() {
       if (this.title.search(/新增缺陷|reopen|缺陷24小时修复率/) > -1) {
-        this.column = columns.bugColumn.map(e => e)
+        this.column = [...columns.bugColumn]
       }
       if (this.drawerData.moduleName && this.drawerData.moduleName === '上线过程') {
-        this.column = columns.test_freeOn_lineRateIdListColumns.map(e => e)
+        this.column = [...columns.test_freeOn_lineRateIdListColumns]
       }
       if (this.drawerData.moduleName && this.drawerData.moduleName === '回滚次数') {
         // this.ids = this.drawerData[this.drawerData.itemKey].idList.map(e => e)
-        this.column = columns.test_freeOn_lineRateIdListColumns.map(e => e)
+        this.column = [...columns.test_freeOn_lineRateIdListColumns]
       }
       if (this.title.search(/新增问题/) > -1) {
-        this.column = columns.newQuestionColumns.map(e => e)
+        this.column = [...columns.newQuestionColumns]
       }
       if (this.title.search(/提测报告|准出记录/) > -1) {
-        this.column = columns.deliverTestReportIdListColumns.map(e => e)
+        this.column = [...columns.deliverTestReportIdListColumns]
       }
       if (this.headerTitle === '吞吐量') {
         if (this.title.search(/需求/) > -1) {
-          this.column = columns.requirementListColumns.map(e => e)
+          this.column = [...columns.requirementListColumns]
         }
         if (this.title.search(/任务/) > -1) {
-          this.column = columns.taskListColumns.map(e => e)
+          this.column = [...columns.taskListColumns]
         }
         if (this.title.search(/项目/) > -1) {
-          this.column = columns.projectListColumns.map(e => e)
+          this.column = [...columns.projectListColumns]
         }
       }
       if (this.headerTitle === '效率') {
@@ -493,11 +494,12 @@ export default {
           }
           if (this.drawerData.moduleName && this.drawerData.moduleName === '上线过程') {
             // console.log(this.drawerData.parent.list[value])
-            this.ids = this.drawerData.parent.list[value].IdList.map(e => e)
+            // 免测上线是1  0是上线次数 2是裸奔上线
+            this.ids = [...this.drawerData.parent.list[value === 1 ? 2 : 0].IdList]
           }
           if (this.drawerData.moduleName && this.drawerData.moduleName === '回滚次数') {
             const items = ['countStr', 'preCountStr', 'fullCountStr', 'lowCountStr']
-            this.ids = this.drawerData[items[value]].idList.map(e => e)
+            this.ids = [...this.drawerData[items[value]].idList]
           }
         }
         if (this.headerTitle === '吞吐量') {