瀏覽代碼

通风监测预警修改-提交

lxh 7 月之前
父節點
當前提交
ad909fbea9

+ 2 - 1
src/views/vent/monitorManager/alarmMonitor/warn/ventilateWarn.vue

@@ -21,7 +21,7 @@
                             <span>{{ item.label }}</span>
                             <span>{{ item.value }}</span>
                         </div>
-                        <div class="text" v-if="item.text">{{ item.text }}</div>
+                        <div :style="{color:item.text=='正常' ? '#00d8ff' : '#ff2313'}" style="width:100%;padding: 0px 10px;text-align: center;font-weight: bold" v-if="item.text">{{ item.text }}</div>
                         <div class="percent" v-if="item.list.length != 0">
                             <div class="title">{{ item.label }}</div>
                             <div class="value">
@@ -164,6 +164,7 @@ function getSysWarnList(id, type) {
             ventilateTopList[0].value = res.jin || '--';
             ventilateTopList[1].value = res.hui || '--';
             ventilateTopList[2].value = res.xufengliang || '--';
+            ventilateTopList[3].text = res.warnFlag ? res.warnDes : '正常';
 
             if (res.history.length != 0) {
                 res.history.forEach((v) => {

+ 1 - 1
src/views/vent/monitorManager/deviceMonitor/components/device/device.data.ts

@@ -70,7 +70,7 @@ export function getMonitorComponent() {
   const GaspatrolModal = defineAsyncComponent(() => import('./modal/gaspatrol.modal.vue'));
   const WisdomBallModal = defineAsyncComponent(() => import('./modal/wisdomball.modal.vue'));
 
-  return { FiberModal, FiremonNormalModal, BundleModal, DustModal, BallvalveModal, AtomizingModal, GaspatrolModal,WisdomBallModal };
+  return { FiberModal, BundleModal, DustModal, BallvalveModal, AtomizingModal, GaspatrolModal,WisdomBallModal };
 }
 
 export const chartsColumnList = [