派生自 wuyushui/SewerAndRainNetwork

徐旺旺
2021-05-14 2c7b4e1ab35be5f3cd7ef4eb2cb87d8269417fea
更换内网
8个文件已修改
112 ■■■■ 已修改文件
src/components/LayerController/service/WmsLayerService.js 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/conf/Constants.js 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/conf/layers/LayerAirQuality.js 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/conf/layers/LayerArea.js 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/conf/layers/LayerBasin.js 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/conf/layers/LayerEnvRisk.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/conf/layers/LayerPlate.js 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/conf/layers/LayerSoilGroundWater.js 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/LayerController/service/WmsLayerService.js
@@ -1,5 +1,5 @@
import AjaxUtils from '../../../utils/AjaxUtils'
import { PIPELINE_WMS } from '../../../conf/Constants'
import { WMS_URL } from '../../../conf/Constants'
import Popup from '@views/popup/Popup'
import WmsLayerList from '../dataset/WmsLayerList'
@@ -80,7 +80,7 @@
    if (filter.length > 0) {
      params.cql_filter = filter
    }
    this.wmsLayer = this.L.tileLayer.wms(PIPELINE_WMS, params).addTo(this.map)
    this.wmsLayer = this.L.tileLayer.wms(WMS_URL, params).addTo(this.map)
  }
  clickListener () {
@@ -102,7 +102,7 @@
          Y: Math.round(point.y),
          BBOX: this.map.getBounds().toBBoxString()
        }, this.params)
        AjaxUtils.get4JsonDataByUrl(PIPELINE_WMS, params, (res) => {
        AjaxUtils.get4JsonDataByUrl(WMS_URL, params, (res) => {
          const features = res.data.features
          /**
           * {
src/conf/Constants.js
@@ -1,6 +1,7 @@
export const WFS_URL = 'http://xearth.cn:6240/geoserver/sewer/ows?service=WFS'
export const PIPELINE_WFS = 'http://xearth.cn:8088/server/ogcserver/PipeLine2/wfs'
export const PIPELINE_WMS = 'http://xearth.cn:6240/geoserver/sewer/wms'
// 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',
src/conf/layers/LayerAirQuality.js
@@ -1,21 +1,16 @@
/**
 * 区域
 */
import { PIPELINE_WFS } from '../Constants'
const WFS_URL = PIPELINE_WFS
export const LayerAirQuality = {
  code: 'sewersAirQuality',
  name: '空气质量',
  checked: false,
  type: 0,
  layers: [
    {
      code: 'airQualityStation',
      name: '监测站',
      sname: '监测站', // 表名
      checked: false, // 默认选中状态
      type: 0,
      url: WFS_URL + '?TYPENAME=公司'
      checked: false
    }
  ]
}
src/conf/layers/LayerArea.js
@@ -1,8 +1,6 @@
/**
 * 区域
 */
import { SERVICE_TYPE, PIPELINE_WFS } from '../Constants'
const WFS_URL = PIPELINE_WFS
export const LayerArea = {
  code: 'sewersArea',
  name: '区域信息',
@@ -13,25 +11,19 @@
      code: 'sewersAreaGs',
      name: '公司',
      sname: '公司', // 表名
      checked: true, // 默认选中状态
      type: 0,
      url: WFS_URL + '?TYPENAME=公司'
      checked: true
    },
    {
      code: 'sewersAreaMt',
      name: '码头',
      sname: '码头',
      checked: false, // 默认选中状态
      type: 0,
      wfs: WFS_URL + '?TYPENAME=码头'
      checked: false
    },
    {
      code: 'sewersAreaZz',
      name: '装置区',
      sname: '装置区',
      checked: false, // 默认选中状态
      type: SERVICE_TYPE.WMS,
      typeName: 'sewer:unitareaboundary'
      checked: false
    }
  ]
}
src/conf/layers/LayerBasin.js
@@ -1,8 +1,6 @@
/**
 * 流域
 */
import { PIPELINE_WFS } from '../Constants'
const WFS_URL = PIPELINE_WFS
export const LayerBasin = {
  code: 'sewersBasin',
  name: '区域图层',
@@ -14,33 +12,25 @@
      code: 'basinCj',
      name: '长江流域',
      sname: '长江流域', // 表名
      checked: true, // 默认选中状态
      type: 2,
      url: WFS_URL + '?TYPENAME=公司'
      checked: true
    },
    {
      code: 'basinHh',
      name: '黄河流域',
      sname: '黄河流域',
      checked: true, // 默认选中状态
      type: 2,
      wfs: WFS_URL + '?TYPENAME=码头'
      checked: true
    },
    {
      code: 'basinBh',
      name: '渤海流域',
      sname: '渤海流域',
      checked: true, // 默认选中状态
      type: 2,
      wfs: WFS_URL + '?TYPENAME=装置区'
      checked: true
    },
    {
      code: 'basinQt',
      name: '其他',
      sname: '其他',
      checked: true, // 默认选中状态
      type: 2,
      wfs: WFS_URL + '?TYPENAME=装置区'
      checked: true
    }
  ]
}
src/conf/layers/LayerEnvRisk.js
@@ -1,8 +1,6 @@
/**
 * 环境风险
 */
