fix: 切换回台站页面时,已过滤掉的台站又出来了的问题

This commit is contained in:
Xu Zhimeng 2024-10-12 16:20:28 +08:00
parent d71d2334ee
commit 99ddd642e0

View File

@ -253,8 +253,12 @@ export default {
})
this.originalDataList = res //
this.dataList = cloneDeep(res)
this.markerList = cloneDeep(res).filter((stationInfo) => stationInfo.stationType !== MarkerType.NuclearFacility) //
this.markerList = cloneDeep(res).filter((stationInfo) => {
return (
stationInfo.stationType !== MarkerType.NuclearFacility &&
(!this.updataFilterType.length || this.updataFilterType.includes(stationInfo.stationType))
)
}) //
this.markerList_clone = cloneDeep(res)
this.getDataProvisionEfficiency(this.markerList_clone)