From e97a404960da3964475aebbef4ff069be2e4ccfc Mon Sep 17 00:00:00 2001
From: ChenZeping02609 <chenzeping02609@163.com>
Date: 星期三, 12 五月 2021 17:54:29 +0800
Subject: [PATCH] 修改问题,污染源

---
 src/components/panel/topicSearch/SewersSelect/SewersAnalysis.vue |   51 +++++++++++++++++++++++----------------------------
 1 files changed, 23 insertions(+), 28 deletions(-)

diff --git a/src/components/panel/topicSearch/SewersSelect/SewersAnalysis.vue b/src/components/panel/topicSearch/SewersSelect/SewersAnalysis.vue
index ba5c909..e85728c 100644
--- a/src/components/panel/topicSearch/SewersSelect/SewersAnalysis.vue
+++ b/src/components/panel/topicSearch/SewersSelect/SewersAnalysis.vue
@@ -4,21 +4,21 @@
         <!--<el-card>-->
         <el-tabs v-model="activeName" type="border-card" @tab-click="handleClick">
             <el-tab-pane label="杩為�氭��" name="first">
-               <div>
+               <el-row>
                    <el-button type="primary" @click="linkClickStart" size="mini" title="鍦板浘涓婄偣鍑婚�夋嫨闇�瑕佽繘琛岃繛閫氬垎鏋愮殑绠℃">璧峰绠℃</el-button>
                    <el-button type="primary" @click="linkClickEnd" size="mini" title="鍦板浘涓婄偣鍑讳笌鎵�閫夌娈佃繛閫氱娈�">缁撴潫绠℃</el-button>
                    <el-button type="primary" @click="linkQuery" size="mini" title="鏍规嵁璧峰銆佺粨鏉熺娈佃繘琛岃繛閫氭�у垎鏋�">杩為�氭�у垎鏋�</el-button>
                    <el-button type="primary" @click="handleClick" size="mini" title="鏍规嵁璧峰銆佺粨鏉熺娈佃繘琛岃繛閫氭�у垎鏋�">娓呴櫎</el-button>
-               </div>
+               </el-row>
                 <!--        <el-scrollbar style="height:450px">-->
                 <!--          <el-card shadow="hover">-->
                 <span class="fixed-style">璧峰绠℃</span>
-                <el-table class="tableBox" height="100" max-height="200" :data="tableDataLinkStart" @row-click="linkSelectStart" highlight-current-row style="width: 100%" size="mini">
+                <el-table class="tableBox" height="100" max-height="200" :data="tableDataLinkStart" highlight-current-row style="width: 100%" size="mini">
                     <el-table-column prop="datasource" label="绠℃绫诲瀷"></el-table-column>
                     <el-table-column :show-overflow-tooltip="true" sortable width="100" prop="pipecode" label="绠℃鍚嶇О"></el-table-column>
                     <el-table-column sortable width="100" prop="material" label="璧风偣缂栧彿"></el-table-column>
                     <el-table-column sortable width="100" prop="material" label="缁堢偣缂栧彿"></el-table-column>
-                    <el-table-column fixed="right" class-name="fixed-table" label="鎿嶄綔" width="40">
+                    <el-table-column width="40" fixed="right" class-name="fixed-table" label="鎿嶄綔">
                         <template slot-scope="scope">
                             <el-button @click="linkSelectStart(scope.row)" type="text" size="small">閫夋嫨</el-button>
                         </template>
@@ -37,7 +37,7 @@
                     </el-table-column>
                 </el-table>
                 <span class="fixed-style">鍒嗘瀽缁撴灉:<span style="color: red;margin-left: 15px">{{ currentLinkIsTrue }}</span></span>
-                <el-table class="tableBox" highlight-current-row max-height="200" :data="tableDataLinkResult" @row-click="linkResultSelect" style="width: 100%" size="mini">
+                <el-table class="tableBox" highlight-current-row max-height="200" :data="tableDataLinkResult" style="width: 100%" size="mini">
                     <el-table-column prop="material" label="绠℃绫诲瀷"></el-table-column>
                     <el-table-column :show-overflow-tooltip="true" sortable width="100" prop="pipecode" label="绠℃鍚嶇О"></el-table-column>
                     <el-table-column sortable width="100" prop="material" label="璧风偣缂栧彿"></el-table-column>
@@ -112,16 +112,16 @@
                 </el-table>
             </el-tab-pane>
             <el-tab-pane label="妯柇闈�" name="fourth">
-                <div>
+                <el-row>
                     <el-button type="primary" @click="drawLine" size="mini"  title="鍦板浘涓婄粯鍒惰杩涜鍒嗘瀽鎴柇闈㈢殑绾�">缁樺埗绾挎</el-button>
                     <el-button type="primary" @click="jdmQuery" size="mini"  title="鎴柇闈㈠垎鏋�">鎴柇闈㈠垎鏋�</el-button>
                     <el-button type="primary" @click="jdmClear" size="mini"  title="娓呴櫎鎴柇闈㈠垎鏋愮粨鏋�">娓呴櫎</el-button>
-                </div>
+                </el-row>
                 <!-- <el-card class="box-card">-->
                 <div slot="header" class="fixed-style">
                     <span>绠℃鏌ヨ缁撴灉</span>
                 </div>
