From cd18d210fcede6bfa0fab319c1d78da7a9f3f228 Mon Sep 17 00:00:00 2001
From: ChenZeping <chenzeping>
Date: 星期六, 08 五月 2021 09:50:33 +0800
Subject: [PATCH] 管线分析

---
 src/components/panel/topicSearch/SewersSelect/SewersAnalysis.vue |   33 ++++++++++++++++++++++-----------
 1 files changed, 22 insertions(+), 11 deletions(-)

diff --git a/src/components/panel/topicSearch/SewersSelect/SewersAnalysis.vue b/src/components/panel/topicSearch/SewersSelect/SewersAnalysis.vue
index 955ca38..bbf8c62 100644
--- a/src/components/panel/topicSearch/SewersSelect/SewersAnalysis.vue
+++ b/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()
       }

--
Gitblit v1.8.0