lxh 6 hónapja
szülő
commit
088f555753
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      src/views/vent/safetyList/index.vue

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

@@ -144,7 +144,7 @@ async function getStationList() {
     el.linkstatusC = el.linkstatus ? '连接' : '未连接'
     el.children = el.devInfoList
     el.children.forEach(v => {
-      v.key = v.deviceID
+      v.key = v.id
       v.linkstatus = v.netStatus
       v.linkstatusC = v.linkstatus ? '连接' : '未连接'
       v.updateTime = v.time
@@ -163,7 +163,7 @@ function pageChange(val) {
 }
 //启动新设备
 async function handlerunDeviceMonitor(record) {
-  let res = await runDeviceMonitor({ devId: record.deviceID })
+  let res = await runDeviceMonitor({ devId: record.id })
   console.log(res,'新设备启动---')
   getStationList();
 }