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