浏览代码

半浮层

洪海涛 4 年之前
父节点
当前提交
6e525c7eb7

+ 31 - 12
src/views/dataBigManage/components/drawerModal/index.vue

@@ -17,15 +17,34 @@
     <!-- 时间线 -->
     <div v-if="openDrawer && isTimeLine(1)" class="qz-drawer-padding qz-drawer-header" @click.stop>
       <div ref="timeline1" class="qz-drawer-scll">
-        <timeline :num="timelineData.firstActive" bgmargin :data="timelineData.first" @update="(params) => timeLineClick(params, 1)" />
+        <timeline
+          :num="timelineData.firstActive"
+          bgmargin
+          :data="timelineData.first"
+          @update="(params) => timeLineClick(params, 1)"
+        />
       </div>
       <div v-if="isTimeLine(2)" ref="timeline2" class="qz-drawer-scll">
-        <timeline :num="timelineData.secondActive" :data="timelineData.second" :bgmargin="true" @update="(params)=>timeLineClick(params, 2)" />
+        <timeline
+          :num="timelineData.secondActive"
+          :data="timelineData.second"
+          :bgmargin="true"
+          @update="(params)=>timeLineClick(params, 2)"
+        />
       </div>
     </div>
 
     <!-- 表格 -->
-    <dmTable v-if="openDrawer" v-loading="loading" :table-list="tableList" :total="tableList" :column="column" :table-height="tableHeight" @click.stop @change="dmTableChange">
+    <dmTable
+      v-if="openDrawer"
+      v-loading="loading"
+      :table-list="tableList"
+      :total="tableList"
+      :column="column"
+      :table-height="tableHeight"
+      @click.stop
+      @change="dmTableChange"
+    >
       <template #bugStatusNameSlot="{scope}">
         <div @click.stop="print(scope)">自定义</div>
       </template>
@@ -44,7 +63,12 @@
       <template #starFlowerDoneSlot="{scope}">
         <div @click.stop>
           <div>{{ scope.row.done + scope.row.undone }}项任务</div>
-          <div v-if="scope.row.done === scope.row.done + scope.row.undone" class="antdv3-tag antdv3-tag-green">已完成:{{ scope.row.done }}项</div>
+          <div
+            v-if="scope.row.done === scope.row.done + scope.row.undone"
+            class="antdv3-tag antdv3-tag-green"
+          >
+            已完成:{{ scope.row.done }}项
+          </div>
           <div v-else class="antdv3-tag antdv3-tag-orange">已完成:{{ scope.row.done }}项</div>
         </div>
       </template>
@@ -123,11 +147,6 @@ export default {
       required: false,
       default: () => {}
     }
-    // ids: {
-    //   type: Array,
-    //   required: false,
-    //   default: () => [14952, 15453, 15988, 16182, 17445, 17447, 17735, 18062, 18064, 18067, 19255, 19568, 19569, 19570, 19571, 19572, 19574, 19575, 19576, 19577, 19578, 19579, 19587, 19588, 19590, 19593, 19595, 19596, 19597, 19599, 19619, 19642, 19644, 19645, 19652, 19655, 19673, 19674, 19887, 19888, 19931, 19935, 19970, 20048, 20049, 20058, 20071, 20086, 20149, 20181, 20182, 20183, 20184, 20301, 20442, 20755, 20758, 20760, 20765, 20770, 20777, 20778, 20782, 20783, 20789, 20803, 20804, 20805, 20808, 20809, 20810, 20812, 20813, 20814, 20815, 20816, 20817, 20818, 20819, 20820, 20825, 20826, 20831, 20848, 20850, 20851]
-    // }
   },
   data() {
     return {
@@ -248,9 +267,6 @@ export default {
       if (this.headerTitle === '效率') {
         this.ids = this.drawerData.idList.map(e => e) // 提测报告
       }
-      // this.ids = this.drawerData.IdList.map(e => e)
-      // this.ids = [14952, 15453, 15988, 16182, 17445, 17447, 17735, 18062, 18064, 18067, 19255, 19568, 19569, 19570, 19571, 19572, 19574, 19575, 19576, 19577, 19578, 19579, 19587, 19588, 19590, 19593, 19595, 19596, 19597, 19599, 19619, 19642, 19644, 19645, 19652, 19655, 19673, 19674, 19887, 19888, 19931, 19935, 19970, 20048, 20049, 20058, 20071, 20086, 20149, 20181, 20182, 20183, 20184, 20301, 20442, 20755, 20758, 20760, 20765, 20770, 20777, 20778, 20782, 20783, 20789, 20803, 20804, 20805, 20808, 20809, 20810, 20812, 20813, 20814, 20815, 20816, 20817, 20818, 20819, 20820, 20825, 20826, 20831, 20848, 20850, 20851]
-      // this.ids = [2049, 1662, 2050, 1644, 2051, 1657, 1670, 1715, 1728, 1692, 2048, 2052, 2047] // 提测报告
     },
     // 设置时间轴
     setTimeLineData() {
@@ -516,6 +532,7 @@ export default {
     async setStarFlowerList() {
       if (!this.ids.length) {
         this.loading = false
+        return
       }
       const paging = this.paging
       // {"ids":[14952,15453,15988,16182,17445,17447,17735,18062,18064,18067,18134,18137,18138,18140],"curIndex":2,"pageSize":10}
@@ -757,6 +774,8 @@ 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) {
+        this.jumper(row, '报告')
       } else if (this.headerTitle === '吞吐量') {
         if (this.title.search(/需求/) > -1) {
           this.jumper(row, '需求')

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

@@ -348,7 +348,7 @@ export default {
           'titleUnit': '%',
           'subTitleUnit': 'rate',
           'subTitle': testBackRate.chainRatio,
-          'IdList': testBackRate.IdList,
+          'IdList': testBackRate.idList,
           'remark': testBackRate.remark,
           'type': 'circle'
         },
@@ -360,7 +360,7 @@ export default {
           'titleUnit': '%',
           'subTitleUnit': 'rate',
           'subTitle': releaseNopass.chainRatio,
-          'IdList': releaseNopass.IdList,
+          'IdList': releaseNopass.idList,
           'remark': releaseNopass.remark,
           'type': 'circle'
         }