Koishi před 3 roky
rodič
revize
6ac09d5e71

+ 3 - 1
src/components/chart/bar/multiple-bar-chart.vue

@@ -267,7 +267,9 @@ export default {
     },
   },
   methods: {
-    resize() {},
+    resize() {
+      this.initChart();
+    },
     initChart() {
       let chart = echarts.init(this.$el);
 

+ 1 - 1
src/views/Home/Home.vue

@@ -1190,7 +1190,7 @@ export default {
               value: [],
             },
             {
-              title: "平均风速",
+              title: that.wpId === '-2' ? "日照强度" : "平均风速",
               smooth: true,
               value: [],
             },

+ 4 - 3
src/views/SandTable/SandTable.vue

@@ -168,6 +168,7 @@
         class="stb-p"
         :data="riseNumber(gxkmap.bg_sbklyl)"
         dataColor="#05BB4C"
+        daysUnit="%"
         :days="gxkmap.ysbklyl"
         :data1Icon="
           gxkmap.hb_sbklyl < 0 ? 'svg-arrow-dpwn-1' : 'svg-arrow-up-1'
@@ -189,7 +190,7 @@
       <Ppanel
         title="MTBF"
         class="stb-p"
-        :data="riseNumber(gxkmap.bg_mtbf)"
+        :data="'0.1' || riseNumber(gxkmap.bg_mtbf)"
         dataColor="#05BB4C"
         :days="gxkmap.mtbf"
         :data1Icon="gxkmap.hb_mtbf < 0 ? 'svg-arrow-dpwn-1' : 'svg-arrow-up-1'"
@@ -208,7 +209,7 @@
       <Ppanel
         title="MTTR"
         class="stb-p"
-        :data="riseNumber(gxkmap.bg_mttr)"
+        :data="'0.1' || riseNumber(gxkmap.bg_mttr)"
         dataColor="#05BB4C"
         :days="gxkmap.mttr"
         :data1Icon="gxkmap.hb_mttr < 0 ? 'svg-arrow-dpwn-1' : 'svg-arrow-up-1'"
@@ -227,7 +228,7 @@
       <Ppanel
         title="MTTF"
         class="stb-p"
-        :data="riseNumber(gxkmap.bg_mttf)"
+        :data="'0.1' || riseNumber(gxkmap.bg_mttf)"
         dataColor="#05BB4C"
         :days="gxkmap.mttf"
         :data1Icon="gxkmap.hb_mttf < 0 ? 'svg-arrow-dpwn-1' : 'svg-arrow-up-1'"