Commit de3bf945 authored by 耿迪迪's avatar 耿迪迪
parents c46c56b4 19fc29f7
<template>
<div>
<div class="audio" >
<div class="audio">
<audio ref="audio" :src="mp3Src"></audio>
</div>
<div
......@@ -519,8 +519,8 @@ export default {
}
},
audio(){
console.log("this.$refs.audio.paused",this.$refs.audio.paused)
audio() {
console.log("this.$refs.audio.paused", this.$refs.audio.paused);
if (this.$refs.audio.paused) {
// this.$refs.audio.paused = false;
this.$refs.audio.play();
......@@ -727,6 +727,8 @@ export default {
options.lineData.alarmValue = null;
console.log("管道回复");
} else {
// 报警声音
this.audio();
polyline.setOptions({ strokeColor: "#ff0000" });
options.lineData.alarmState = 1;
// 报警类型
......@@ -776,6 +778,8 @@ export default {
// 报警信息
options.alarmValue = null;
} else {
// 报警声音
this.audio();
options.alarmState = 1;
// 报警类型
options.alarmType = alarmType;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment