From c065531c87e7dc199c7fc4d35e4f6fbedf26167d Mon Sep 17 00:00:00 2001
From: 徐旺旺 <11530253@qq.com>
Date: 星期三, 19 五月 2021 15:40:37 +0800
Subject: [PATCH] 定位、弹窗信息、排口查询BUG修复
---
src/components/panel/topicSearch/EnterpriseEmergency/ResourcesQuery.vue | 17 ++++++++++++-----
1 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/src/components/panel/topicSearch/EnterpriseEmergency/ResourcesQuery.vue b/src/components/panel/topicSearch/EnterpriseEmergency/ResourcesQuery.vue
index 3c9a2ee..a0f5f65 100644
--- a/src/components/panel/topicSearch/EnterpriseEmergency/ResourcesQuery.vue
+++ b/src/components/panel/topicSearch/EnterpriseEmergency/ResourcesQuery.vue
@@ -55,10 +55,11 @@
<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 { pulseEffect } from '../../../../utils/utils'
+// import { pulseEffect } from '../../../../utils/utils'
+import { locate } from '../../../helpers/LocateHelper'
+// import { fitBounds, highlight, locate, openPropsPopup } from '../../../helpers/LocateHelper'
export default {
name: 'ResourcesQuery',
@@ -128,16 +129,22 @@
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
}
},
// 鏌ヨ瀹氫綅鍔熻兘
handleLocation (val, index) {
+ console.log(val)
this.activeNum = index
- window.map.setView([val.properties.y, val.properties.x], 16)
- pulseEffect([val.properties.y, val.properties.x])
+ const config = this.form.dataType
+ locate(val, config)
+ // const positionArea = [val.properties.y, val.properties.x]
+ // window.map.setView(positionArea, 17)
+ // pulseEffect(positionArea)
+ // fitBounds(val, this.form.dataType.code)
+ // highlight(val, this.form.dataType)
}
}
}
--
Gitblit v1.8.0