system-clients 3.0.42-fanxian → 3.0.43-fanxian
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/Main.vue +9 -2
package/package.json
CHANGED
package/src/components/Main.vue
CHANGED
@@ -128,14 +128,14 @@
|
|
128
128
|
<!-- 异常查看 -->
|
129
129
|
<modal v-if="showAbnormity" :show.sync="showAbnormity" :width="1000" v-ref:modal backdrop="false">
|
130
130
|
<header slot="modal-header" class="modal-header">
|
131
|
-
<button type="button" class="close" @click="
|
131
|
+
<button type="button" class="close" @click="stopSoundNew"><span>×</span></button>
|
132
132
|
<h4 class="modal-title">异常报警</h4>
|
133
133
|
</header>
|
134
134
|
<article slot="modal-body" class="modal-body modifystyle auto form-horizontal">
|
135
135
|
<alarm-information :mergeinfo=abnormityWarningData></alarm-information>
|
136
136
|
</article>
|
137
137
|
<footer slot="modal-footer" class="modal-footer">
|
138
|
-
<button type="button" class="btn btn-success" @click='
|
138
|
+
<button type="button" class="btn btn-success" @click='stopSoundNew'>确认</button>
|
139
139
|
</footer>
|
140
140
|
</modal>
|
141
141
|
</div>
|
@@ -248,6 +248,7 @@
|
|
248
248
|
if (this.abnormityWarningData.data.length > 0) {
|
249
249
|
this.playSound()
|
250
250
|
this.showaData = true
|
251
|
+
this.showAbnormity = true
|
251
252
|
} else {
|
252
253
|
this.showaData = false
|
253
254
|
}
|
@@ -264,6 +265,7 @@
|
|
264
265
|
if (this.abnormityWarningData.data.length > 0) {
|
265
266
|
this.playSound()
|
266
267
|
this.showaData = true
|
268
|
+
this.showAbnormity = true
|
267
269
|
} else {
|
268
270
|
this.showaData = false
|
269
271
|
}
|
@@ -346,6 +348,7 @@
|
|
346
348
|
this.audio = new Audio()
|
347
349
|
this.audio.src = 'static/newStyle/alarm.mp3' // 替换为实际的音频文件路径
|
348
350
|
this.audio.loop = true // 设置循环播放
|
351
|
+
this.audio.autoplay = true
|
349
352
|
this.audio.play()
|
350
353
|
},
|
351
354
|
stopSound () {
|
@@ -353,6 +356,10 @@
|
|
353
356
|
this.audio.pause()
|
354
357
|
this.audio = null
|
355
358
|
}
|
359
|
+
},
|
360
|
+
stopSoundNew () {
|
361
|
+
this.showAbnormity = false
|
362
|
+
this.stopSound()
|
356
363
|
}
|
357
364
|
},
|
358
365
|
computed: {
|