From c8a85fd0941b567b1bc1808a7b5de129bcb734b6 Mon Sep 17 00:00:00 2001
From: seatonwan9 <seatonwan9@163.com>
Date: 星期五, 21 五月 2021 14:30:35 +0800
Subject: [PATCH] 环境风险统计图显示

---
 src/conf/Constants.js |   45 ++++++++++++++++++++++++++++++++++++---------
 1 files changed, 36 insertions(+), 9 deletions(-)

diff --git a/src/conf/Constants.js b/src/conf/Constants.js
index e2ac498..e647f9a 100644
--- a/src/conf/Constants.js
+++ b/src/conf/Constants.js
@@ -1,24 +1,53 @@
+
+// export const PIPELINE_WMS = 'http://xearth.cn:6240/geoserver/sewer/wms'
+export const WMS_URL = 'http://10.238.235.179:6240/geoserver/sewer/wms'
+export const WFS_URL = 'http://10.238.235.179:6240/geoserver/sewer/ows?service=WFS'
+
 export const GEOM_TYPE = {
   POINT: 'point',
   LINE: 'line',
   POLYGON: 'polygon'
 }
 
+export const SERVICE_TYPE = {
+  WFS: 'wfs',
+  WMS: 'wms'
+}
+
 export const logicMapper = {
-  fsqy: 'Sample.js',
-  fspfk: 'Sample.js',
-  fsjcd: 'Sample.js',
-  wasteGasJcd: 'WasteGas.js',
-  solidWasteJcd: 'SolidWaste.js'
+  wasteGasPfk: 'WasteGas.js',
+  wasteWaterPfk: 'WasteWater.js',
+  wasteSolidCcd: 'WasteSolid.js',
+  sewersAreaGs: 'Company.js',
+  pipesegment: 'PipeLineAnimal.js',
+  pollutionSources: 'SourcesPollution.js',
+  envRiskChart: 'EnvironmentRisk.js'
+}
+
+export const STYLES = {
+  FILL: true,
+  WEIGHT: 3,
+  FILL_COLOR: '#0070ff',
+  COLOR: '#73b2ff',
+  FILL_OPACITY: 0.2,
+  OPACITY: 1,
+  DASH_ARRAY: '4,4',
+  DASH_SPPED: -5,
+  ICON_SIZE: [10, 10]
 }
 
 export const props = {
+  code: '缂栧彿',
+  name: '鍚嶇О',
+  teamname: '鍚嶇О',
+  pfktype: '鎺掓斁鍙g被鍨�',
+  level: '绾у埆',
+  length: '闀垮害(m)',
+  unitname: '鍗曚綅鍚嶇О',
   pipename: '绠$嚎鍚嶇О',
-  pipecode: '绠$嚎缂栫爜',
   subchaname: '鏀嚎鍚嶇О',
   subchacode: '鏀嚎缂栫爜',
   mediumtype: '杈撻�佷粙璐�',
-  length: '闀垮害(m)',
   startposname: '璧风偣浣嶇疆鍚嶇О',
   endposname: '缁堢偣浣嶇疆鍚嶇О',
   pressureating: '璁捐鍘嬪姏锛圡Pa锛�',
@@ -36,8 +65,6 @@
   pipetrenchtype: '绠℃矡绫诲瀷',
   datecollected: '鎺㈡祴鏃堕棿',
   operationalstatus: '杩愯鐘舵��',
-  acquisitionpeople: '閲囬泦浜�',
-  acquisitiondate: '閲囬泦鏃ユ湡',
   fourtype: '鍥涢�氱被鍨�',
   fourm: '鍥涢�氭潗鏂�'
 }

--
Gitblit v1.8.0