fix: 地图台站默认不展示核设施
This commit is contained in:
parent
0a9efad3ac
commit
9a2bf03bc5
|
@ -288,7 +288,7 @@ const filterList = [
|
||||||
title: 'Nuclear Facilities',
|
title: 'Nuclear Facilities',
|
||||||
type: MarkerType.NuclearFacility,
|
type: MarkerType.NuclearFacility,
|
||||||
icon: FilterIcon[MarkerType.NuclearFacility],
|
icon: FilterIcon[MarkerType.NuclearFacility],
|
||||||
checked: true,
|
checked: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Groud monitoring station',
|
title: 'Groud monitoring station',
|
||||||
|
|
|
@ -171,6 +171,7 @@ import DataListItem from './components/DataListItem.vue'
|
||||||
import ScrollContainer from '@/components/ScrollContainer/index.vue'
|
import ScrollContainer from '@/components/ScrollContainer/index.vue'
|
||||||
import { getAction } from '../../api/manage'
|
import { getAction } from '../../api/manage'
|
||||||
import { cloneDeep } from 'lodash'
|
import { cloneDeep } from 'lodash'
|
||||||
|
import { MarkerType } from './components/markerEnum'
|
||||||
const key = 'updateList'
|
const key = 'updateList'
|
||||||
export default {
|
export default {
|
||||||
name: 'StationOperation',
|
name: 'StationOperation',
|
||||||
|
@ -257,7 +258,9 @@ export default {
|
||||||
const res = await getAction('/jeecg-station-operation/stationOperation/findList')
|
const res = await getAction('/jeecg-station-operation/stationOperation/findList')
|
||||||
this.originalDataList = res // 保留初始版本
|
this.originalDataList = res // 保留初始版本
|
||||||
this.dataList = cloneDeep(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.markerList_clone = cloneDeep(res)
|
||||||
this.getDataProvisionEfficiency(this.markerList_clone, 'one')
|
this.getDataProvisionEfficiency(this.markerList_clone, 'one')
|
||||||
// this.timer = setInterval(() => {
|
// this.timer = setInterval(() => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user