From e3608132cc667c16ea10f450807e0feddaf55d1f Mon Sep 17 00:00:00 2001
From: 陈泽平 <chenzeping>
Date: 星期日, 30 五月 2021 13:32:38 +0800
Subject: [PATCH] Merge branch 'develop' of http://xearth.cn:6600/r/wuyushui/SewerAndRainNetwork into develop
---
src/conf/Constants.js | 457 +++++++++++++++++++++++++++++++++++++++++++++++++++++----
1 files changed, 424 insertions(+), 33 deletions(-)
diff --git a/src/conf/Constants.js b/src/conf/Constants.js
index 455d6e2..3abd745 100644
--- a/src/conf/Constants.js
+++ b/src/conf/Constants.js
@@ -1,42 +1,433 @@
+
+// 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 WMS_URL = 'http://xearth.cn:6240/geoserver/sewer/wms'
+// export const WFS_URL = 'http://xearth.cn:6240/geoserver/sewer/ows?service=WFS'
+
export const GEOM_TYPE = {
POINT: 'point',
LINE: 'line',
POLYGON: 'polygon'
}
-export const logicMapper = {
- wasteGasJcd: 'WasteGas.js',
- wasteWaterJcd: 'WasteWater.js',
- solidWasteJcd: 'SolidWaste.js',
- sewersAreaGs: 'Company.js'
+export const SERVICE_TYPE = {
+ WFS: 'wfs',
+ WMS: 'wms'
}
-export const props = {
- pipename: '绠$嚎鍚嶇О',
- pipecode: '绠$嚎缂栫爜',
- subchaname: '鏀嚎鍚嶇О',
- subchacode: '鏀嚎缂栫爜',
- mediumtype: '杈撻�佷粙璐�',
- length: '闀垮害(m)',
- startposname: '璧风偣浣嶇疆鍚嶇О',
- endposname: '缁堢偣浣嶇疆鍚嶇О',
- pressureating: '璁捐鍘嬪姏锛圡Pa锛�',
- designtranyear: '璁捐杈撻噺锛堜竾绔�/骞达級',
- earningcapacity: '瀹為檯杈撻噺锛堜竾绔�/骞达級',
- buriedtime: '鍩嬭鏃堕棿',
- coatingmaterial: '闃茶厫鐘跺喌',
- inservicetime: '鎶曚骇鏃堕棿',
- reportname: '濉姤浜哄鍚�',
- reportphone: '濉姤浜鸿仈绯绘柟寮�',
- diameter: '绠″緞(mm)',
- meterial: '鏉愯川',
- pressuerating: '绠¢亾鍘嬪姏(Mpa)',
- embeddingmode: '鍩嬭鏂瑰紡',
- pipetrenchtype: '绠℃矡绫诲瀷',
- datecollected: '鎺㈡祴鏃堕棿',
- operationalstatus: '杩愯鐘舵��',
- acquisitionpeople: '閲囬泦浜�',
- acquisitiondate: '閲囬泦鏃ユ湡',
- fourtype: '鍥涢�氱被鍨�',
- fourm: '鍥涢�氭潗鏂�'
+export const logicMapper = {
+ wasteGasPfk: 'WasteGas.js',
+ wasteWaterPfk: 'WasteWater.js',
+ wasteSolidCcd: 'WasteSolid.js',
+ sewersAreaGs: 'Company.js',
+ pipesegment: 'PipeLineAnimal.js',
+ pollutionSources: 'SourcesPollution.js',
+ envRiskChart: 'EnvironmentRisk.js', // 椋庨櫓缁熻鍥�
+ envRiskMajor: 'RiskSource.js', // 閲嶅ぇ椋庨櫓婧�
+ envRiskFirst: 'RiskSource.js', // 涓�绾ч闄╂簮
+ envRiskSecond: 'RiskSource.js', // 浜岀骇椋庨櫓婧�
+ envRiskThird: 'RiskSource.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 LAYERS = {
+ pipenetwork: '绠$綉',
+ pipeline: '绠$嚎',
+ manhole: '绐ㄤ簳',
+ valve: '闃�闂�',
+ pipegallery: '绠″粖(甯�)',
+ piperack: '绠℃灦(澧�)',
+ tee: '涓夐��',
+ fourlink: '鍥涢��',
+ elbow: '寮ご',
+ raingate: '闆ㄧ瀛�',
+ firedike: '闃茬伀鍫�',
+ collectingbasin: '闆嗘按姹�(缃�)',
+ dischargeport: '鎺掓斁鍙�',
+ overflowweir: '婧㈡祦鍫�',
+ oilseparator: '闅旀补姹�',
+ pointhydrology: '姘翠綋',
+ pointpreservationzone: '鑷劧淇濇姢鍖�',
+ hospital: '鍖婚櫌',
+ emergencyres: '绀句細涓撲笟搴旀�ユ晳鎻撮槦浼�',
+ emergencyesources: '搴旀�ョ墿璧�',
+ firefightingunit: '娑堥槻鍗曚綅',
+ unitareaboundary: '瑁呯疆鍖鸿竟鐣�',
+ sensitivetarget: '鏁忔劅鐩爣',
+ chokevalve: '鎴祦闂�'
+}
+
+export const LAYERPROPS = {
+ // 绠$綉
+ pipenetwork: {
+ // 绠$綉
+ name: '绠$綉鍚嶇О',
+ linenumtype: '绠$綉绫诲瀷',
+ pipename: '绠$綉鍚嶇О',
+ mediumtype: '杈撻�佷粙璐�',
+ length: '闀垮害(m)',
+ startposname: '璧风偣浣嶇疆鍚嶇О',
+ endposname: '缁堢偣浣嶇疆鍚嶇О',
+ buriedtime: '鍩嬭鏃堕棿',
+ coatingmaterial: '闃茶厫鐘跺喌',
+ inservicetime: '鎶曚骇鏃堕棿',
+ unitname: '鎵�灞炲崟浣嶅悕绉�',
+ orgname: '鎵�灞炰紒涓氬悕绉�',
+ operationalstatus: '杩愯鐘舵��'
+ },
+ // 绠$嚎
+ pipeline: {
+ // 绠$綉
+ name: '绠$綉鍚嶇О',
+ linenumtype: '绠$嚎绫诲瀷',
+ pipename: '绠$嚎鍚嶇О',
+ subchaname: '鏀嚎鍚嶇О',
+ mediumtype: '杈撻�佷粙璐�',
+ length: '闀垮害(m)',
+ startposname: '璧风偣浣嶇疆鍚嶇О',
+ endposname: '缁堢偣浣嶇疆鍚嶇О',
+ buriedtime: '鍩嬭鏃堕棿',
+ coatingmaterial: '闃茶厫鐘跺喌',
+ inservicetime: '鎶曚骇鏃堕棿',
+ unitname: '鎵�灞炲崟浣嶅悕绉�',
+ orgname: '鎵�灞炰紒涓氬悕绉�',
+ operationalstatus: '杩愯鐘舵��'
+ },
+ // 绐ㄤ簳
+ manhole: {
+ wellid: '浜曠紪鍙�',
+ wellname: '浜曞悕绉�',
+ type: '绫诲瀷',
+ wellmaterial: '浜曠洊鏉愯川',
+ spesize: '浜曠洊鐩村緞(mm)',
+ welldeepth: '绐ㄤ簳娣卞害(m)',
+ wellneckheight: '浜曡剸楂樺害(cm)',
+ havesafetynet: '鏄惁鏈夊畨鍏ㄧ綉',
+ datasource: '鏁版嵁鏉ユ簮',
+ operationalstatus: '杩愯鐘舵��'
+ },
+ // 闃�闂�
+ valve: {
+ pointnumber: '娴嬬偣缂栧彿',
+ devicecode: '闃�闂ㄧ紪鐮�',
+ devicename: '闃�闂ㄥ悕绉�',
+ valvetype: '闃�闂ㄧ被鍨�',
+ manufmodel: '鍒堕�犲瀷鍙�',
+ assetmanufact: '璧勪骇鍒堕�犲晢',
+ startdate: '鎶曠敤鏃ユ湡',
+ factorytime: '鍑哄巶鏃堕棿',
+ nominaldiamet: '鍏О鐩村緞(mm)',
+ nominalpress: '鍏О鍘嬪姏(MPa)',
+ operatingtype: '鎺у埗鏂瑰紡',
+ executagencyf: '鎵ц鏈烘瀯褰㈠紡',
+ valveplatem: '闃�鏉�(鑺�)鏉愯川',
+ installunit: '瀹夎鍗曚綅',
+ sealform: '瀵嗗皝褰㈠紡',
+ constprange: '瀹氬帇鑼冨洿(MPa)',
+ valvebodytype: '闃�浣撳舰寮�',
+ spoolform: '闃�鑺舰寮�',
+ nominald: '鍏О閫氬緞(mm)',
+ leakaglevel: '娉勬紡绛夌骇(绾�)',
+ circulcap: '娴侀�氳兘鍔�(m3/h)',
+ workpress: '宸ヤ綔鍘嬪姏(MPa)',
+ worktemp: '宸ヤ綔娓╁害(鈩�)',
+ flowcharact: '娴侀噺鐗规��',
+ spooldiamet: '闃�鑺洿寰�(mm)',
+ valvegroupname: '鎵�灞為榾缁�',
+ valvegroupcode: '闃�缁勭紪鍙�',
+ operationalstatus: '杩愯鐘舵��'
+ },
+ // 绠″粖锛堝甫锛�
+ pipegallery: {
+ pipecorridname: '绠″粖(甯�)鍚嶇О',
+ pipecorridcode: '绠″粖(甯�)缂栫爜',
+ pipename: '鎵�灞炵绾垮悕绉�',
+ pipecorridsname: '璧风偣绠″粖(甯�)鍚嶇О',
+ pipecorridename: '缁堢偣绠″粖(甯�)鍚嶇О',
+ datasource: '鏁版嵁鏉ユ簮',
+ operationalstatus: '杩愯鐘舵��'
+ },
+ // 绠℃灦锛堝ⅸ锛�
+ piperack: {
+ piperackcode: '绠℃灦(澧�)缂栫爜',
+ piperackname: '绠℃灦(澧�)鍚嶇О',
+ pipename: '鎵�灞炵绾垮悕绉�',
+ piperacktype: '绫诲瀷',
+ piperackst: '绠℃灦(澧�)缁撴瀯绫诲瀷',
+ longitudinalpiperack: '鏄惁鏈夌旱鍚戞灦',
+ datasource: '鏁版嵁鏉ユ簮',
+ operationalstatus: '杩愯鐘舵��'
+ },
+ // 涓夐��
+ tee: {
+ code: '涓夐�氱紪鐮�',
+ branchdiamet: '鏀嚎鐩村緞(mm)',
+ branchthickness: '鏀嚎澹佸帤(mm)',
+ exportdiamet: '鍑哄彛鐩村緞(mm)',
+ exportthickness: '鍑哄彛澹佸帤(mm)',
+ exportconnectm: '鍑哄彛杩炴帴鏂瑰紡',
+ entrycontype: '鍏ュ彛杩炴帴鏂瑰紡',
+ entrdiamet: '鍏ュ彛鐩村緞',
+ entrthick: '鍏ュ彛澹佸帤',
+ teem: '涓夐�氭潗鏂�',
+ puttingindate: '鎶曠敤鏃ユ湡',
+ manufactdate: '鐢熶骇鏃ユ湡',
+ pressuregrade: '鍘嬪姏绛夌骇(mpa)',
+ constructunit: '鏂藉伐鍗曚綅',
+ supervisionunit: '鐩戠悊鍗曚綅',
+ detectunit: '妫�娴嬪崟浣�',
+ manufacturer: '鐢熶骇鍘傚晢',
+ branchconntype: '鏀杩炴帴绫诲瀷',
+ installdate: '瀹夎鏃ユ湡',
+ strengthgrade: '寮哄害绛夌骇',
+ operationalstatus: '杩愯鐘舵��'
+
+ },
+ // 鍥涢��
+ fourlink: {
+ code: '鍥涢�氱紪鐮�',
+ fourtype: '鍥涢�氱被鍨�',
+ entrycontype: '鍏ュ彛杩炴帴鏂瑰紡',
+ entrydiamet: '鍏ュ彛鐩村緞(mm)',
+ entrythick: '鍏ュ彛澹佸帤(mm)',
+ branchdiamet1: '鏀嚎1鐩村緞(mm)',
+ branchthickness1: '鏀嚎1澹佸帤(mm)',
+ branchdiamet2: '鏀嚎2鐩村緞(mm)',
+ branchthickness2: '鏀嚎2澹佸帤(mm)',
+ exportdiamet: '鍑哄彛鐩村緞(mm)',
+ exportthickness: '鍑哄彛澹佸帤(mm)',
+ exportcontype: '鍑哄彛杩炴帴鏂瑰紡',
+ fourm: '鍥涢�氭潗鏂�',
+ appdate: '鎶曠敤鏃ユ湡',
+ manufactdate: '鐢熶骇鏃ユ湡',
+ pressuregrade: '鍘嬪姏绛夌骇(mpa)',
+ constructunit: '鏂藉伐鍗曚綅',
+ supervisionunit: '鐩戠悊鍗曚綅',
+ detectunit: '妫�娴嬪崟浣�',
+ manufacturer: '鐢熶骇鍘傚晢',
+ branchconntype1: '鏀嚎1杩炴帴鏂瑰紡',
+ branchconntype2: '鏀嚎2杩炴帴鏂瑰紡',
+ installdate: '瀹夎鏃ユ湡',
+ operationalstatus: '杩愯鐘舵��'
+ },
+ // 寮ご
+ elbow: {
+ pointnumber: '娴嬬偣缂栧彿',
+ code: '寮ご缂栫爜',
+ pipename: '鎵�灞炵绾垮悕绉�',
+ pipecode: '鎵�灞炵绾跨紪鐮�',
+ bendangle: '寮ご瑙掑害',
+ elbowtype: '寮ご绫诲瀷',
+ elbowmaterial: '寮ご鏉愭枡',
+ anticorros: '闃茶厫鏉愭枡',
+ entryconntype: '鍏ュ彛杩炴帴鏂瑰紡',
+ outletconntype: '鍑哄彛杩炴帴鏂瑰紡',
+ entrdiameter: '鍏ュ彛鐩村緞(mm)',
+ entrwallthick: '鍏ュ彛澹佸帤(mm)',
+ exitdiameter: '鍑哄彛鐩村緞(mm)',
+ exitwallthick: '鍑哄彛澹佸帤(mm)',
+ classes: '鍘嬪姏绛夌骇(mpa)',
+ unitname: '鎵�灞炲崟浣嶅悕绉�',
+ unitcode: '鎵�灞炲崟浣嶄唬鐮�',
+ productdate: '鐢熶骇鏃ユ湡',
+ installationdate: '瀹夎鏃ユ湡',
+ puttingindate: '鎶曠敤鏃ユ湡',
+ constructunit: '鏂藉伐鍗曚綅',
+ supervisionunit: '鐩戠悊鍗曚綅',
+ detectionunit: '妫�娴嬪崟浣�',
+ elbowcurvrad: '鏇茬巼鍗婂緞(d)',
+ manufacturer: '鐢熶骇鍘傚晢',
+ bendlength: '寮ご闀垮害',
+ benddirection: '寮ご鏂瑰悜',
+ pipewalldiameter: '绠¢亾澶栧鐩村緞(mm)',
+ strengthgrade: '寮哄害绛夌骇',
+ curvelength: '鏇茬嚎闀�',
+ tangentlength: '鍒囩嚎闀�',
+ vectordistance: '澶栫煝璺�',
+ mintemperature: '鏈�浣庤璁℃俯搴�',
+ maxtemperature: '鏈�楂樿璁℃俯搴�',
+ operationalstatus: '杩愯鐘舵��'
+ },
+ // 闆ㄧ瀛�
+ raingate: {
+ raingrateid: '闆ㄧ瀛愮紪鍙�',
+ rgshape: '闆ㄧ瀛愬舰鐘�',
+ rgmaterial: '闆ㄧ瀛愭潗璐�',
+ spesize: '闆ㄧ瀛愬昂瀵�(cm)',
+ rgdeepth: '闆ㄧ瀛愬帤搴�(mm)',
+ operationalstatus: '杩愯鐘舵��'
+ },
+ // 闃茬伀鍫�
+ firedike: {
+ name: '鍚嶇О',
+ code: '缂栫爜',
+ ownertanks: '鎵�灞炵綈鍖�',
+ tankscode: '缃愬尯缂栧彿',
+ operationalstatus: '杩愯鐘舵��'
+ },
+ // 闆嗘按姹狅紙缃愶級
+ collectingbasin: {
+ companyname: '鍚嶇О',
+ code: '缂栫爜',
+ mediumtype: '浠嬭川',
+ size: '灏哄',
+ volume: '瀹圭Н',
+ ownersite: '鎵�灞炵珯鍦�',
+ startdate: '鎶曠敤鏃ユ湡',
+ operationalstatus: '杩愯鐘舵��'
+ },
+ // 鎺掓斁鍙�
+ dischargeport: {
+ name: '鍚嶇О',
+ code: '缂栫爜',
+ mediumtype: '浠嬭川',
+ pfktype: '鎺掓斁鍙g被鍨�',
+ level: '绾у埆',
+ operationalstatus: '杩愯鐘舵��'
+ },
+ // 鎴祦闂�
+
+ // 婧㈡祦鍫�
+ overflowweir: {
+ name: '鍚嶇О',
+ code: '缂栫爜',
+ mediumtype: '闃叉孩浠嬭川',
+ material: '鏉愯川',
+ height: '楂�(m)',
+ length: '闀垮害(m)',
+ operationalstatus: '杩愯鐘舵��'
+ },
+ // 闅旀补姹�
+ oilseparator: {
+ poolname: '鍚嶇О',
+ no: '缂栫爜',
+ size: '灏哄',
+ volume: '瀹圭Н',
+ operationalstatus: '杩愯鐘舵��'
+ },
+ // 姘翠綋
+ pointhydrology: {
+ name: '鍚嶇О',
+ orgname: '浼佷笟鍚嶇О',
+ telphonenumber: '鑱旂郴鏂瑰紡',
+ velocityaverage: '骞村钩鍧囨祦閫�(m/s)',
+ erosiondepthavg: '骞村钩鍧囧啿鍒锋繁搴�',
+ velocitymax: '鏈�澶ч�熷害(m/s)',
+ velocitymin: '鏈�灏忛�熷害(m/s)',
+ highestwaterlevel: '鏈�楂樻按浣嶏紙m锛�',
+ minwaterlevel: '鏈�浣庢按浣嶏紙m锛�',
+ maximumflux: '鏈�澶ф祦閲�',
+ erosiondepthmax: '鏈�澶у啿鍒锋繁搴�',
+ flowdirection: '娌虫祦娴佸悜',
+ length: '闀垮害锛坢锛�',
+ hydrotype: '姘寸郴绫诲瀷',
+ drinkingresourceind: '鏄惁鏄ギ鐢ㄦ按婧�',
+ seasonalriverind: '鏄惁鏄鑺傛�ф渤娴�',
+ highriskmonth: '楂橀闄╂湀浠�',
+ reservoirlocation: '姘村簱浣嶇疆',
+ coverdepth: '绠¢亾鍩嬫繁',
+ gbcode: '鍥芥爣鐮�',
+ operationalstatus: '杩愯鐘舵��'
+ },
+ // 鑷劧淇濇姢鍖�
+ pointpreservationzone: {
+ name: '鍚嶇О',
+ orgname: '浼佷笟鍚嶇О',
+ datasource: '鏁版嵁鏉ユ簮',
+ type: '淇濇姢鍖虹被鍨�',
+ structureoridsitearea: '鍗犲湴闈㈢Н',
+ preservationobject: '涓昏淇濇姢瀵硅薄',
+ adminzonename: '琛屾斂闅跺睘'
+ },
+ // 鍖婚櫌
+ hospital: {
+ companyname: '鍖婚櫌鍚嶇О',
+ orgname: '浼佷笟鍚嶇О',
+ telephone: '鑱旂郴鐢佃瘽',
+ hospitalleaval: '鍖婚櫌璧勮川绛夌骇',
+ maxinjurednumber: '鍙绾充激鍛�',
+ sickbednumber: '鐥呭簥鏁伴噺',
+ doctornumber: '鍖荤敓鏁伴噺',
+ nursenumber: '鎶ゅ+鏁伴噺',
+ ambulancenumber: '鏁戞姢杞︽暟閲�',
+ subtypecd: '鍖婚櫌绫诲瀷',
+ address: '鍗曚綅鍦板潃',
+ hyperbaricoxygencabin: '楂樺帇姘ц埍',
+ distance: '璺濈',
+ datasource: '鏁版嵁鏉ユ簮'
+ },
+ // 绀句細涓撲笟搴旀�ユ晳鎻撮槦浼�
+ emergencyres: {
+ name: '鍚嶇О',
+ orgname: '浼佷笟鍚嶇О',
+ numberteam: '鏁戞彺浜烘暟',
+ rescueobject: '涓昏鏁戞彺瀵硅薄',
+ resperson: '璐熻矗浜�',
+ telephone: '鑱旂郴鐢佃瘽',
+ datasource: '鏁版嵁鏉ユ簮'
+ },
+ // 搴旀�ョ墿璧�
+ emergencyesources: {
+ resourcesname: '鐗╄祫鍚嶇О',
+ orgname: '浼佷笟鍚嶇О',
+ resourcesnumber: '鐗╄祫鏁伴噺',
+ ownedstatus: '鏄惁鑷湁鐗╄祫',
+ sourceschargestandard: '鐗╄祫鏀惰垂鏍囧噯',
+ resperson: '璐熻矗浜�',
+ telephone: '鑱旂郴鐢佃瘽',
+ datasource: '鏁版嵁鏉ユ簮'
+ },
+ // 娑堥槻鍗曚綅
+ firefightingunit: {
+ companyname: '娑堥槻鍗曚綅鍚嶇О',
+ orgname: '浼佷笟鍚嶇О',
+ pumpernumber: '娑堥槻杞︽暟閲�',
+ contacttelephone: '鑱旂郴鐢佃瘽',
+ address: '鍗曚綅鍦板潃',
+ supportradius: '鏈嶅姟鍗婂緞',
+ ficroute: '浜ら�氳矾绾�',
+ distance: '璺濈',
+ datasource: '鏁版嵁鏉ユ簮'
+ },
+ // 瑁呯疆鍖�
+ unitareaboundary: {
+ name: '瑁呯疆鍖哄悕绉�',
+ code: '瑁呯疆鍖虹紪鐮�',
+ responsperson: '璐熻矗浜�',
+ startdate: '鎶曠敤鏃ユ湡'
+ },
+ // 鏁忔劅鐩爣
+ sensitivetarget: {
+ name: '鍚嶇О',
+ resperson: '璐熻矗浜�',
+ telephone: '鑱旂郴鐢佃瘽',
+ huncount: '甯歌浜哄彛鏁伴噺',
+ structureoridsitearea: '鍗犲湴闈㈢Н',
+ adminzonename: '琛屾斂闅跺睘'
+ },
+ // 鎴祦闂�
+ chokevalve: {
+ closurename: '鍚嶇О',
+ closurecode: '缂栫爜',
+ pointnumber: '娴嬬偣缂栧彿',
+ mediumtype: '浠嬭川',
+ size: '灏哄(m)',
+ operatingtype: '鎺у埗鏂瑰紡',
+ telephone: '鑱旂郴鐢佃瘽',
+ resperson: '璐熻矗浜�',
+ startdate: '鎶曠敤鏃ユ湡',
+ operationalstatus: '杩愯鐘舵��'
+ }
}
--
Gitblit v1.8.0