Browse Source

分站管理设备连接状态修改-提交

lxh 5 tháng trước cách đây
mục cha
commit
7f1afc90a5
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/views/vent/safetyList/index.vue

+ 2 - 2
src/views/vent/safetyList/index.vue

@@ -191,8 +191,8 @@ async function getStationList() {
     el.children = el.devInfoList
     el.children.forEach(v => {
       v.key = v.id
-      v.linkstatus = v.netStatus
-      v.linkstatusC = v.linkstatus ? '连接' : '未连接'
+      v.linkstatus = v.linkId
+      v.linkstatusC = v.linkstatus=='0' ? '待启用' : v.linkstatus=='1' ? '连接': '断开'
       v.updateTime = v.time
       v.valueJc = `风量:${v.m3 || ''},风速:${v.va || ''},气压:${v.pa || ''},温度:${v.temperature || ''},湿度:${v.humidity || ''},风速:${v.windSpeed || ''},压差:${v.difPress || ''}`