派生自 wuyushui/SewerAndRainNetwork

seatonwan9
2021-05-28 7f1be6bc4e0da71ce6476232512013f2d20972cc
src/conf/Constants.js
@@ -1,42 +1,418 @@
// 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: '设计压力(MPa)',
  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: '敏感目标'
}
export const LAYERPROPS = {
  // 管网
  pipenetwork: {
    // 管网
    name: '管网名称',
    linenumtype: '管网类型',
    pipename: '管网名称',
    mediumtype: '输送介质',
    length: '长度(m)',
    startposname: '起点位置名称',
    endposname: '终点位置名称',
    buriedtime: '埋设时间',
    coatingmaterial: '防腐状况',
    inservicetime: '投产时间',
    unitname: '所属单位名称',
    orgname: '所属企业名称',
    operationalstatus: '运行状态'
  },
  // 管线
  pipeline: {
    // 管网
    name: '管网名称',
    linenumtype: '管线类型',
    pipename: '管线名称',
    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: '排放口类型',
    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: '长度(m)',
    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: '行政隶属'
  }
}