story#6735 报警--自测后修改

This commit is contained in:
2025-07-31 14:13:17 +08:00
parent ef4abf8e62
commit 47d30f220e
3 changed files with 24 additions and 3 deletions

BIN
src/assets/emptyData.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View File

@ -110,6 +110,16 @@
this.initMap();
},
methods: {
// 新增方法:重置弹窗状态
resetPopupState() {
this.radio = '';
this.remark = '';
// 重置radioList状态
this.radioList = [
{ name: '开始处理', value: 3, disabled: false },
{ name: '处理完成', value: 5, disabled: false }
];
},
goAlarmMonitoring() {
let data = {
"action":"goMonitoring",
@ -133,8 +143,9 @@
remark: this.remark
})
this.$toast('操作成功')
this.resetPopupState();
} finally {
this.dealWithShow = false;
this.dealWithShow = false;
await this.getAlarmDetail();
}
},
@ -148,10 +159,20 @@
if(!res.data) {
this.$router.push({
name: 'vehicleAlarmList',
params: {
token: localStorage.getItem('token')
},
replace: true // 关键:替换当前路由,而不是新增历史记录
});
return
}
// this.$nextTick(() => {
this.info = res?.data;
// 每次获取详情时重置radioList
this.radioList = [
{ name: '开始处理', value: 3, disabled: false },
{ name: '处理完成', value: 5, disabled: false }
];
if( this.info.handStatus == 0 && ['1', '2', '3'].includes(String(this.info.alarmType))) { // 未处理,且需要技术处理
this.radio = this.radioList[0].value
this.radioList[1].disabled = true
@ -159,7 +180,7 @@
if(this.info.handStatus == 3) {
this.radioList[0].disabled = true
}
// })
},
initMap() {
this.map = new AMap.Map('container',{

View File

@ -37,7 +37,7 @@
</van-list>
</van-pull-refresh>
<div class="bgEmptyImg" v-show="show" >
<img src="@/assets/empty.png" />
<img src="@/assets/emptyData.png" />
</div>
</div>
</template>