-                <el-table class="tableBox" :data="tableData" max-height="200" highlight-current-row style="width: 100%" @row-click="selectRow" size="mini">
+                <el-table class="tableBox" :data="tableData" height="150" max-height="200" highlight-current-row style="width: 100%" @row-click="selectRow" size="mini">
                     <el-table-column prop="pipename" label="绠℃鍚嶇О"></el-table-column>
                     <el-table-column prop="mediumtype" label="绠℃绫诲瀷" width="80"></el-table-column>
                     <el-table-column class-name="fixed-table" fixed="right" label="鍥捐〃"  width="40">
@@ -166,7 +166,9 @@
 
       myChart: null,
       options: [],
+      echartsList: [],
       myChartShow: false,
+
       flowPipeLine: null,
 
       // 鐢ㄤ簬鍒ゆ柇
@@ -205,9 +207,7 @@
       lxTableDataResult: [],
 
       // 妯柇闈� 绠℃鏌ヨ缁撴灉 鐨則able琛ㄦ牸鏁版嵁
-      tableData: [],
-
-      echartsList: []
+      tableData: []
 
     }
   },
@@ -222,7 +222,8 @@
   methods: {
     // tab鍒囨崲
     handleClick (tab, event) {
-      // console.log(tab, event)
+      console.log(event)
+      // console.log(tab)
       this.clearLinkPipe()
       this.clearLX()
       this.linkClear()
@@ -246,23 +247,17 @@
     },
     // 鍦板浘涓婄偣鍑诲洖璋�
     selectClick (e) {
-      console.log(e)
+      // console.log(e)
       window.map.off('click', this.selectClick)
       const point = [e.latlng.lng, e.latlng.lat]
       this.getPipeLine(point)
-      // if () {
-      //   // 鍏抽棴寮圭獥
-      //   window.layerFactory.clickSwitch = false
-      // } else {
-      //   window.layerFactory.clickSwitch = true
-      // }
     },
     // 鐐瑰嚮鑾峰彇鍒ゆ柇鏁版嵁
     async getPipeLine (point) {
       const param = {
         x: point[0],
         y: point[1],
-        radius: 5
+        radius: 3
       }
       // 鏍规嵁鍙傛暟璇锋眰鎺ュ彛鏁版嵁
       const res = await mapApi.findPipelineByClickPoint(param)
@@ -298,13 +293,13 @@
 
     // 杩為�氭�� ===> 鍦板浘鐐瑰嚮璧峰绠℃e
     linkClickStart (e) {
-      // console.log(e)
       // console.log('鍦板浘鐐瑰嚮璧峰绠℃')
       this.linkType = 1
       this.selectPipeLine()
     },
     // 杩為�氭�� 璧峰绠℃ table鍒楄〃鏁版嵁 閫夋嫨鏁版嵁浜嬩欢 鐨勭偣鍑讳簨浠�
     linkSelectStart (e) {
+      // console.log(e)
       // console.log('閫夋嫨璧峰绠℃')
       // this.$refs.singleTable.setCurrentRow(e)
       this.currentSelectStart = e
@@ -331,7 +326,7 @@
     },
     // 杩為�氭�� 缁撴潫绠℃ table鍒楄〃鏁版嵁 閫夋嫨鏁版嵁浜嬩欢 鐨勭偣鍑讳簨浠�
     linkSelectEnd (e) {
-      console.log('閫夋嫨缁撴潫绠℃')
+      // console.log('閫夋嫨缁撴潫绠℃')
       this.currentSelectEnd = e
 
       // 鍋氬垽鏂璻emove
@@ -345,15 +340,15 @@
         style: function (feature) {
           return {
             weight: 10,
-            color: 'rgba(255, 247, 0, 0.6)'
+            color: 'rgba(255, 247, 0, 0.7)'
           }
         }
       }).addTo(window.map)
       window.map.panInsideBounds(this.currentSelectEndLine.getBounds())
     },
-    // 杩為�氭�ф煡璇�
+    // 杩為�氭�ф煡璇� 缁撴灉
     async linkQuery () {
-      // 姣忔鏌ヨ鍒嗘瀽缁撴灉涓虹┖
+      // 姣忔鏌ヨ鍒嗘瀽缁撴灉鍒剁┖
       this.tableDataLinkResult = []
       if (this.linkPipeline.length > 1) {
         this.linkPipeline.forEach((itm) => {
@@ -372,16 +367,15 @@
         startLineID: this.currentSelectStart.pipesegcode,
         endLineID: this.currentSelectEnd.pipesegcode
       }
-      // console.log(param)
+      console.log(param)
       // 璇锋眰鎺ュ彛鍜屾暟鎹�
       const res = await mapApi.findConnectedPipelines(param)
       // console.log(res)
       // 鍒ゆ柇鏁版嵁缁撴灉 === 0 鍒欐病鏈夎姹傚埌鏁版嵁
       if (res.data.length === 0) {
         this.$message('娌℃湁鎵惧埌杩為�氱殑绠℃')
-        // if (this.tableDataLinkStart === [] && this.tableDataLinkEnd === []) {
+        // 杩涜鍒ゆ柇
         this.currentLinkIsTrue = '涓嶈繛閫�'
-        // }
         return
       }
       this.tableDataLinkResult = res.data
@@ -829,6 +823,7 @@
     }
 
     /deep/ .fixed-style {
+        /*margin: 15px;*/
         font-size: 12px;
         display: inline-block;
         color: #00fff6;

--
Gitblit v1.8.0