1
0
forked from dyf/APP

4877小优化一下

This commit is contained in:
liub
2025-11-18 10:02:14 +08:00
parent c13cd92f8c
commit ea565276ee
4 changed files with 31 additions and 293 deletions

View File

@ -610,23 +610,23 @@
showUnWarn(val) {
this.showPop({
message: '确定解除声光报警模式?',
iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png",
borderColor: "#e034344d",
buttonBgColor: "#E03434",
okCallback: () => {
// this.showPop({
// message: '确定解除声光报警模式?',
// iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png",
// borderColor: "#e034344d",
// buttonBgColor: "#E03434",
// okCallback: () => {
clearInterval(interval);
this.sosSetting({
val: val
});
},
buttonText: "解除",
showCancel: true,
buttonCancelText: '取消'
// },
// buttonText: "解除",
// showCancel: true,
// buttonCancelText: '取消'
});
// });
},
groupSetting(item, index) {
if (this.formData.sta_SOSType === 'sos') {
@ -694,7 +694,9 @@
});
}
if (item.val === 'sos') {
let confirmTask=()=>{
this.showPop({
message: '确定' + (this.formData.sta_SOSType === 'sos' ? '关闭' : '开启') + '声光报警模式?',
iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png",
@ -705,9 +707,19 @@
showCancel: true,
buttonCancelText: '取消'
});
}
if (item.val === 'sos') {
confirmTask();
} else if (item.val === 'sos_off') {
task();
if(this.formData.sta_SOSType === 'sos'){
confirmTask();
}else{
task();
}
} else {
if (this.formData.sta_SOSType === 'sos') {