语音播放,强制报警模式修改
This commit is contained in:
@ -649,7 +649,6 @@
|
||||
},
|
||||
// 语音管理
|
||||
audioManager(item) {
|
||||
this.formData.sta_VoiceType = -1
|
||||
if (this.Status.apiType !== 'listA') { }
|
||||
uni.navigateTo({
|
||||
url: '/pages/100J/audioManager/AudioList',
|
||||
@ -784,7 +783,6 @@
|
||||
// 警示灯开关闭
|
||||
lightTypeSet(item, index) {
|
||||
console.log('走了么');
|
||||
|
||||
let val = item.key;
|
||||
// 切换选中/取消选中逻辑
|
||||
if (this.formData.sta_LightType === val) {
|
||||
@ -831,7 +829,9 @@
|
||||
this.formData.sta_VoiceType = val;
|
||||
// 模式类型为7时才去判断
|
||||
console.log(val, 'valllll');
|
||||
if (val === '7' || val === '-1') {
|
||||
const voiceStrobeAlarm = this.deviceInfo?.voiceStrobeAlarm ?? 0; // 兜底0,避免undefined
|
||||
const isVoiceOperate = val === '7' || val === '-1'; // 标记是否是语音开启/关闭操作
|
||||
if (voiceStrobeAlarm === 0 && isVoiceOperate) {
|
||||
let data = {
|
||||
deviceId: this.deviceInfo.deviceId,
|
||||
voiceBroadcast: Number(this.formData.sta_VoiceType) === -1 ? 0 : 1
|
||||
@ -908,6 +908,9 @@
|
||||
title: isClose ? '声光报警已解除' : '强制报警已开启',
|
||||
icon: 'none'
|
||||
});
|
||||
if (isClose && this.formData.sta_VoiceType === '7') {
|
||||
this.formData.sta_VoiceType = '-1';
|
||||
}
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
@ -1421,8 +1424,6 @@
|
||||
.proinfo .item .img {
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
|
||||
|
||||
}
|
||||
|
||||
.proinfo .item .txt {
|
||||
@ -1435,14 +1436,10 @@
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
|
||||
.slider-container {
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
.addIco {
|
||||
width: 100%;
|
||||
height: 360rpx;
|
||||
|
||||
Reference in New Issue
Block a user