From b187fa62b3e02d8417d73139dcf3e2271268788d Mon Sep 17 00:00:00 2001 From: 陈泽平 <chenzeping> Date: 星期五, 21 五月 2021 09:00:42 +0800 Subject: [PATCH] 管线分析功能问题修改 --- src/components/panel/topicSearch/EnterpriseEmergency/ResourcesQuery.vue | 22 ++++++++++------------ 1 files changed, 10 insertions(+), 12 deletions(-) diff --git a/src/components/panel/topicSearch/EnterpriseEmergency/ResourcesQuery.vue b/src/components/panel/topicSearch/EnterpriseEmergency/ResourcesQuery.vue index 05777b2..8db99ba 100644 --- a/src/components/panel/topicSearch/EnterpriseEmergency/ResourcesQuery.vue +++ b/src/components/panel/topicSearch/EnterpriseEmergency/ResourcesQuery.vue @@ -44,7 +44,7 @@ :class="activeNum===index?'hover':''" @click="handleLocation(item,index)"> <img class="state" :src="getImgSrc(item.properties.type)" style="background: none"/> <h3>{{changeAmount}}绫诲瀷:{{item.properties.type}}</h3> - <h5>{{changeAmount}}鍚嶇О:{{item.properties.name}}</h5> + <h5>{{changeAmount}}鍚嶇О:{{item.properties.companyname}}</h5> <p>璐熻矗浜�:<span>{{item.properties.resperson}}</span></p> <p>鐢佃瘽:<span>{{item.properties.telephone}}</span></p> </div> @@ -61,8 +61,7 @@ import { LayerSurroundings } from '../../../../conf/layers/LayerSurroundings' // 寮曞叆鐨勬柟娉� import { pulseEffect } from '../../../../utils/utils' -// import { locate } from '../../../helpers/LocateHelper' -// import { fitBounds, highlight, locate, openPropsPopup } from '../../../helpers/LocateHelper' +import { loadPointWfs, pointZoom } from '../../../helpers/LocateHelper' export default { name: 'ResourcesQuery', @@ -75,8 +74,8 @@ dataType: '', keyword: '', eventNameList: [ - { name: '閲戦櫟鐭冲寲' }, - { name: '鍗椾含鍖栧' } + { name: '鎵瓙鐭冲寲' }, + { name: '浠緛鍖栫氦' } ] }, // 鎼滅储鍒扮殑鏁版嵁缁戝畾鐨刟ctive鐨勬牱寮� @@ -130,15 +129,14 @@ async handleSearch () { this.list = [] this.wfsHelper.clearFilter() - // todo 鐜板湪浼佷笟搴旀�ヨ繕娌″尯鍒嗗紑绫诲瀷锛屽悗闈㈡敼 - // console.log(this.form.dataType) - // this.wfsHelper.setTypeName([this.form.dataType.typeName]) this.wfsHelper.setTypeName(['sewer:emergency']) this.wfsHelper.setMaxFeatures(100) if (this.form.dataType) { + this.wfsHelper.addEquals('orgname', '\'' + this.form.eventName + '\'') this.wfsHelper.addEquals('type', '\'' + this.form.dataType.name + '\'') } if (this.form.keyword) { + this.wfsHelper.setFilter(this.form.keyword) this.wfsHelper.addLike('name', this.form.keyword) } const res = await AjaxUtils.GetDataAsynByUrl(this.wfsHelper.getUrl(), {}) @@ -153,11 +151,11 @@ this.activeNum = index const positionArea = [val.properties.y, val.properties.x] window.map.setView(positionArea, 17) + pointZoom(positionArea, this.form.dataType.icon) + // 鍥剧墖 + loadPointWfs(positionArea) + // 寮圭獥 pulseEffect(positionArea) - // const config = this.form.dataType - // locate(val, config) - // fitBounds(val, this.form.dataType.code) - // highlight(val, this.form.dataType) } } } -- Gitblit v1.8.0