From 0500089cb454f8018fd3b1114e05a6c9d0b4004e Mon Sep 17 00:00:00 2001
From: 徐旺旺 <11530253@qq.com>
Date: 星期四, 29 四月 2021 16:51:09 +0800
Subject: [PATCH] fix wms's bug
---
src/components/LayerController/service/WfsLayerService.js | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/components/LayerController/service/WfsLayerService.js b/src/components/LayerController/service/WfsLayerService.js
index 0c601a2..b35fa41 100644
--- a/src/components/LayerController/service/WfsLayerService.js
+++ b/src/components/LayerController/service/WfsLayerService.js
@@ -1,5 +1,5 @@
/**
- * 鍔犺浇涓氬姟鏁版嵁鍥惧眰
+ * 鍔犺浇wfs鏈嶅姟鍥惧眰
*/
import { STYLES } from '../../../conf/Constants'
import AjaxUtils from '../../../utils/AjaxUtils'
@@ -63,8 +63,15 @@
})
},
onEachFeature: (feature, layer) => {
+ const popupDatas = []
+ const properties = feature.properties
+ popupDatas.push({
+ title: properties.wellname || properties.devicename || properties.name,
+ name: feature.id,
+ content: properties
+ })
layer.bindPopup((layer) => {
- this.popupComp.setDatas(layer)
+ this.popupComp.setDatas(popupDatas)
this.popupComp.setShow()
return this.popupComp.$el
}, {
--
Gitblit v1.8.0