From 68e3567f9eec11097bb4e6f6c308033a691049b8 Mon Sep 17 00:00:00 2001
From: ChenZeping <chenzeping>
Date: 星期六, 08 五月 2021 14:23:42 +0800
Subject: [PATCH] 管线分析
---
src/components/panel/topicSearch/SewersSelect/SewersAnalysis.vue | 42 ++++++++++++++++++++++++++++++++++--------
1 files changed, 34 insertions(+), 8 deletions(-)
diff --git a/src/components/panel/topicSearch/SewersSelect/SewersAnalysis.vue b/src/components/panel/topicSearch/SewersSelect/SewersAnalysis.vue
index 56aecf0..816259b 100644
--- a/src/components/panel/topicSearch/SewersSelect/SewersAnalysis.vue
+++ b/src/components/panel/topicSearch/SewersSelect/SewersAnalysis.vue
@@ -21,10 +21,11 @@
<span class="fixed-style">璧峰绠$嚎</span>
<el-table
class="tableBox"
+ height="100"
max-height="200"
- highlight-current-row
:data="tableDataLinkStart"
@row-click="linkSelectStart"
+ highlight-current-row
style="width: 100%" size="mini">
<el-table-column
prop="datasource"
@@ -513,15 +514,24 @@
this.lxTableDataResult = []
},
- // 娴佸悜鍦板浘涓婄偣鍑�
+ // 鍦板浘涓婄偣鍑�
selectPipeLine () {
window.map.on('click', this.selectClick)
+ // // 鍏抽棴寮圭獥
+ window.layerFactory.clickSwitch = false
},
// 鍦板浘涓婄偣鍑诲洖璋�
selectClick (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) {
@@ -532,6 +542,7 @@
}
// 鏍规嵁鍙傛暟璇锋眰鎺ュ彛鏁版嵁
const res = await mapApi.findPipelineByClickPoint(param)
+ console.log(res)
if (this.activeName === 'first') {
if (this.linkType === 1) {
this.tableDataLinkStart = res.data
@@ -544,8 +555,6 @@
this.tableDataLiuxiang = res.data
} else if (this.activeName === 'fourth') {
}
- // debugger
- console.log(res.data)
},
// 娴佸悜鏄剧ず 鐨勬柟娉曞弬鏁板皝
createFlowLine (param) {
@@ -572,14 +581,14 @@
// 杩為�氭�� ===> 鍦板浘鐐瑰嚮璧峰绠$嚎e
linkClickStart (e) {
- console.log(e)
- console.log('鍦板浘鐐瑰嚮璧峰绠$嚎')
+ // console.log(e)
+ // console.log('鍦板浘鐐瑰嚮璧峰绠$嚎')
this.linkType = 1
this.selectPipeLine()
},
// 杩為�氭�� 璧峰绠$嚎 table鍒楄〃鏁版嵁 閫夋嫨鏁版嵁浜嬩欢 鐨勭偣鍑讳簨浠�
linkSelectStart (e) {
- console.log('閫夋嫨璧峰绠$嚎')
+ // console.log('閫夋嫨璧峰绠$嚎')
// this.$refs.singleTable.setCurrentRow(e)
this.currentSelectStart = e
if (this.currentSelectStartLine != null) {
@@ -802,7 +811,8 @@
bgFmClick (e) {
console.log('鐐瑰嚮褰卞搷鐨勯榾闂�')
console.log(e)
- const point = [e.data[0][0], e.data[0][1]]
+ // const point = [e.data[0][0], e.data[0][1]]
+ const point = [e.startControlPoint.x, e.startControlPoint.y]
const marker = this.createFlowMarker(point)
marker.addTo(this.map)
window.map.flyTo(point, 16)
@@ -1099,6 +1109,22 @@
background: none;
}
+ /deep/ .el-table__body .el-table__row.hover-row td {
+ background: none !important;
+ }
+
+ /deep/ .el-table__fixed-right-patch {
+ /*display: none;*/
+ }
+
+ /deep/ .el-table__body tr.current-row > td {
+ background: rgba(0, 16, 30, 1) !important;
+ }
+
+ /deep/ .fixed-table {
+ background: rgba(0, 16, 30, 1) !important;
+ }
+
/*/deep/ .el-tabs--top .el-tabs__item.is-top:nth-child(2) {*/
/* padding-left: 20px;*/
/*}*/
--
Gitblit v1.8.0