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

View File

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