From d7c50f6207f0f27f4c20aa96f75b7c0b610b2b23 Mon Sep 17 00:00:00 2001
From: 陈泽平 <chenzeping>
Date: 星期四, 20 五月 2021 11:06:54 +0800
Subject: [PATCH] 管线弹框分析修改

---
 src/components/panel/topicSearch/EnterpriseEmergency/ResourcesQuery.vue |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/src/components/panel/topicSearch/EnterpriseEmergency/ResourcesQuery.vue b/src/components/panel/topicSearch/EnterpriseEmergency/ResourcesQuery.vue
index 05777b2..ccff3b1 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',
@@ -142,7 +141,7 @@
         this.wfsHelper.addLike('name', this.form.keyword)
       }
       const res = await AjaxUtils.GetDataAsynByUrl(this.wfsHelper.getUrl(), {})
-      // console.log(res)
+      console.log(res)
       if (res instanceof Object && Object.prototype.hasOwnProperty.call(res, 'features')) {
         this.list = res.features
       }
@@ -153,11 +152,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