ソースを参照

月报改进项

洪海涛 4 年 前
コミット
e051487256

+ 1 - 1
src/components/newLayout/Head.vue

@@ -15,7 +15,7 @@
           v-show="notice && item.name.search(/个人工作台/) >= 0"
           class="if-notice"
         />
-        <svg-icon :icon-class="item.icon" />
+        <svg-icon :icon-class="item.icon" :style="{width: item.name === '质量月报' ? '31px' : '100%', height: item.name === '质量月报' ? '25px' : '100%'}" />
       </div>
       <div class="name">{{ item.name }}</div>
     </div>

+ 1 - 1
src/views/dataBigManage/components/drawerModal/components/table.vue

@@ -39,7 +39,7 @@
         <template slot-scope="scope" style="text-align: center;">
           <!-- 缺陷等级 -->
           <div v-if="columnItem.type === 'level'">
-            <div class="div_priority" :style="{background: priorityColors[scope.row[columnItem.key][1]]}">
+            <div class="div_priority" :style="{background: priorityColors[scope.row[columnItem.key][1]] || '#BDBDBD'}">
               {{ scope.row[columnItem.key] }}
             </div>
           </div>

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

@@ -24,6 +24,7 @@
         </el-row>
         <div class="chartSearchbar inlineBetween mt15">
           <div style="width: 200px">
+            <span style="margin-right: 10px">分布类型:</span>
             <el-select
               v-model="onlineProblemViweType"
               size="small"
@@ -55,6 +56,7 @@
         </el-row>
         <div class="chartSearchbar inlineBetween mt15">
           <div style="width: 200px">
+            <span style="margin-right: 10px">分布类型:</span>
             <el-select
               v-model="offlineProblemViweType"
               size="small"

+ 6 - 1
src/views/dataBigManage/components/throughputModule/index.vue

@@ -29,7 +29,8 @@
             <div v-html="item.pointer" /> -->
             <div>
               {{ item.label }}
-              <span :class="Number(item.chainRatio) > 0 ? 'textRed count' : 'textBlue count'">{{ item.countStr }}</span>
+<!--              <span :class="Number(item.chainRatio) > 0 ? 'textRed count' : 'textBlue count'">{{ item.countStr }}</span>-->
+              <span :class="isRed(item.label) ? 'textRed count' : 'textBlue count'">{{ item.countStr }}</span>
               <span>
                 {{ item.label.includes('率') ? '%' : '个' }}
               </span>
@@ -188,6 +189,10 @@ export default {
       }
     },
     changeList() {},
+    // 判断数字红色
+    isRed(label) {
+      return label.search(/^(延期需求|紧急需求率)/) > -1
+    },
     changeTab(type, value) {
       this[type] = value
       this.$emit('search', { [type]: value })