处理过滤台站后,波纹依旧显示的问题

This commit is contained in:
renpy 2023-08-29 19:16:41 +08:00
parent 469e67dd86
commit ec166fb43c

View File

@ -212,7 +212,8 @@ export default {
stationTypeList: [], stationTypeList: [],
treeData: [], // treeData: [], //
timer: null timer: null,
updataFilterType: []
} }
}, },
created() { created() {
@ -269,7 +270,26 @@ export default {
}) })
}) })
this.orgStationList = res.result this.orgStationList = res.result
this.upDateStationList = res.result if (this.updataFilterType.length>0) {
this.upDateStationList = this.orgStationList.filter(item => this.updataFilterType.includes(item.stationType))
} else {
this.upDateStationList = res.result
}
if (this.markerList.length > 0) {
let curList = []
this.markerList.forEach(item => {
if (item.stationType!="Nuclear Facility" && item.stationType!="NRL") {
this.orgStationList.forEach(el => {
if (parseInt(el.id) == item.stationId) {
curList.push(el)
}
})
}
})
this.upDateStationList=curList
} else {
this.upDateStationList=[]
}
} else { } else {
this.$message.warning("This operation fails. Contact your system administrator") this.$message.warning("This operation fails. Contact your system administrator")
} }
@ -409,6 +429,23 @@ export default {
// marker // marker
onChangeMarker(markerList) { onChangeMarker(markerList) {
this.markerList = markerList this.markerList = markerList
let curList = []
if (markerList.length>0) {
markerList.forEach(item => {
if (item.stationType!="Nuclear Facility" && item.stationType!="NRL") {
this.orgStationList.forEach(el => {
if (parseInt(el.id) == item.stationId) {
el.stationType = item.stationType
el.stationId = item.stationId
curList.push(el)
}
})
}
})
this.upDateStationList=curList
} else {
this.upDateStationList=[]
}
}, },
// //
@ -421,6 +458,7 @@ export default {
* 根据类型筛选地图上的marker列表 * 根据类型筛选地图上的marker列表
*/ */
onFilterMarker({ filterType, filterDataQuality }) { onFilterMarker({ filterType, filterDataQuality }) {
this.updataFilterType = filterType
console.log( console.log(
'%c [ filterType, filterDataQuality ]-343', '%c [ filterType, filterDataQuality ]-343',
'font-size:13px; background:pink; color:#bf2c9f;', 'font-size:13px; background:pink; color:#bf2c9f;',