From a3a0083ab18c8b4f0dad49ecbc67275df1896f5d Mon Sep 17 00:00:00 2001
From: yangdelong <828900aaa>
Date: 星期一, 19 四月 2021 12:38:03 +0800
Subject: [PATCH] 修改废气页面的标准值,生成独立组件
---
src/components/helpers/WfsHelper.js | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/components/helpers/WfsHelper.js b/src/components/helpers/WfsHelper.js
index 9cac21f..20093e6 100644
--- a/src/components/helpers/WfsHelper.js
+++ b/src/components/helpers/WfsHelper.js
@@ -1,11 +1,11 @@
/**
* 鍔犺浇WMS,鎷兼帴FILTER,LAYERS鍙傛暟绛�
*/
-import MapConfig from '../../conf/MapConfig'
+import { PIPELINE_WFS } from '../../conf/Constants'
function WfsHelper () {
this.filters = []
this.typeNames = []
- this.url = MapConfig.BLUEMAP_HOST + '/server/ogcserver/PipeLine/wfs'
+ this.url = PIPELINE_WFS
this.params = {
REQUEST: 'getfeature',
OUTPUTFORMAT: 'JSON',
@@ -23,8 +23,10 @@
}
this.addLike = (property, literal) => {
- var filter = '<PropertyIsLike><PropertyName>' + property + '</PropertyName><Literal>*' + literal + '*</Literal></PropertyIsLike>'
- this.filters.push(filter)
+ if (property && literal) {
+ var filter = '<PropertyIsLike><PropertyName>' + property + '</PropertyName><Literal>*' + literal + '*</Literal></PropertyIsLike>'
+ this.filters.push(filter)
+ }
}
/**
--
Gitblit v1.8.0