派生自 wuyushui/SewerAndRainNetwork

徐旺旺
2021-04-01 7a6f7a499364eb56bf208fed4c18bee6a978714f
Merge remote-tracking branch 'origin/develop' into develop
2个文件已删除
5个文件已修改
6 文件已重命名
86 ■■■■■ 已修改文件
public/assets/images/map/wastewater/fs_blue.png 补丁 | 查看 | 原始文档 | blame | 历史
public/assets/images/map/wastewater/fs_bright_green.png 补丁 | 查看 | 原始文档 | blame | 历史
public/assets/images/map/wastewater/fs_gray.png 补丁 | 查看 | 原始文档 | blame | 历史
public/assets/images/map/wastewater/fs_green_xc.png 补丁 | 查看 | 原始文档 | blame | 历史
public/assets/images/map/wastewater/fs_orange.png 补丁 | 查看 | 原始文档 | blame | 历史
public/assets/images/map/wastewater/fs_red.png 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/images/map-pages/basenav/Waste-water/fs_green.png 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/images/map-pages/basenav/Waste-water/fs_yellow.png 补丁 | 查看 | 原始文档 | blame | 历史
src/components/BaseNav/PublicBounced/GasComponents/GasECharts.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/BaseNav/PublicBounced/GasComponents/GasTabs.vue 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/BaseNav/PublicBounced/PublicBounced.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/BaseNav/WasteWater/WasteWater.js 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/LayerController/logic/WasteWater.js 58 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/assets/images/map/wastewater/fs_blue.png

public/assets/images/map/wastewater/fs_bright_green.png

public/assets/images/map/wastewater/fs_gray.png

public/assets/images/map/wastewater/fs_green_xc.png

public/assets/images/map/wastewater/fs_orange.png

public/assets/images/map/wastewater/fs_red.png

src/assets/images/map-pages/basenav/Waste-water/fs_green.png
Binary files differ
src/assets/images/map-pages/basenav/Waste-water/fs_yellow.png
Binary files differ
src/components/BaseNav/PublicBounced/GasComponents/GasECharts.vue
@@ -1,5 +1,5 @@
<template>
    <div style="width:670px;height:260px;" id="echarts" ref="main"></div>
    <div style="width:750px;height:260px;" id="echarts" ref="main"></div>
</template>
<script>
@@ -175,13 +175,9 @@
<style scoped lang="less">
  #echarts{
    width: 670px!important;
    height: 260px!important;
    //position: relative;
    margin: 0;
    padding: 0;
    /*background-color: rgba(0, 0, 0, 0.6);*/
    border: 1px solid #396d83;
    margin: 10px 10px 10px 10px;
    /*margin: 10px 10px 10px 10px;*/
  }
</style>
src/components/BaseNav/PublicBounced/GasComponents/GasTabs.vue
@@ -32,9 +32,6 @@
    }
  },
  methods: {
    handleClick (tab, event) {
      console.log(tab, event)
    }
  }
}
src/components/BaseNav/PublicBounced/PublicBounced.vue
@@ -45,10 +45,10 @@
  },
  methods: {
    setData (data, value) {
      data.forEach((item, index) => {
        // console.log(item.StoragePlaceName)
        this.displayContentTitle = item.StoragePlaceName
      })
      // data.forEach((item, index) => {
      //   // console.log(item.StoragePlaceName)
      //   // this.displayContentTitle = item.StoragePlaceName
      // })
      this.displayContentTab = data
      this.flag = true
      this.value = value
src/components/BaseNav/WasteWater/WasteWater.js
@@ -1,7 +1,8 @@
// 请求数据
import { requestWasteWater } from '@/api/request'
// 展示图片
import defaultImg from '@assets/images/map-pages/basenav/Waste-water/fs_green.png'
import Setting from '@assets/images/map-pages/basenav/Waste-water/fs_yellow.png'
// import defaultImg from '@assets/images/map-pages/basenav/Waste-water/fs_green.png'
// import Setting from '@assets/images/map-pages/basenav/Waste-water/fs_yellow.png'
// 底图业务展示点
class AddWasteWaterHelper {
@@ -105,10 +106,10 @@
  WasteWaterIconUrl (determineValueOne, determineValueTwo, position) {
    let EffectOfChange
    if (determineValueOne === 1 || determineValueTwo === 1) {
      EffectOfChange = defaultImg
      // EffectOfChange = defaultImg
      this.EffectOfPulse(position, this.WasteWaterMarkersLabels, this.WasteWaterLayerGroup)
    } else {
      EffectOfChange = Setting
      // EffectOfChange = Setting
    }
    return EffectOfChange
  }
src/components/LayerController/logic/WasteWater.js
@@ -3,9 +3,15 @@
 */
const AnimalService = require('../service/AnimalService').default
const mapApi = require('../../../api/mapApi').default
// 弹窗数据引进
const publicBounced = require('../../BaseNav/PublicBounced/PublicBounced').default
const testValue1 = '/assets/images/map/wastewater/fs_green.png'
const testValue2 = '/assets/images/map/wastewater/fs_yellow.png'
const NormalImg = '/assets/images/map/wastewater/fs_green.png' // 正常
const OffImg = '/assets/images/map/wastewater/fs_gray.png' // 停运
const AbnormalImg = '/assets/images/map/wastewater/fs_blue.png' // 异常
const MissImg = '/assets/images/map/wastewater/fs_yellow.png' // 缺失
const AlarmImg = '/assets/images/map/wastewater/fs_red.png' // 报警闪烁
const WarnImg = '/assets/images/map/wastewater/fs_orange.png' // 预警闪烁
module.exports = function () {
  /**
@@ -18,9 +24,7 @@
      layer: layer
    })
    const res = await mapApi.getWasteWater()
    // console.log(res)
    const data = res.Result.DataInfo
    // console.log(data)
    const data = res.Result.DataInfo || {}
    for (let i = 0; i < data.length; i++) {
      // 经纬度 位置
      const positionX = data[i].Latitude
@@ -30,6 +34,7 @@
      const testValue = data[i].ContrLevel
      const iconUrl = this.differentTypes(testValue)
      const marker = L.marker.magic([positionX, positionY], {
        test: data[i],
        icon: L.icon({
          iconUrl: iconUrl,
          iconSize: [50, 50],
@@ -41,22 +46,51 @@
  }
  this.bindTooltip = (layer) => {
    return '测试废水'
    return layer.options.test.Name
  }
  this.clickListener = (e) => {
  this.clickListener = async (e) => {
    // console.log(e)
    this.animalService.pulseEffect(e.latlng)
    return this.PublicBounced.$el
    const dataValue = {
      StoragePlaceId: e.layer.options.test.StoragePlaceId
    }
    const result = await mapApi.getWasteWater(dataValue)
    const PublicBounced = window.Vue.extend(publicBounced)
    const instance = new PublicBounced()
    instance.setData(result)
    instance.$mount()
    document.body.appendChild(instance.$el)
  }
  // 根据返回值的不同标记不同图片
  this.differentTypes = (testValue) => {
    let testChange
    if (testValue === 1) {
      testChange = testValue1
    } else {
      testChange = testValue2
    switch (testValue) {
      case 1:
        testChange = NormalImg
        break
      case 2:
        testChange = OffImg
        break
      case 3:
        testChange = AbnormalImg
        break
      case 4:
        testChange = MissImg
        break
      case 5:
        testChange = NormalImg
        break
      case 6:
        testChange = AlarmImg
        break
      case 7:
        testChange = AbnormalImg
        break
      case 8:
        testChange = WarnImg
        break
    }
    return testChange
  }