派生自 wuyushui/SewerAndRainNetwork

chenzeping
2021-04-20 2b2263521e954131d69174788fd90874dbc21436
Merge branch 'develop' of http://xearth.cn:6600/r/wuyushui/SewerAndRainNetwork into develop
10个文件已修改
69 ■■■■■ 已修改文件
src/assets/css/map/map-panel-style.less 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/LayerController/logic/Company.js 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/LayerController/modules/LcServiceLayer.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/LayerController/service/BusiLayerService.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/LayerController/service/LayerFactory.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/table/summarySheets.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/conf/layers/LayerEnvRisk.js 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/conf/layers/LayerSoilGroundWater.js 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/dialogDrag.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/popup/Popup.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/css/map/map-panel-style.less
@@ -268,18 +268,18 @@
/***************Company 图层 悬浮框样式。*********************************/
.company-bindTooltip {
  position: absolute;
  top: 0;
  left: 0;
  top: 10px;
  left: 8px;
  display: flex;
  justify-content: center;
  justify-items: center;
  img {
    display: block;
    width: 30px;
    height: 30px;
    margin-left: -15px;
    margin-top: -15px
    width: 35px;
    height: 35px;
    margin-left: -16px;
    margin-top: -16px
  }
  ul {
@@ -647,3 +647,10 @@
.fixed-table {
  background: rgba(0, 16, 30, 1) !important;
}
/****************************私有***/
.baoBiao{
  .el-dialog.el-dialog--center{
    top:100px;
    left: 100px;
  }
}
src/components/LayerController/logic/Company.js
@@ -3,6 +3,7 @@
 */
// 区分不同类型 使用不同img
const companyImg = '/assets/images/map/company_refining.png'
const companyOil = '/assets/images/map/company_oil.png'
const mapApi = require('../../../api/mapApi').default
const AnimalService = require('../service/AnimalService').default
@@ -19,15 +20,19 @@
      layer: layer
    })
    const res = await mapApi.getCompany()
    console.log(res)
    // console.log(res)
    const data = res.Result.DataInfo || {}
    for (let i = 0; i < data.length; i++) {
      // console.log(data[i])
      // 经纬度 位置
      const positionX = data[i].Latitude
      const positionY = data[i].Longitude
      var iconUrl = companyImg
      if (data[i].type) {
        if (data[i].type === 2) {
          iconUrl = companyOil
        }
      }
      const htmls = '<div><img src="' + iconUrl + '"><ul><li>' + data[i].name + '</li><li>' + data[i].name + '</li><li>' + data[i].name + '</li><li>' + data[i].name + '</li><li>' + data[i].name + '</li><li>' + data[i].name + '</li></ul></div>'
      var myIcon = L.divIcon({
        html: htmls,
@@ -58,7 +63,7 @@
  * 点位鼠标移入弹框
  * */
  this.bindTooltip = (layer) => {
    console.log(layer)
  //  console.log(layer)
    return '<div class="company-bindTooltip-hover"><h3>污染物产生统计</h3><ul>' +
                '<li>生产设施:30(个)</li>' +
                '<li>治理设施:30(个)</li>' +
src/components/LayerController/modules/LcServiceLayer.vue
@@ -95,7 +95,8 @@
            .wms-panel-scrollbar{
                height: 457px;
                width: 2.5rem;
                width: 285px;
                //width: 2.5rem;
                font-size: 14px;
            }
            .layerbox {
src/components/LayerController/service/BusiLayerService.js
@@ -22,7 +22,8 @@
      var busiLayer = new BusiLayer()
      busiLayer.init(layer, this.L)
      if (busiLayer.bindTooltip) {
        layer.bindTooltip(busiLayer.bindTooltip)
        // 全局tips位置
        layer.bindTooltip(busiLayer.bindTooltip, { direction: 'top', offset: [0, -15], sticky: false })
      }
      // 调用click事件
      if (busiLayer.clickListener) {
src/components/LayerController/service/LayerFactory.js
@@ -55,7 +55,8 @@
    var layer = (logic && logic.initLayer && logic.initLayer((this.L))) || this.L.featureGroup({})
    if (logic.bindTooltip) {
      layer.bindTooltip(logic.bindTooltip)
      // 全局tips位置
      layer.bindTooltip(logic.bindTooltip, { direction: 'top', offset: [0, -15], sticky: false })
    }
    // 调用click事件
    if (logic.clickListener) {
src/components/table/summarySheets.vue
@@ -1,6 +1,6 @@
<template>
  <div class="summary-sheets">
    <el-tooltip :popper-class="'map-tooltip'" effect="dark" content="报表" placement="left">
    <el-tooltip :popper-class="'map-tooltip'" effect="dark" content="" placement="left">
      <div :class='["iconBtn",subtopic ? "active-button" : ""]' @click="subtopicBtn" >
         <i class="el-icon-tickets icon"></i>
      </div>
@@ -28,7 +28,7 @@
            </el-tooltip>
        </div>
    </transition>
    <Dialog ref="summarySheets" title="报表" >
    <Dialog ref="summarySheets" title="报表" class="baoBiao" >
      <tab-handover></tab-handover>
    </Dialog>
    <Dialog ref="warnDialog" title="预报警" >
src/conf/layers/LayerEnvRisk.js
@@ -38,7 +38,6 @@
      name: '一级风险',
      sname: '一级风险',
      checked: false, // 默认选中状态
      wfs: WFS_URL + '?TYPENAME=装置区',
      minZoom: 10,
      color: 'sandybrown'
    },
@@ -46,10 +45,17 @@
      code: 'envRiskSecond',
      name: '二级风险',
      sname: '二级风险',
      checked: false, // 默认选中状态
      wfs: WFS_URL + '?TYPENAME=装置区',
      checked: false,
      minZoom: 10,
      color: 'yellow'
    },
    {
      code: 'envRiskThird',
      name: '三级风险',
      sname: '三级风险',
      checked: false,
      minZoom: 10,
      color: 'green'
    }
  ]
}
src/conf/layers/LayerSoilGroundWater.js
@@ -27,21 +27,24 @@
      name: '一级风险地块',
      sname: '一级风险地块',
      checked: false, // 默认选中状态
      wfs: WFS_URL + '?TYPENAME=装置区'
      wfs: WFS_URL + '?TYPENAME=装置区',
      color: 'red'
    },
    {
      code: 'secondRiskBlock',
      name: '二级风险地块',
      sname: '二级风险地块',
      checked: false, // 默认选中状态
      wfs: WFS_URL + '?TYPENAME=装置区'
      wfs: WFS_URL + '?TYPENAME=装置区',
      color: 'yellow'
    },
    {
      code: 'threeRiskBlock',
      name: '三级风险地块',
      sname: '三级风险地块',
      checked: false, // 默认选中状态
      wfs: WFS_URL + '?TYPENAME=装置区'
      wfs: WFS_URL + '?TYPENAME=装置区',
      color: 'green'
    }
  ]
}
src/utils/dialogDrag.js
@@ -10,7 +10,7 @@
    dialogHeaderEl.style.cssText += ';cursor:move;'
    //console.log(dragDom.style.cssText)
    //dragDom.style.cssText += ';top:0px;'
    dragDom.style.cssText = 'bottom:15px;'
   // dragDom.style.cssText = 'bottom:15px;'
    // 获取原有属性 ie dom元素.currentStyle 火狐谷歌 window.getComputedStyle(dom元素, null);
    const sty = (function () {
src/views/popup/Popup.vue
@@ -73,8 +73,9 @@
      }
    },
    setDatas (layer) {
      console.log(layer)
      this.tabs = [{
        title: layer.feature.id,
        title: layer.feature.properties.pipename || layer.feature.id,
        name: '1'
      }]
      this.properties = layer.feature.properties