From 30c3c06760f6412cbdb2a3a8418e1f0d43e66d30 Mon Sep 17 00:00:00 2001
From: chenyabin <Chenab123!>
Date: 星期一, 19 四月 2021 18:15:34 +0800
Subject: [PATCH] 完成附属设施功能。1
---
src/components/panel/topicSearch/SewersSearch.vue | 22 ++++++++--------------
1 files changed, 8 insertions(+), 14 deletions(-)
diff --git a/src/components/panel/topicSearch/SewersSearch.vue b/src/components/panel/topicSearch/SewersSearch.vue
index 706f5e2..ba6c05b 100644
--- a/src/components/panel/topicSearch/SewersSearch.vue
+++ b/src/components/panel/topicSearch/SewersSearch.vue
@@ -65,7 +65,7 @@
</el-tab-pane>
</el-tabs>
<!-- 闄勫睘璁炬柦闈㈡澘 -->
- <affiliated-facilities :facilitiesParameter="facilitiesParameter" :fuShuSheShiSubItems="fuShuSheShiSubItems" ></affiliated-facilities>
+ <affiliated-facilities :facilitiesParameter="facilitiesParameter" v-if="fuShuSheShiShow" ></affiliated-facilities>
</div>
</template>
@@ -101,7 +101,7 @@
subItems: LayerPipeLines.layers,
total: 0,
form: {
- pipelineType: '绠$綉',
+ pipelineType: '绠$嚎',
dataType: '',
keyword: ''
},
@@ -110,8 +110,7 @@
isWaybillHover: true,
isRouteHover: false,
facilitiesParameter: null,
- // fuShuSheShiShow: false,
-
+ fuShuSheShiShow: true,
activeNum: -1
}
},
@@ -155,19 +154,14 @@
},
handleLocation (val, index) {
this.activeNum = index
-
this.facilitiesParameter = val
// layer && layer.openPopup()
// 鍒ゆ柇閫夋嫨鏄惁鏄绾匡紝濡傛灉鏄垯鏄剧ず銆婇檮灞炶鏂姐�嬪脊妗�
- /* if (this.form.pipelineType === '绠$嚎') {
- for (let i = 0; i < this.items.length; i++) {
- const item = this.items[i]
- if (item.name === '闄勫睘璁炬柦') {
- this.fuShuSheShiSubItems = item.layers
- // console.log(this.fuShuSheShiSubItems)
- }
- }
- } */
+ if (this.form.pipelineType === '绠$嚎') {
+ this.fuShuSheShiShow = true
+ } else {
+ this.fuShuSheShiShow = false
+ }
window.layerFactory.flyByFeature(val, this.form.dataType.code)
}
}
--
Gitblit v1.8.0