From bba9dae2c534caefd1009f3cc7b3889b58566de9 Mon Sep 17 00:00:00 2001 From: 陈泽平 <qibolin02429@126.com> Date: 星期一, 17 五月 2021 10:31:07 +0800 Subject: [PATCH] Merge branch 'develop' of http://xearth.cn:6600/r/wuyushui/SewerAndRainNetwork into develop --- src/components/panel/topicSearch/EnterpriseEmergency/ResourcesQuery.vue | 14 ++++++-------- 1 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/components/panel/topicSearch/EnterpriseEmergency/ResourcesQuery.vue b/src/components/panel/topicSearch/EnterpriseEmergency/ResourcesQuery.vue index d98f047..6f9f0e8 100644 --- a/src/components/panel/topicSearch/EnterpriseEmergency/ResourcesQuery.vue +++ b/src/components/panel/topicSearch/EnterpriseEmergency/ResourcesQuery.vue @@ -43,8 +43,8 @@ <div class="environmental-risk-list" v-for="(item,index) in list" :key="index" :class="activeNum===index?'hover':''" @click="handleLocation(item,index)"> <img class="state" :src="getImgSrc(item.properties.type)" style="background: none"/> - <h3>璧勬簮绫诲瀷:{{item.properties.adminzonename}}</h3> - <h5>璧勬簮鍚嶇О:{{item.properties.type}}</h5> + <h3>璧勬簮绫诲瀷:{{item.properties.type}}</h3> + <h5>璧勬簮鍚嶇О:{{item.properties.companyname}}</h5> <p>璐熻矗浜�:<span>{{item.properties.resperson}}</span></p> <p>鐢佃瘽:<span>{{item.properties.telephone}}</span></p> </div> @@ -55,11 +55,10 @@ <script> import WfsHelper from '@components/helpers/WfsHelper' import AjaxUtils from '@utils/AjaxUtils' - // import { LayerEmergency } from '../../../../../conf/LayerEmergency' import { LayerEmergencySource } from '../../../../conf/layers/LayerEmergencySource' import { LayerSurroundings } from '../../../../conf/layers/LayerSurroundings' -import AnimalService from '../../../../components/LayerController/service/AnimalService' +import { pulseEffect } from '../../../../utils/utils' export default { name: 'ResourcesQuery', @@ -126,17 +125,16 @@ this.wfsHelper.addLike('name', this.form.keyword) } const res = await AjaxUtils.GetDataAsynByUrl(this.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 window.map.setView([val.properties.y, val.properties.x], 16) - this.animalService = new AnimalService({ - L: window.L, - layer: window.layer - }) + pulseEffect([val.properties.y, val.properties.x]) } } } -- Gitblit v1.8.0