Kaynağa Gözat

[Feat 0000] 调整爆炸三角形相关的数据

houzekong 5 ay önce
ebeveyn
işleme
c56ae53b31

+ 7 - 0
src/views/vent/home/configurable/configurable.api.ts

@@ -60,6 +60,13 @@ export const getBDFireData = (params) => {
     res.sgGxObj.devGxcw.forEach((e) => {
       e.fibreTemperatureArr = JSON.parse(e.fibreTemperature);
     });
+    res.sgGxObj.devSgjc.forEach((e) => {
+      e.o2val = e.o2Val || 0;
+      e.coval = e.coVal || 0;
+      e.gasval = e.gasVal || 0;
+      e.ch2val = e.ch2Val || 0;
+      e.chval = e.chVal || 0;
+    });
     return res;
   });
 };

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

@@ -2619,7 +2619,7 @@ export const testConfigBDFire: Config[] = [
       slice: {
         direction: 'column',
         ignoreOverflow: true,
-        basis: ['35%', '65%'],
+        basis: ['30%', '70%'],
       },
       layout: ['board', 'chart'],
       board: [