Browse Source

数据大盘: 线上问题指标调整。

洪海涛 4 years ago
parent
commit
54b051b8b9

+ 4 - 4
src/views/dataBigManage/components/dataItem/index.vue

@@ -6,7 +6,7 @@
       <div class="textWord ellipsis">
         <div>
           <span :style="{color: item.labelColor ? item.labelColor : '#666'}">{{ item.label }}</span>
-          <span class="title isHove">{{ item.title }}</span>
+          <span class="title isHove" @click.stop="$emit('subCountListClick', { index: 1, subIndex: 0})">{{ item.title }}</span>
           <span>{{ item.titleUnit }}</span>
           <span v-if="item.remark" class="remark">({{ item.remark }})</span>
         </div>
@@ -14,7 +14,7 @@
         <div class="subTitleName">
         <span v-if="item.subTitleUnit === 'rate'">
           <span>环比:</span>
-          <span :class="Number(item.subTitle) > 0 ? 'item-up isHove' : 'item-down isHove'">
+          <span :class="Number(item.subTitle) > 0 ? 'item-up isHove' : 'item-down isHove'" @click.stop="$emit('subCountListClick', { index: 0, subIndex: 0})">
             <i v-if="Number(item.subTitle) > 0" class="el-icon-caret-top" />
             <i v-else class="el-icon-caret-bottom" />
             {{ item.subTitle }}%
@@ -25,9 +25,9 @@
       </div>
     </div>
     <div v-if="item.subListCountList" class="subCountList">
-      <div v-for="(subItem, subItemIndex) in item.subListCountList" :key="subItemIndex" class="subCountItem" @click.stop="$emit('subCountListClick', {subItemList: subItem, index: subItemIndex + 1, subIndex: 0})">
+      <div v-for="(subItem, subItemIndex) in item.subListCountList" :key="subItemIndex" class="subCountItem" @click.stop="$emit('subCountListClick', { index: subItemIndex + 1, subIndex: 0})">
           <span v-for="(subItemItem, subItemIndexIndex) in subItem" :key="subItemIndex + subItemIndexIndex">
-            <span>{{ subItemItem.label }}</span><span>{{ subItemItem.beforeLabel }}</span>&nbsp;&nbsp;<span class="isHove title" @click.stop="$emit('subCountListClick', {subItemList: subItem, index: subItemIndex + 1, subIndex: subItemIndexIndex})">{{ subItemItem.countStr }}{{ subItemItem.unit }}</span>&nbsp;&nbsp;<span>{{ subItemItem.afterLabel }}</span>
+            <span>{{ subItemItem.label }}</span><span>{{ subItemItem.beforeLabel }}</span>&nbsp;&nbsp;<span class="isHove title" @click.stop="$emit('subCountListClick', { index: subItemIndex + 1, subIndex: subItemIndexIndex})">{{ subItemItem.countStr }}{{ subItemItem.unit }}</span>&nbsp;&nbsp;<span>{{ subItemItem.afterLabel }}</span>
           </span>
       </div>
     </div>

+ 8 - 7
src/views/dataBigManage/components/drawerModal/index.vue

@@ -318,12 +318,13 @@ export default {
     setIds() {
       if (this.headerTitle === '质量' && !this.drawerData.moduleName) {
         if (this.drawerData.label === '改进项完成率') {
-          if (this.drawerData.hasOwnProperty('subCountItem')) {
-            const { subItemList, subIndex } = this.drawerData.subCountItem
-            this.ids = subItemList[subIndex].idList.map(e => e)
-          } else {
-            this.ids = this.drawerData.idList.map(e => e)
-          }
+          // if (this.drawerData.hasOwnProperty('subCountItem')) {
+          //   const { subItemList, subIndex } = this.drawerData.subCountItem
+          //   this.ids = subItemList[subIndex].idList.map(e => e)
+          // } else {
+          //   this.ids = this.drawerData.idList.map(e => e)
+          // }
+          this.ids = this.drawerData.IdList.map(e => e)
         } else {
           this.ids = this.drawerData.IdList.map(e => e)
         }
@@ -1066,7 +1067,7 @@ export default {
         this.tableHeight = 'calc(100vh - 136px)'
       }
       if (this.headerTitle === '质量' && this.title.search(/新增缺陷|reopen/) < 0 && !this.drawerData.moduleName) {
-        this.tableHeight = this.title === '改进项' ? 'calc(100vh - 328px)' : 'calc(100vh - 136px)'
+        this.tableHeight = this.title === '改进项' ? 'calc(100vh - 300px)' : 'calc(100vh - 136px)'
       }
       if (this.headerTitle === '吞吐量') {
         this.tableHeight = 'calc(100vh - 288px)'

+ 0 - 8
src/views/dataBigManage/components/qualityModule/index.vue

@@ -28,14 +28,6 @@
             v-if="mainData.onlineProblemList && mainData.onlineProblemList[2]"
             :span="13"
             class="mb10"
-            @click.stop="() => onDetial('线上问题', {
-              ...mainData.onlineProblemList[2],
-              subCountItem: {
-                label: '改进项完成率',
-                index: 0,
-                subIndex: 0,
-              }
-            })"
           >
             <div>
               <dataItem