修改设备信息接口调用

master
suixy 1 month ago
parent 81e02c8d5d
commit 09fee5f073

@ -239,7 +239,7 @@ export default {
this.getData() this.getData()
timer = setInterval(() => { timer = setInterval(() => {
this.getData() this.getData()
}, 1000 * 5) }, 1000 * 30)
}, },
methods: { methods: {
getData() { getData() {
@ -250,14 +250,14 @@ export default {
getDeviceStatusList().then(res => { getDeviceStatusList().then(res => {
this.deviceData = res.data this.deviceData = res.data
}) })
}, 1000) }, 1000 * 2)
setTimeout(() => { setTimeout(() => {
getDeviceStartTimeList().then(res => { getDeviceStartTimeList().then(res => {
res.data.forEach(e => { res.data.forEach(e => {
this.timeData[e.DEVICECODE] = e.STARTTIME / 60 this.timeData[e.DEVICECODE] = ((e.STARTTIME / 60) || 0).toFixed(1)
}) })
}) })
}, 2000) }, 1000 * 2)
} }
}, },
computed: { computed: {

Loading…
Cancel
Save