洪海涛 4 lat temu
rodzic
commit
bcb17e4193

+ 15 - 15
src/router/newRouter.js

@@ -355,21 +355,21 @@ const layout = [
       }
     ]
   },
-  // {
-  //   path: '/dataBigManage',
-  //   name: '数据大盘',
-  //   component: Layout,
-  //   icon: 'data-big',
-  //   redirect: '/dataBigManage/index',
-  //   children: [
-  //     {
-  //       path: 'index',
-  //       name: '数据大盘',
-  //       component: () => import('@/views/dataBigManage/index.vue'),
-  //       meta: { title: '数据大盘' }
-  //     }
-  //   ]
-  // },
+  {
+    path: '/dataBigManage',
+    name: '数据大盘',
+    component: Layout,
+    icon: 'data-big',
+    redirect: '/dataBigManage/index',
+    children: [
+      {
+        path: 'index',
+        name: '数据大盘',
+        component: () => import('@/views/dataBigManage/index.vue'),
+        meta: { title: '数据大盘' }
+      }
+    ]
+  },
   {
     path: '/monthlyReport',
     name: '质量月报',

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

@@ -226,6 +226,14 @@ export default {
     // 设置标题
     setTitle() {
       this.title = this.headerTitle.search(/质量|效率/) > -1 ? this.drawerData.label : this.drawerData.activeLabel
+      if (this.headerTitle === '质量') {
+        if (this.drawerData.label === '提测打回率') {
+          this.title = '提测报告'
+        }
+        if (this.drawerData.label === '准出不通过率') {
+          this.title = '准出记录'
+        }
+      }
       if (this.headerTitle === '效率') {
         this.activeLabel = this.drawerData.activeLabel
         if (this.drawerData.label === '需求平均交付周期') {
@@ -277,7 +285,7 @@ export default {
     // 设置时间轴
     setTimeLineData() {
       let { firstActive, first, secondActive, second } = this.timelineData
-      if (this.title.search(/新增问题|新增缺陷|reopen|提测打回率|准出不通过/) < 0) {
+      if (this.title.search(/新增问题|新增缺陷|reopen|提测报告|准出记录/) < 0) {
         if (this.headerTitle === '吞吐量') {
           secondActive = 0
           firstActive = 0
@@ -373,7 +381,7 @@ export default {
       if (this.title.search(/新增问题/) > -1) {
         this.column = columns.newQuestionColumns.map(e => e)
       }
-      if (this.title.search(/提测打回率|准出不通过/) > -1) {
+      if (this.title.search(/提测报告|准出记录/) > -1) {
         this.column = columns.deliverTestReportIdListColumns.map(e => e)
       }
       if (this.headerTitle === '吞吐量') {
@@ -457,7 +465,7 @@ export default {
           this.loading = true
           this.setStarFlowerList()
         }
-        if (this.title.search(/提测打回率|准出不通过/) > -1) {
+        if (this.title.search(/提测报告|准出记录/) > -1) {
           this.loading = true
           this.setReportList()
         }
@@ -600,7 +608,7 @@ export default {
     },
     // 提测报告 deliverTestReportIdList 准出记录 releaseReportIdList
     async setReportList() {
-      const key = this.title === '提测打回率' ? 'deliverTestReportIdList' : 'releaseReportIdList'
+      const key = this.title === '提测报告' ? 'deliverTestReportIdList' : 'releaseReportIdList'
       const paging = this.paging
       const params = {
         ...paging,
@@ -792,7 +800,7 @@ export default {
       if (this.headerTitle === '质量' && this.drawerData.label === '新增问题') {
         const url = `http://odin.xiaojukeji.com/#/risk/starflower/casedetail?id=${row.id}&name=${row.title}`
         window.open(url, '_blank')
-      } else if (this.headerTitle === '质量' && this.drawerData.label.search(/^(提测打回率|准出不通过率)/) > -1) {
+      } else if (this.headerTitle === '质量' && this.drawerData.label.search(/^(提测报告|准出记录)/) > -1) {
         this.jumper(row, '报告')
       } else if (this.headerTitle === '吞吐量') {
         if (this.title.search(/需求/) > -1) {