fix: 地图台站默认不展示核设施

This commit is contained in:
Xu Zhimeng 2023-12-12 18:37:46 +08:00
parent 0a9efad3ac
commit 9a2bf03bc5
2 changed files with 5 additions and 2 deletions

View File

@ -288,7 +288,7 @@ const filterList = [
title: 'Nuclear Facilities',
type: MarkerType.NuclearFacility,
icon: FilterIcon[MarkerType.NuclearFacility],
checked: true,
checked: false,
},
{
title: 'Groud monitoring station',

View File

@ -171,6 +171,7 @@ import DataListItem from './components/DataListItem.vue'
import ScrollContainer from '@/components/ScrollContainer/index.vue'
import { getAction } from '../../api/manage'
import { cloneDeep } from 'lodash'
import { MarkerType } from './components/markerEnum'
const key = 'updateList'
export default {
name: 'StationOperation',
@ -257,7 +258,9 @@ export default {
const res = await getAction('/jeecg-station-operation/stationOperation/findList')
this.originalDataList = res //
this.dataList = cloneDeep(res)
this.markerList = cloneDeep(res)
this.markerList = cloneDeep(res).filter((stationInfo) => stationInfo.stationType !== MarkerType.NuclearFacility) //
this.markerList_clone = cloneDeep(res)
this.getDataProvisionEfficiency(this.markerList_clone, 'one')
// this.timer = setInterval(() => {