派生自 wuyushui/SewerAndRainNetwork

ChenZeping
2021-05-08 cd18d210fcede6bfa0fab319c1d78da7a9f3f228
管线分析
1个文件已删除
1个文件已修改
39 ■■■■■ 已修改文件
src/api/SolidWaste/index.js 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/panel/topicSearch/SewersSelect/SewersAnalysis.vue 33 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/SolidWaste/index.js
File was deleted
src/components/panel/topicSearch/SewersSelect/SewersAnalysis.vue
@@ -440,6 +440,7 @@
      map: window.map,
      myChart: null,
      options: [],
      myChartShow: false,
      flowPipeLine: null,
@@ -588,7 +589,10 @@
      const geom = JSON.parse(e.geomText)
      this.currentSelectStartLine = window.L.geoJSON(geom, {
        style: function (feature) {
          return { color: 'rgba(0,255,0,.6)' }
          return {
            weight: 10,
            color: 'rgba(0,255,0,.6)'
          }
        }
      }).addTo(window.map)
      window.map.panInsideBounds(this.currentSelectStartLine.getBounds())
@@ -613,7 +617,10 @@
      const geom = JSON.parse(e.geomText)
      this.currentSelectEndLine = window.L.geoJSON(geom, {
        style: function (feature) {
          return { color: 'rgba(200,0,200,.6)' }
          return {
            weight: 10,
            color: 'rgba(200,0,200,.6)'
          }
        }
      }).addTo(window.map)
      window.map.panInsideBounds(this.currentSelectEndLine.getBounds())
@@ -950,6 +957,7 @@
      let tempData
      const storeData = []
      const dataList = []
      this.echartsList = []
      for (let i = 0; i < dataSeries.length; i++) {
        if (storeData.length === 0) {
          storeData.push(name)
@@ -962,7 +970,7 @@
        }
        dataList.push(dataSeries[i].pipelines.oilPipeID)
      }
      console.log(dataList)
      // console.log(dataList)
      // const seriesList = e.data.pointInterval
      // let seriesdata
      // for (let i = 0; i < seriesList.length; i++) {
@@ -975,7 +983,7 @@
    selectRow (dataList) {
      // console.log(dataList)
      // 3. 使用刚指定的配置项和数据,显示图表
      const option = {
      this.option = {
        tooltip: {
          trigger: 'axis',
          axisPointer: {
@@ -985,10 +993,10 @@
            }
          }
        },
        legend: {
          // data: ['直接访问', '搜索引擎']
          data: dataList
        },
        // legend: {
        //   // data: ['直接访问', '搜索引擎']
        //   data: dataList
        // },
        toolbox: {
          show: false,
          feature: {
@@ -1010,9 +1018,9 @@
              textStyle: {
                color: '#fff'
              }
            },
            }
            // data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']
            data: dataList
            // data: dataList
          }
        ],
        yAxis: [
@@ -1045,13 +1053,16 @@
        series: this.echartsList
      }
      this.myChartShow = true
      this.myChart.setOption(option)
      this.myChart.clear()
      this.myChart.setOption(this.option)
    },
    // 横断面清除
    jdmClear () {
      this.hdmParam = null
      this.tableData = []
      this.option = []
      this.myChartShow = false
      this.myChart.clear()
      if (this.measure != null) {
        this.measure.destory()
      }