From bb588bddeaee7ea617f8ad019ba9f5e1825d9e27 Mon Sep 17 00:00:00 2001
From: 陈泽平 <chenzeping>
Date: 星期五, 21 五月 2021 14:39:21 +0800
Subject: [PATCH] 管线分析横断面数据图表展示
---
src/components/panel/topicSearch/SewersSelect/AnalysisChoose/Connectivity.vue | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/src/components/panel/topicSearch/SewersSelect/AnalysisChoose/Connectivity.vue b/src/components/panel/topicSearch/SewersSelect/AnalysisChoose/Connectivity.vue
index feb70b0..55d6882 100644
--- a/src/components/panel/topicSearch/SewersSelect/AnalysisChoose/Connectivity.vue
+++ b/src/components/panel/topicSearch/SewersSelect/AnalysisChoose/Connectivity.vue
@@ -96,12 +96,13 @@
// 鍦板浘涓婄偣鍑�
selectPipeLine () {
window.map.on('click', this.selectClick)
- // 鍏抽棴寮圭獥
- window.layerFactory.clickSwitch = false
+ window.mapManager.clickDialogSwitch = false
},
// 鍦板浘涓婄偣鍑诲洖璋�
selectClick (e) {
+ // console.log(e)
window.map.off('click', this.selectClick)
+ window.mapManager.clickDialogSwitch = true
const point = [e.latlng.lng, e.latlng.lat]
this.getPipeLine(point)
},
@@ -114,7 +115,7 @@
}
// 鏍规嵁鍙傛暟璇锋眰鎺ュ彛鏁版嵁
const res = await mapApi.findPipelineByClickPoint(param)
- // console.log(res)
+ console.log(res)
if (this.linkType === 1) {
this.tableDataLinkStart = res.data
} else {
@@ -124,6 +125,7 @@
// 杩為�氭�� ===> 鍦板浘鐐瑰嚮璧峰绠℃e
linkClickStart (e) {
// console.log('鍦板浘鐐瑰嚮璧峰绠℃')
+ // window.mapManager.clickDialogSwitch = false
this.linkType = 1
this.selectPipeLine()
},
@@ -214,7 +216,11 @@
const geom = JSON.parse(itm.geomText)
const points = []
geom.coordinates.forEach((it, id) => {
- points.push(it.reverse())
+ const item = it.reverse()
+ if (it.length > 2) {
+ item.shift()
+ }
+ points.push(item)
})
linkPipe.push(points)
})
--
Gitblit v1.8.0