From 204b8af237555feb1af83250dfdc28a5dc0a467c Mon Sep 17 00:00:00 2001 From: chenyabin <Chenab123!> Date: 星期一, 10 五月 2021 17:22:07 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/develop' into develop --- src/components/panel/topicSearch/SewersSearch.vue | 18 ++++++++++++------ 1 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/components/panel/topicSearch/SewersSearch.vue b/src/components/panel/topicSearch/SewersSearch.vue index ba6c05b..99842ad 100644 --- a/src/components/panel/topicSearch/SewersSearch.vue +++ b/src/components/panel/topicSearch/SewersSearch.vue @@ -32,14 +32,14 @@ </div> </el-form> </div> - <el-scrollbar style="height:380.44px;"> + <el-scrollbar style="height:413px;"> <div class="environmental-risk-list" v-for="(item,index) in list" :key="index" :class="activeNum==index?'hover':''"> <img class="state" :src="getImgSrc()" style="background: none"/> <div> <h3 @click="handleLocation(item,index)">{{ item.properties.pipename }}</h3> <p>鎵�灞炰紒涓氾細<span>{{ item.properties.orgcode }}</span> <p>璁炬柦绫诲瀷锛�<span>{{ item.properties.teetype }}</span> - <!-- <el-button v-if="fuShuSheShiShow" class="rt" size="mini" style="margin-right: 0.04rem" @click="btnAffiliatedFacilities(item)" >闄勫睘璁炬柦</el-button> --> + <el-button v-if="fuShuSheShiShow" class="rt btn00fff6" size="mini" style="margin-right: 0.04rem;" @click="btnAffiliatedFacilities(item,index)" >闄勫睘璁炬柦</el-button> </p> </div> </div> @@ -111,6 +111,7 @@ isRouteHover: false, facilitiesParameter: null, fuShuSheShiShow: true, + fuShuSheShiPanelShow: true, activeNum: -1 } }, @@ -143,19 +144,24 @@ this.list = [] var wfsHelper = new WfsHelper() // todo 鐜板湪绠$綉杩樻病鍖哄垎寮�绫诲瀷锛屽悗闈㈡敼 - wfsHelper.addTypeName(this.form.dataType.sname) - wfsHelper.addLike('name', this.form.keyword) + wfsHelper.addTypeName(this.form.dataType.typeName) + if (this.form.keyword) { + wfsHelper.addLike('name', this.form.keyword) + } // const _this = this const res = await AjaxUtils.GetDataAsynByUrl(wfsHelper.getUrl(), {}) - console.log(res) if (res instanceof Object && Object.prototype.hasOwnProperty.call(res, 'features')) { this.list = res.features } }, handleLocation (val, index) { this.activeNum = index - this.facilitiesParameter = val // layer && layer.openPopup() + window.layerFactory.flyByFeature(val, this.form.dataType.code) + }, + btnAffiliatedFacilities (val, index) { + this.activeNum = index + this.facilitiesParameter = val // 鍒ゆ柇閫夋嫨鏄惁鏄绾匡紝濡傛灉鏄垯鏄剧ず銆婇檮灞炶鏂姐�嬪脊妗� if (this.form.pipelineType === '绠$嚎') { this.fuShuSheShiShow = true -- Gitblit v1.8.0