Browse Source

沙盘模块修改

Koishi 3 years ago
parent
commit
e800abb15d
2 changed files with 12 additions and 11 deletions
  1. 11 10
      src/views/SandTable/SandTable.vue
  2. 1 1
      src/views/SandTable/component/p-panel.vue

+ 11 - 10
src/views/SandTable/SandTable.vue

@@ -118,7 +118,7 @@
       <Ppanel
         title="利用小时"
         :data="riseNumber(gxkmap.bg_dxkyss)"
-        :dataColor="gxkmap.bg_dxkyss < 0 ? '#f25656' : '#05BB4C'"
+        dataColor="#05BB4C"
         :days="gxkmap.ydxkyss"
         :data1Icon="
           gxkmap.tb_dxkyss < 0 ? 'svg-arrow-dpwn-1' : 'svg-arrow-up-1'
@@ -141,7 +141,7 @@
         title="设备可利用率"
         class="stb-p"
         :data="riseNumber(gxkmap.bg_sbklyl)"
-        :dataColor="gxkmap.bg_sbklyl < 0 ? '#f25656' : '#05BB4C'"
+        dataColor="#05BB4C"
         :days="gxkmap.ysbklyl"
         :data1Icon="
           gxkmap.hb_sbklyl < 0 ? 'svg-arrow-dpwn-1' : 'svg-arrow-up-1'
@@ -164,7 +164,7 @@
         title="MTBF"
         class="stb-p"
         :data="riseNumber(gxkmap.bg_mtbf)"
-        :dataColor="gxkmap.bg_mtbf < 0 ? '#f25656' : '#05BB4C'"
+        dataColor="#05BB4C"
         :days="gxkmap.mtbf"
         :data1Icon="gxkmap.hb_mtbf < 0 ? 'svg-arrow-dpwn-1' : 'svg-arrow-up-1'"
         :data1IconClass="
@@ -183,7 +183,7 @@
         title="MTTR"
         class="stb-p"
         :data="riseNumber(gxkmap.bg_mttr)"
-        :dataColor="gxkmap.bg_mttr < 0 ? '#f25656' : '#05BB4C'"
+        dataColor="#05BB4C"
         :days="gxkmap.mttr"
         :data1Icon="gxkmap.hb_mttr < 0 ? 'svg-arrow-dpwn-1' : 'svg-arrow-up-1'"
         :data1IconClass="
@@ -202,7 +202,7 @@
         title="MTTF"
         class="stb-p"
         :data="riseNumber(gxkmap.bg_mttf)"
-        :dataColor="gxkmap.bg_mttf < 0 ? '#f25656' : '#05BB4C'"
+        dataColor="#05BB4C"
         :days="gxkmap.mttf"
         :data1Icon="gxkmap.hb_mttf < 0 ? 'svg-arrow-dpwn-1' : 'svg-arrow-up-1'"
         :data1IconClass="
@@ -865,11 +865,12 @@ export default {
     },
 
     riseNumber(number) {
-      if (number < 0) {
-        return (number - number * 2) / 100;
-      } else {
-        return number / 100;
-      }
+      // if (number < 0) {
+      //   return (number - number * 2) / 100;
+      // } else {
+      //   return number / 100;
+      // }
+      return number / 100;
     },
 
     // 切换人员展示

+ 1 - 1
src/views/SandTable/component/p-panel.vue

@@ -25,7 +25,7 @@
           <div class="pp-tip-data font-sm">
             {{
               (data * 100).toFixed(2)
-            }}
+            }}%
           </div>
           <div class="pp-tip-icon">
             <i