Ver Fonte

首页预警信息,压风管控bug修改-更新

lxh há 8 meses atrás
pai
commit
f8c2af55d8

+ 2 - 1
src/views/vent/home/colliery/components/device-warn.vue

@@ -10,7 +10,8 @@
           <span style="color: #fff">{{ !nowStatus ? '报警信息' : '网络断开' }}</span>
         </div>
 
-        <div class="now-status">{{ !nowStatus ? nowStatus : 0 }}</div>
+        <!-- <div class="now-status">{{ !nowStatus ? nowStatus : 0 }}</div> -->
+        <div class="now-status">{{  nowStatus}}</div>
       </div>
     </div>
     <div class="warn-contents">

+ 3 - 3
src/views/vent/home/colliery/components/wind-device.vue

@@ -23,15 +23,15 @@
             <div class="level-text">
               <div class="all-count">
                 <span>{{ `${item.allText}&nbsp:&nbsp` }}</span>
-                <span class="num-count">{{ item.allCount || '-' }}</span>
+                <span class="num-count">{{ item.allCount || 0 }}</span>
               </div>
               <div class="warn-count">
                 <span>{{ `${item.warnText}&nbsp:&nbsp` }}</span>
-                <span class="num-count">{{ item.warnCount || '-' }}</span>
+                <span class="num-count">{{ item.warnCount || 0 }}</span>
               </div>
               <div class="close-count">
                 <span> {{ `${item.closeText}&nbsp:&nbsp` }}</span>
-                <span class="num-count">{{ item.closeCount || '-' }}</span>
+                <span class="num-count">{{ item.closeCount || 0 }}</span>
               </div>
             </div>
           </div>

+ 4 - 4
src/views/vent/monitorManager/nitrogen/components/nitrogenHome1.vue

@@ -117,9 +117,9 @@
                               <span
                                 :class="{
                                   'signal-round': true,
-                                  'signal-round-run':selectData[deviceKey + item.code] == '0',
+                                  'signal-round-run':item.type=='sign' ? selectData[deviceKey + item.code] == '1' : selectData[deviceKey + item.code] == '0',
                                   'signal-round-gry': selectData[deviceKey + item.code] != '0' && selectData[deviceKey + item.code] != '1',
-                                  'signal-round-warning':selectData[deviceKey + item.code] == '1',
+                                  'signal-round-warning':item.type=='sign' ? selectData[deviceKey + item.code] == '0' : selectData[deviceKey + item.code] == '1',
                                 }"
                               ></span>
                             </div>
@@ -166,9 +166,9 @@
                             <span
                               :class="{
                                 'signal-round': true,
-                                'signal-round-run':selectData[deviceKey + item.code] == '0',
+                                'signal-round-run':item.type=='sign' ? selectData[deviceKey + item.code] == '1'  : selectData[deviceKey + item.code] == '0',
                                 'signal-round-gry': selectData[deviceKey + item.code] != '0' && selectData[deviceKey + item.code] != '1',
-                                'signal-round-warning': selectData[deviceKey + item.code] == '1',
+                                'signal-round-warning':item.type=='sign' ? selectData[deviceKey + item.code] == '0'  : selectData[deviceKey + item.code] == '1',
                               }"
                             ></span>
                           </div>

+ 6 - 6
src/views/vent/monitorManager/nitrogen/nitrogen.data.hty.ts

@@ -168,7 +168,7 @@ export const leftMonitor = [
                     {
                         title: '加载',
                         code: '_AirCompressor_Load',
-                        type: 'warning',
+                        type: 'sign',
                     },
                     {
                         title: `电机前轴振动`,
@@ -297,7 +297,7 @@ export const leftMonitor = [
                     {
                         title: '加载',
                         code: '_AirCompressor_Load',
-                        type: 'warning',
+                        type: 'sign',
                     },
                     {
                         title: `电机前轴振动`,
@@ -426,7 +426,7 @@ export const leftMonitor = [
                     {
                         title: '加载',
                         code: '_AirCompressor_Load',
-                        type: 'warning',
+                        type: 'sign',
                     },
                     {
                         title: `电机前轴振动`,
@@ -558,7 +558,7 @@ export const rightMonitor = [
                     {
                         title: '加载',
                         code: '_AirCompressor_Load',
-                        type: 'warning',
+                        type: 'sign',
                     },
                     {
                         title: `电机前轴振动`,
@@ -687,7 +687,7 @@ export const rightMonitor = [
                     {
                         title: '加载',
                         code: '_AirCompressor_Load',
-                        type: 'warning',
+                        type: 'sign',
                     },
                     {
                         title: `电机前轴振动`,
@@ -816,7 +816,7 @@ export const rightMonitor = [
                     {
                         title: '加载',
                         code: '_AirCompressor_Load',
-                        type: 'warning',
+                        type: 'sign',
                     },
                     {
                         title: `电机前轴振动`,