|
|
|
|
@ -239,7 +239,7 @@ export default {
|
|
|
|
|
this.getData()
|
|
|
|
|
timer = setInterval(() => {
|
|
|
|
|
this.getData()
|
|
|
|
|
}, 1000 * 5)
|
|
|
|
|
}, 1000 * 30)
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
getData() {
|
|
|
|
|
@ -250,14 +250,14 @@ export default {
|
|
|
|
|
getDeviceStatusList().then(res => {
|
|
|
|
|
this.deviceData = res.data
|
|
|
|
|
})
|
|
|
|
|
}, 1000)
|
|
|
|
|
}, 1000 * 2)
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
getDeviceStartTimeList().then(res => {
|
|
|
|
|
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: {
|
|
|
|
|
|