ソースを参照

235分站更新

lxh 2 日 前
コミット
9ec047920a
1 ファイル変更4 行追加4 行削除
  1. 4 4
      src/views/vent/safetyList/common/detail-235.vue

+ 4 - 4
src/views/vent/safetyList/common/detail-235.vue

@@ -775,7 +775,7 @@ async function handleClick(data) {
 
 //获取分站实时监测信息
 async function getSubStationList() {
-  let res = await subStationList({ strtype: 'modbus', reqparam: '235' });
+  let res = await subStationList({  reqparam: '235' });
   if (res.length != 0) {
     cardList.value = res;
     stationId.value = stationId.value ? stationId.value : cardList.value[0].id
@@ -850,19 +850,19 @@ async function getStationListAll() {
     el.children = el.devInfoList;
     el.children.forEach((v) => {
       v.key = v.id;
-      v.debugTitle = v.deviceType == 'windrect_ds_two_130' ? v.status === 1 ? '结束调试' : v.status === 0 ? '调试' : '' : ''
+      v.debugTitle = v.deviceType == 'windrect_ds_two_235' ? v.status === 1 ? '结束调试' : v.status === 0 ? '调试' : '' : ''
       v.stripC = v.strserno || '';
       v.linkstatusC = v.netStatus ? '连接' : '断开';
       v.linkIdC = v.linkId == '0' ? '未启用' : v.linkId == '1' ? '启用' : v.linkId == '2' ? '设备异常' : '';
       v.updateTime = v.time;
       v.gdmsC = v.gdms == '1' ? '直流供电' : v.gdms == '0' ? '交流供电' : '';
       v.valueJc = `风向:${v.forward || ''},风量:${v.m3 || ''}m³/min,风速:${v.windSpeed || ''}m/s,气压:${v.pa || ''}Pa,压差:${v.difPress || ''
-        }Pa,温度:${v.temperature || ''}℃,湿度:${v.humidity || ''}%,断面积:${v.area || ''}㎡,ch4:${v.ch4 || ''}%`;
+        }Pa,温度:${v.temperature || ''}℃,湿度:${v.humidity || ''}%,断面积:${v.area || ''}㎡,ch4:${v.ch4 || ''}%,密度:${v.density || ''}%,相对湿度:${v.humidity || ''}%`;
     });
   });
   
   tableData.value = res;
-  // pagination.total = res.total;
+  pagination.total = res.total;
 }
 //显示全部
 function getAllShow() {