From 81e462c9578834d32a30f939d940fb674f1e29f8 Mon Sep 17 00:00:00 2001 From: 陈泽平 <chenzeping> Date: 星期五, 21 五月 2021 17:35:54 +0800 Subject: [PATCH] Merge branch 'develop' of http://xearth.cn:6600/r/wuyushui/SewerAndRainNetwork into develop --- src/components/BaseNav/pipeline/AffiliatedFacilities.vue | 16 ++++++++++++++-- 1 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/components/BaseNav/pipeline/AffiliatedFacilities.vue b/src/components/BaseNav/pipeline/AffiliatedFacilities.vue index 7b12539..87260dc 100644 --- a/src/components/BaseNav/pipeline/AffiliatedFacilities.vue +++ b/src/components/BaseNav/pipeline/AffiliatedFacilities.vue @@ -54,6 +54,7 @@ import WfsHelper from '@components/helpers/WfsHelper' import AjaxUtils from '@utils/AjaxUtils' import { LayerFsss } from '@src/conf/layers/LayerFsss' +import { locate } from '../../helpers/LocateHelper' // console.log(LayerFsss, 8888888888) export default { @@ -66,7 +67,6 @@ keyword: '' }, dataType: '', - classification: LayerFsss.layers, list: [], activeNum: -1 } @@ -81,11 +81,23 @@ deep: true } }, + computed: { + classification () { + const layers = LayerFsss.layers + console.log(layers) + const filtered = layers.filter(function (value, index, array) { + console.log(value) + return value.name !== '娴佸悜' + }) + return filtered + } + }, methods: { getImgSrc () { const icon = this.dataType.icon return icon ? 'assets/images/map/' + icon : '' }, + handleClose (done) { // this.$confirm('纭鍏抽棴锛�').then(_ => { done() }).catch(_ => {}) }, @@ -120,7 +132,7 @@ }, handleLocation (val, index) { this.activeNum = index - window.layerFactory.flyByFeature(val, this.dataType.code) + locate(val, this.dataType) } } } -- Gitblit v1.8.0