|
|
|
|
@ -121,7 +121,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
console.log(data.deviceParam.monitorId)
|
|
|
|
|
|
|
|
|
|
if (data.monitorId && data.monitorId.toString().length === 9 && data.monitorId.toString()[0] === '9') {
|
|
|
|
|
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);
|
|
|
|
|
@ -130,6 +130,15 @@ export default {
|
|
|
|
|
this.isOnline[key] = new Date().getTime()
|
|
|
|
|
this.selectOffLineDevice()
|
|
|
|
|
}
|
|
|
|
|
if (data.monitorId && data.monitorId.toString().length === 9 && ( data.monitorId.toString()[0] === 'E')) {
|
|
|
|
|
let str1 = data.monitorId.toString()
|
|
|
|
|
let str2 = str1.slice(1)
|
|
|
|
|
let startStr = str2.slice(0, 4);
|
|
|
|
|
let endStr = str2.slice(5);
|
|
|
|
|
let key = 'E' + startStr + '_' + endStr;
|
|
|
|
|
this.isOnline[key] = new Date().getTime()
|
|
|
|
|
this.selectOffLineDevice()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (data.isFlag === 1 && data.alarmRules && data.alarmContents) {
|
|
|
|
|
// 处理告警数据 - 加入队列管理
|
|
|
|
|
|