提交: 处理监控大屏 重复 告警ws 返回 success 问题
This commit is contained in:
parent
129a14cb0d
commit
aa26f98808
|
@ -76,7 +76,8 @@ export default {
|
||||||
projectName: '中海创项目',
|
projectName: '中海创项目',
|
||||||
projectAddress: '福建省福州市闽侯县高新区软件园二',
|
projectAddress: '福建省福州市闽侯县高新区软件园二',
|
||||||
alarmContent: '电池异常高温告警'
|
alarmContent: '电池异常高温告警'
|
||||||
}
|
},
|
||||||
|
isOpen: true
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
watch: {},
|
watch: {},
|
||||||
|
@ -127,11 +128,12 @@ export default {
|
||||||
this.stompClient.onclose = this.socket_onclose;
|
this.stompClient.onclose = this.socket_onclose;
|
||||||
},
|
},
|
||||||
socket_message(evt) {
|
socket_message(evt) {
|
||||||
if (evt.data === 'success') {
|
if (evt.data === 'success' && this.isOpen) {
|
||||||
if(this.getExploreName() === 'Chrome') {
|
if(this.getExploreName() === 'Chrome') {
|
||||||
this.$alert('告警已连接,请开启声音接听...', '提示', {
|
this.$alert('告警已连接,请开启声音接听...', '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
});
|
});
|
||||||
|
this.isOpen = false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const data = JSON.parse(evt.data);
|
const data = JSON.parse(evt.data);
|
||||||
|
|
Loading…
Reference in New Issue