From 0547901378595158423e4f992ad889abe9d0aad0 Mon Sep 17 00:00:00 2001 From: 徐旺旺 <11530253@qq.com> Date: 星期一, 19 四月 2021 14:03:11 +0800 Subject: [PATCH] 修复图层重复加载、图层动画颜色不一致、地图数据缺失问题 --- src/components/panel/topicSearch/SewersSearch.vue | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/panel/topicSearch/SewersSearch.vue b/src/components/panel/topicSearch/SewersSearch.vue index 04ef126..b30e701 100644 --- a/src/components/panel/topicSearch/SewersSearch.vue +++ b/src/components/panel/topicSearch/SewersSearch.vue @@ -36,7 +36,7 @@ </div> <el-scrollbar style="height:380.44px;"> <div class="environmental-risk-list" v-for="(item,index) in list" :key="index"> - <img class="state" :src="getImgSrc()" /> + <img class="state" :src="getImgSrc()" style="background: none"/> <div> <h3 @click="handleLocation(item)">{{ item.properties.pipename }}</h3> <p>鎵�灞炰紒涓氾細<span>{{ item.properties.orgcode }}</span> @@ -127,7 +127,7 @@ async handleSearch () { var wfsHelper = new WfsHelper() // todo 鐜板湪绠$綉杩樻病鍖哄垎寮�绫诲瀷锛屽悗闈㈡敼 - wfsHelper.addTypeName(this.form.dataType.name) + wfsHelper.addTypeName(this.form.dataType.sname) wfsHelper.addLike('name', this.form.keyword) // const _this = this const res = await AjaxUtils.GetDataAsynByUrl(wfsHelper.getUrl(), {}) @@ -137,9 +137,7 @@ } }, handleLocation (val) { - const bound = this.L.geoJSON([val], {}).getBounds() - window.map.flyToBounds(bound) - window.layerFactory.flyByLayerId(this.form.dataType.code, val.id) + window.layerFactory.flyByFeature(val, this.form.dataType.code) // layer && layer.openPopup() } } -- Gitblit v1.8.0