Browse Source

[Fix 0000] 保德煤矿可配置首页配置问题修复

houzekong 2 months ago
parent
commit
118027d3ea

+ 1 - 1
src/views/vent/home/configurable/configurable.data.bd.ts

@@ -216,7 +216,7 @@ export const testConfigBDDust: Config[] = [
           readFrom: '',
           legend: { show: false },
           xAxis: [{ show: true }],
-          yAxis: [{ show: true, name: '浓度', position: 'left' }],
+          yAxis: [{ show: true, name: '浓度(%)', position: 'left' }],
           series: [
             {
               label: '${strinstallpos}',

+ 3 - 1
src/views/vent/home/configurable/dustBD.vue

@@ -86,7 +86,9 @@
   // }
   onMounted(() => {
     fetchConfigs('BD_dust').then(() => {
-      configs.value = testConfigBDDust;
+      if (!configs.value.length) {
+        configs.value = testConfigBDDust;
+      }
 
       getDisHome({
         dataList: devicesTypes.value.concat('dustAllMineWarn').join(','),

+ 3 - 1
src/views/vent/home/configurable/fireBD.vue

@@ -112,7 +112,9 @@
   // }
   onMounted(() => {
     fetchConfigs('BD_fire').then(() => {
-      configs.value = testConfigBDFire;
+      if (!configs.value.length) {
+        configs.value = testConfigBDFire;
+      }
 
       getDisHome({
         dataList: devicesTypes.value.concat('fireAllMineWarn').join(','),