修改厂外地图高亮刷新方式
This commit is contained in:
parent
193dc97a51
commit
35c58e23ff
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
* @FilePath: \wwwd:\code\screenFront\src\views\Offsite\content\chart\deviceslist.vue
|
||||
* @FilePath: \code\gitscreenFront\src\views\Offsite\content\chart\deviceslist.vue
|
||||
* @Author: 王路平
|
||||
* @文件版本: V1.0.0
|
||||
* @Date: 2023-02-16 15:09:06
|
||||
@ -186,6 +186,7 @@ onMounted(() => {
|
||||
let newcity = null;
|
||||
//监听dom用于更改地图高亮
|
||||
a.addEventListener("DOMSubtreeModified", () => {
|
||||
|
||||
if (listenerTime.value) {
|
||||
clearTimeout(listenerTime.value);
|
||||
listenerTime.value = null;
|
||||
@ -204,9 +205,9 @@ onMounted(() => {
|
||||
}
|
||||
}
|
||||
newcity = [...new Set(cityarr)];
|
||||
|
||||
Offsite().setcity(newcity);
|
||||
}, 500);
|
||||
|
||||
// Offsite().setcity(newcity);
|
||||
}, 100);
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
* @FilePath: \wwwd:\code\screenFront\src\views\Offsite\content\chart\mapEchart.vue
|
||||
* @FilePath: \code\gitscreenFront\src\views\Offsite\content\chart\mapEchart.vue
|
||||
* @Author: 王路平
|
||||
* @文件版本: V1.0.0
|
||||
* @Date: 2023-02-20 11:54:22
|
||||
|
@ -75,6 +75,7 @@ let {t} = useI18n();
|
||||
(newVal, oldVal) => {
|
||||
// equipment1.value.setData(arr);
|
||||
devlist1.value.setData(newVal)
|
||||
|
||||
},
|
||||
{ deep: true, flush: "post" }
|
||||
);
|
||||
|
@ -92,9 +92,14 @@ let {t} = useI18n();
|
||||
|
||||
if(result.code==200){
|
||||
store.setdevlist(result.data)
|
||||
// result.data.forEach(res=>{
|
||||
// store.setdevitem(res)
|
||||
// })
|
||||
|
||||
let city=[]
|
||||
result.data.forEach(res=>{
|
||||
city.push(res.city)
|
||||
})
|
||||
store.setcity([...new Set(city)]);
|
||||
console.log(store.city);
|
||||
|
||||
}
|
||||
}
|
||||
function getWebsocket(val){
|
||||
@ -114,6 +119,8 @@ let {t} = useI18n();
|
||||
}
|
||||
if(data.type=='DeviceOutPlant'){
|
||||
store.changeDevList(data.msg)
|
||||
console.log(data.msg);
|
||||
|
||||
}
|
||||
|
||||
}catch(err){
|
||||
|
Loading…
Reference in New Issue
Block a user