import { PIPELINE_WFS } from '../Constants'
const WFS_URL = PIPELINE_WFS
export const LayerEnvRisk = {
  code: 'sewersEnvRisk',
  name: '环境风险',
@@ -14,8 +12,6 @@
      name: '风险统计图',
      sname: '风险统计图', // 表名
      checked: false, // 默认选中状态
      type: 0,
      url: WFS_URL + '?TYPENAME=公司',
      color: ''
    },
    {
@@ -23,8 +19,6 @@
      name: '物资库',
      sname: '物资库',
      checked: false, // 默认选中状态
      type: 0,
      wfs: WFS_URL + '?TYPENAME=码头',
      color: ''
    },
    {
@@ -32,8 +26,6 @@
      name: '重大风险',
      sname: '重大风险',
      checked: false, // 默认选中状态
      type: 0,
      wfs: WFS_URL + '?TYPENAME=装置区',
      minZoom: 10,
      color: 'red'
    },
src/conf/layers/LayerPlate.js
@@ -1,8 +1,6 @@
/**
 * 板块
 */
import { PIPELINE_WFS } from '../Constants'
const WFS_URL = PIPELINE_WFS
export const LayerPlate = {
  code: 'sewersPlate',
  name: '板块图层',
@@ -14,57 +12,43 @@
      code: 'plateYt',
      name: '油田',
      sname: '油田', // 表名
      checked: true, // 默认选中状态
      type: 2,
      url: WFS_URL + '?TYPENAME=公司'
      checked: true
    },
    {
      code: 'plateLh',
      name: '炼化',
      sname: '炼化',
      checked: true, // 默认选中状态
      type: 2,
      wfs: WFS_URL + '?TYPENAME=码头'
      checked: true
    },
    {
      code: 'plateXs',
      name: '销售',
      sname: '销售',
      checked: true, // 默认选中状态
      type: 2,
      wfs: WFS_URL + '?TYPENAME=装置区'
      checked: true
    },
    {
      code: 'plateHg',
      name: '化工',
      sname: '化工',
      checked: true, // 默认选中状态
      type: 2,
      wfs: WFS_URL + '?TYPENAME=装置区'
      checked: true
    },
    {
      code: 'plateZy',
      name: '专业公司',
      sname: '专业公司科研机构',
      checked: true, // 默认选中状态
      type: 2,
      wfs: WFS_URL + '?TYPENAME=装置区'
      checked: true
    },
    {
      code: 'plateKyjg',
      name: '科研机构',
      sname: '科研机构',
      checked: true, // 默认选中状态
      type: 2,
      wfs: WFS_URL + '?TYPENAME=装置区'
      checked: true
    },
    {
      code: 'plateGcdw',
      name: '工程单位',
      sname: '工程单位',
      checked: true, // 默认选中状态
      type: 2,
      wfs: WFS_URL + '?TYPENAME=装置区'
      checked: true
    }
  ]
}
src/conf/layers/LayerSoilGroundWater.js
@@ -1,8 +1,6 @@
/**
 * 土壤及地下水
 */
import { PIPELINE_WFS } from '../Constants'
const WFS_URL = PIPELINE_WFS
export const LayerSoilGroundWater = {
  code: 'sewersSoilGroundWater',
  name: '土壤及地下水',
@@ -13,43 +11,33 @@
      code: 'soil',
      name: '土壤',
      sname: '土壤', // 表名
      checked: false, // 默认选中状态
      type: 0,
      url: WFS_URL + '?TYPENAME=公司'
      checked: false
    },
    {
      code: 'groundWater',
      name: '地下水',
      sname: '地下水',
      checked: false, // 默认选中状态
      type: 0,
      wfs: WFS_URL + '?TYPENAME=码头'
      checked: false
    },
    {
      code: 'firstRiskBlock',
      name: '一级风险地块',
      sname: '一级风险地块',
      checked: false, // 默认选中状态
      type: 0,
      wfs: WFS_URL + '?TYPENAME=装置区',
      checked: false,
      color: 'red'
    },
    {
      code: 'secondRiskBlock',
      name: '二级风险地块',
      sname: '二级风险地块',
      checked: false, // 默认选中状态
      type: 0,
      wfs: WFS_URL + '?TYPENAME=装置区',
      checked: false,
      color: 'yellow'
    },
    {
      code: 'threeRiskBlock',
      name: '三级风险地块',
      sname: '三级风险地块',
      checked: false, // 默认选中状态
      type: 0,
      wfs: WFS_URL + '?TYPENAME=装置区',
      checked: false,
      color: 'green'
    }
  ]