Преглед на файлове

[Mod 0000] 预警看板字段修改以及首页风量绝对值问题修复

houzekong преди 2 дни
родител
ревизия
5c2c49c81e
променени са 2 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 2 2
      src/views/vent/home/billboard/billboard.data.ts
  2. 2 2
      src/views/vent/home/configurable/configurable.api.ts

+ 2 - 2
src/views/vent/home/billboard/billboard.data.ts

@@ -452,10 +452,10 @@ export const SUMMARY_COLUMN = [
 export const WARNING_CONFIG = [
   { src: '', text: '监测总数', prop1: 'allNum', prop2: 'maxLevel', id: 'warning_cfg_000' },
   { src: SafetyIcon, text: '安全监测', prop1: 'synthesizeSWarnInfo.totalNum', prop2: 'synthesizeSWarnInfo.maxWarnLevel', id: 'warning_cfg_005' },
-  { src: VentIcon, text: '风', prop1: 'ventSWarnInfo.totalNum', prop2: 'ventSWarnInfo.maxWarnLevel', id: 'warning_cfg_004' },
+  { src: VentIcon, text: '对射测风', prop1: 'ventSWarnInfo.totalNum', prop2: 'ventSWarnInfo.maxWarnLevel', id: 'warning_cfg_004' },
   { src: DustIcon, text: '粉尘', prop1: 'dustSWarnInfo.totalNum', prop2: 'dustSWarnInfo.maxWarnLevel', id: 'warning_cfg_003' },
   { src: GasIcon, text: '瓦斯', prop1: 'gasSWarnInfo.totalNum', prop2: 'gasSWarnInfo.maxWarnLevel', id: 'warning_cfg_001' },
-  { src: FireIcon, text: '火灾', prop1: 'fireSWarnInfo.totalNum', prop2: 'fireSWarnInfo.maxWarnLevel', id: 'warning_cfg_002' },
+  { src: FireIcon, text: '束管监测', prop1: 'fireSWarnInfo.totalNum', prop2: 'fireSWarnInfo.maxWarnLevel', id: 'warning_cfg_002' },
 ];
 
 // 粉尘预警相关的内容配置项

+ 2 - 2
src/views/vent/home/configurable/configurable.api.ts

@@ -99,10 +99,10 @@ export const list = (params) => {
     if (res.sys_wind) {
       res.sys_wind.forEach((e) => {
         if (e.readData.m3) {
-          e.readData.m3 = Math.abs(parseFloat(e.readData.m3));
+          e.readData.m3 = e.readData.m3.replace('-', '');
         }
         if (e.readData.va) {
-          e.readData.va = Math.abs(parseFloat(e.readData.va));
+          e.readData.va = e.readData.va.replace('-', '');
         }
       });
     }