报警微调
This commit is contained in:
parent
027f00da77
commit
6f8d198f4c
@ -242,7 +242,7 @@ export default {
|
||||
},
|
||||
watch: {
|
||||
alarmDetailMessage() {
|
||||
if (this.alarmDetailMessage.length == 1) { this.showAlarm(); } else { console.log(this.alarmDetailMessage, 555555); }
|
||||
if (this.alarmDetailMessage.length == 1) { this.showAlarmPlayAlarmMusic(); } else { console.log(this.alarmDetailMessage, 555555); }
|
||||
}
|
||||
},
|
||||
beforeDestroy() {
|
||||
@ -257,12 +257,14 @@ export default {
|
||||
this.$refs.audio.src = alarmMusic;
|
||||
this.$refs.audio.play();
|
||||
},
|
||||
showAlarmPlayAlarmMusic() {
|
||||
this.playAlarmMusic();
|
||||
this.showAlarm();
|
||||
},
|
||||
showAlarm() {
|
||||
this.items.forEach((item)=>{
|
||||
item.show = !item.show;
|
||||
});
|
||||
this.playAlarmMusic();
|
||||
this.showDecisionMessage = this.decisionMessage[0];
|
||||
if (this.alarmDetailMessage.length > 0) {
|
||||
const station = this.$store.getters['map/getDeviceByCode'](this.alarmDetailMessage[0].deviceCode);
|
||||
this.showAlarmInfo.time = this.alarmDetailMessage[0].time;
|
||||
|
Loading…
Reference in New Issue
Block a user