修改日志

boardTest
suixy 2 weeks ago
parent 06ecbcc11e
commit ed77186749

@ -112,13 +112,22 @@ export default {
}
return value;
})
console.log('收到全局WebSocket数据:', data)
// console.log('WebSocket:', data)
if (data.deviceParam) {
// 线
this.$bus.$emit('websocket-device-data', data)
}
this.isOnline[data.deviceParam.monitorId] = new Date().getTime()
console.log(data.deviceParam.monitorId)
if (data.monitorId && data.monitorId.toString().length === 9 && data.monitorId.toString()[0] === '9') {
let str1 = data.monitorId.toString()
let str2 = str1.slice(1)
let startStr = str2.slice(0, 4);
let endStr = str2.slice(4);
let key = 'E' + startStr + '_' + endStr;
this.isOnline[key] = new Date().getTime()
this.selectOffLineDevice()
}
@ -369,7 +378,7 @@ export default {
},
saveLo(e) {
let localStorageData = localStorage.getItem('ERROR')
let data = {}
let data = []
if (localStorageData) {
data = JSON.parse(localStorageData)
}

Loading…
Cancel
Save