Commit 13d2738a authored by 纪泽龙's avatar 纪泽龙

修改一个抽屉报警bug

parent a4da81f3
......@@ -773,10 +773,14 @@ export default {
const iten = item[i];
// 不是隐患也不是值班人员
if (!iten.troubleId && !iten.userId) {
return iten.deviceId == device.getExtData().deviceId;
if(iten.deviceId == device.getExtData().deviceId){
return true
}
}
}
})[0][0];
})[0]?.filter(item=>{
return item.deviceId == device.getExtData().deviceId
})[0];
// console.log("myDevice", myDevice);
myDevice.alarmState = options.alarmState;
// const imageName = device.getExtData()
......@@ -1462,7 +1466,7 @@ export default {
},
// 搜索
async search() {
this.searchClear();
this. Clear();
map.clearMap();
this.gaoMap.placeSearch.clear();
if (!(!this.gaoMap.searchSelectAdcode && !this.gaoMap.searchSelectName)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment