From 4df0471b7dff0494625ff09969b1a13b5359a26e Mon Sep 17 00:00:00 2001
From: XingChuan <m17600301067@163.com>
Date: 星期一, 31 五月 2021 22:41:47 +0800
Subject: [PATCH] 统计表弹框UI优化;增加点击企业名称缩放至企业;二级表展示功能优化。

---
 src/conf/layers/LayerPipeLines.js |  149 ++++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 116 insertions(+), 33 deletions(-)

diff --git a/src/conf/layers/LayerPipeLines.js b/src/conf/layers/LayerPipeLines.js
index dc24179..5fd131f 100644
--- a/src/conf/layers/LayerPipeLines.js
+++ b/src/conf/layers/LayerPipeLines.js
@@ -4,8 +4,7 @@
 import { LayerHbss } from './LayerHbss'
 import { LayerFsss } from './LayerFsss'
 
-import { PIPELINE_WFS } from '../Constants'
-const WFS_URL = PIPELINE_WFS
+import { SERVICE_TYPE } from '../Constants'
 
 export const LayerPipeLines = {
   code: 'sewersPipeLines',
@@ -17,100 +16,184 @@
     {
       code: 'rainline',
       name: '闆ㄦ按绾�',
-      sname: '绠$綉',
-      checked: false,
-      type: 0,
-      // wfs: WFS_URL + '?TYPENAME=绠$綉&FILTER=<Filter xmlns="http://www.opengis.net/ogc"><PropertyIsEqualTo><PropertyName>mediumtype</PropertyName><Literal>闆ㄦ按绠$嚎</Literal></PropertyIsEqualTo></Filter>',
-      wfs: 'http://xearth.cn:6240/geoserver/sewer/wfs?typeName=sewer:pipeline&maxFeatures=500&outputFormat=application%2Fjson&cql_filter=linenumtype=\'闆ㄦ按绠$嚎\'',
+      sname: '闆ㄦ按',
+      checked: true,
+      type: SERVICE_TYPE.WMS,
+      layerGroup: 'sewer:pipeline_group',
+      typeName: 'sewer:pipeline',
       icon: 'sewers/闆ㄦ按绾�.png',
+      legendImage: '../.././assets/images/map/sewers/闆ㄦ按绾�.png',
       color: '#0070ff',
       minZoom: 13,
       styles: {
         COLOR: '#0070ff',
         FILL_COLOR: '#0070ff'
-      }
+      },
+      filter: 'mediumtype = \'闆ㄦ按\'',
+      index: 20
     },
     {
       code: 'accidentline',
-      name: '浜嬫晠姘寸嚎',
+      name: '浜嬫晠姘�',
       sname: '浜嬫晠姘�',
       checked: false,
-      type: 0,
+      type: SERVICE_TYPE.WMS,
+      layerGroup: 'sewer:pipeline_group',
+      typeName: 'sewer:pipeline',
+      icon: 'sewers/浜嬫晠姘�.png',
       minZoom: 13,
-      wfs: WFS_URL + '?TYPENAME=浜嬫晠姘�'
+      // color: 'rgb(230, 76, 0)',
+      color: '#E64C00',
+      styles: {
+        COLOR: '#E64C00',
+        FILL_COLOR: '#E64C00'
+      },
+      filter: 'mediumtype = \'浜嬫晠姘碶'',
+      index: 20
     },
     {
       code: 'oilline',
-      name: '鍚补姹℃按绾�',
+      name: '鍚补姹℃按',
       sname: '鍚补姹℃按',
       checked: false,
-      type: 0,
+      type: SERVICE_TYPE.WMS,
+      layerGroup: 'sewer:pipeline_group',
+      typeName: 'sewer:pipeline',
+      icon: 'sewers/鍚补姹℃按.png',
       minZoom: 13,
       color: '#ffaa00',
-      wfs: 'http://xearth.cn:6240/geoserver/sewer/wfs?typeName=sewer:pipeline&maxFeatures=500&outputFormat=application%2Fjson&cql_filter=mediumtype=\'鍚补姹℃按\'',
+      filter: 'mediumtype = \'鍚补姹℃按\'',
       styles: {
         COLOR: '#ffaa00',
         FILL_COLOR: '#ffaa00'
-      }
+      },
+      index: 20
     },
     {
       code: 'saltline',
-      name: '鍚洂姹℃按绾�',
+      name: '鍚洂姹℃按',
       sname: '鍚洂姹℃按',
       checked: false,
-      type: 0,
+      type: SERVICE_TYPE.WMS,
+      layerGroup: 'sewer:pipeline_group',
+      typeName: 'sewer:pipeline',
+      icon: 'sewers/鍚洂姹℃按.png',
       minZoom: 13,
-      wfs: WFS_URL + '?TYPENAME=鍚洂姹℃按'
+      color: '#FF7F7F',
+      filter: 'mediumtype = \'鍚洂姹℃按\'',
+      styles: {
+        COLOR: '#FF7F7F',
+        FILL_COLOR: '#FF7F7F'
+      },
+      index: 20
     },
     {
       code: 'alkaliline',
-      name: '鍚⒈姹℃按绾�',
+      name: '鍚⒈姹℃按',
       sname: '鍚⒈姹℃按',
       checked: false,
-      type: 0,
-      wfs: WFS_URL + '?TYPENAME=鍚⒈姹℃按',
-      minZoom: 10
+      type: SERVICE_TYPE.WMS,
+      layerGroup: 'sewer:pipeline_group',
+      typeName: 'sewer:pipeline',
+      icon: 'sewers/鍚⒈姹℃按.png',
+      filter: 'mediumtype = \'鍚⒈姹℃按\'',
+      minZoom: 10,
+      color: '#E8BEFF',
+      styles: {
+        COLOR: '#E8BEFF',
+        FILL_COLOR: '#E8BEFF'
+      },
+      index: 20
+    },
+    {
+      code: 'sulfurline',
+      name: '鍚~姹℃按',
+      sname: '鍚~姹℃按',
+      checked: false,
+      type: SERVICE_TYPE.WMS,
+      layerGroup: 'sewer:pipeline_group',
+      typeName: 'sewer:pipeline',
+      icon: 'sewers/鍚~姹℃按.png',
+      filter: 'mediumtype = \'鍚~姹℃按\'',
+      minZoom: 10,
+      color: '',
+      styles: {
+        COLOR: '',
+        FILL_COLOR: ''
+      },
+      index: 20
     },
     {
       code: 'lifeline',
       name: '鐢熸椿姹℃按',
       sname: '鐢熸椿姹℃按',
       checked: false,
-      type: 0,
+      type: SERVICE_TYPE.WMS,
+      layerGroup: 'sewer:pipeline_group',
+      typeName: 'sewer:pipeline',
+      icon: 'sewers/鐢熸椿姹℃按.png',
+      filter: 'mediumtype = \'鐢熸椿姹℃按\'',
       minZoom: 13,
-      wfs: WFS_URL + '?TYPENAME=鐢熸椿姹℃按'
+      color: '#A8A800',
+      styles: {
+        COLOR: '#A8A800',
+        FILL_COLOR: '#A8A800'
+      },
+      index: 20
     },
     {
       code: 'purifyline',
-      name: '鍑�鍖栨按绾�',
+      name: '鍑�鍖栨按',
       sname: '鍑�鍖栨按',
       checked: false,
-      type: 0,
+      type: SERVICE_TYPE.WMS,
+      layerGroup: 'sewer:pipeline_group',
+      typeName: 'sewer:pipeline',
+      icon: 'sewers/鍑�鍖栨按.png',
+      filter: 'mediumtype = \'鍑�鍖栨按\'',
       minZoom: 13,
-      wfs: WFS_URL + '?TYPENAME=鍑�鍖栨按'
+      color: '#55FF00',
+      styles: {
+        COLOR: '#55FF00',
+        FILL_COLOR: '#55FF00'
+      },
+      index: 20
     },
     {
       code: 'loopline',
-      name: '寰幆姘寸嚎',
+      name: '寰幆姘�',
       sname: '寰幆姘�',
-      type: 0,
+      type: SERVICE_TYPE.WMS,
+      layerGroup: 'sewer:pipeline_group',
+      typeName: 'sewer:pipeline',
+      icon: 'sewers/寰幆姘�.png',
+      filter: 'mediumtype = \'寰幆姘碶'',
       checked: false,
       minZoom: 13,
-      wfs: WFS_URL + '?TYPENAME=寰幆姘�'
+      color: '#73FFDF',
+      styles: {
+        COLOR: '#73FFDF',
+        FILL_COLOR: '#73FFDF'
+      },
+      index: 20
     },
     {
       code: 'buildline',
       name: '鐢熶骇姹℃按',
       sname: '鐢熶骇姹℃按',
       checked: false,
-      type: 0,
+      type: SERVICE_TYPE.WMS,
+      layerGroup: 'sewer:pipeline_group',
+      typeName: 'sewer:pipeline',
+      icon: 'sewers/鐢熶骇姹℃按.png',
+      filter: 'mediumtype = \'鐢熶骇姹℃按\'',
       minZoom: 13,
       color: '#a8a800',
-      wfs: 'http://xearth.cn:6240/geoserver/sewer/wfs?typeName=sewer:pipeline&maxFeatures=500&outputFormat=application%2Fjson&cql_filter=mediumtype=\'鐢熶骇姹℃按\'',
       styles: {
         COLOR: '#a8a800',
         FILL_COLOR: '#a8a800'
-      }
+      },
+      index: 20
     }
   ]
 }

--
Gitblit v1.8.0