From 39638e1ec95822792c7520dcd0f5a807957cadde Mon Sep 17 00:00:00 2001
From: chenzeping <ChenZeping02609@163.com>
Date: 星期一, 19 四月 2021 18:28:39 +0800
Subject: [PATCH] 管线分析
---
src/components/panel/topicSearch/SewersSelect/AnalysisChoose/Connectivity.vue | 50 +++++++++++++++++++++++++++-----------------------
1 files changed, 27 insertions(+), 23 deletions(-)
diff --git a/src/components/panel/topicSearch/SewersSelect/AnalysisChoose/Connectivity.vue b/src/components/panel/topicSearch/SewersSelect/AnalysisChoose/Connectivity.vue
index 7eb985a..46fbf24 100644
--- a/src/components/panel/topicSearch/SewersSelect/AnalysisChoose/Connectivity.vue
+++ b/src/components/panel/topicSearch/SewersSelect/AnalysisChoose/Connectivity.vue
@@ -12,7 +12,7 @@
<el-table
ref="singleTable"
highlight-current-row
- :data="tableData"
+ :data="startingSection"
max-height="200"
style="width: 100%" size="mini">
<el-table-column
@@ -109,39 +109,42 @@
</template>
<script>
+
export default {
name: 'Connectivity',
data () {
return {
// 杩為�氭��
linkType: 1, // 1 杩為�氭�ц捣濮嬬娈� 0 杩為�氭�х粨鏉熺娈� 鐢ㄦ潵鍒ゆ柇鏄偣鍑讳簡璧峰 杩樻槸缁撴潫绠℃
- tableData: []
+ map: window.map,
+ tableData: [],
+ startingSection: []
}
},
methods: {
- // 鍦板浘鐐瑰嚮璧峰绠℃
- linkClickStart () {
- console.log('鍦板浘鐐瑰嚮璧峰绠℃')
- this.linkType = 1
- // this.selectPipeLine()
+ // 娴佸悜鍦板浘涓婄偣鍑�
+ selectPipeLine () {
+ this.map.on('click', this.selectClick)
},
- // 鍦板浘鐐瑰嚮缁撴潫绠℃
- linkClickEnd () {
- console.log('鍦板浘鐐瑰嚮缁撴潫绠℃')
- this.linkType = 0
- // this.selectPipeLine()
+ // 鍦板浘涓婄偣鍑诲洖璋�
+ selectClick (e) {
+ this.map.off('click', this.selectClick)
+ const point = [e.latlng.lng, e.latlng.lat]
+ console.log(point)
+ // 鏍规嵁鏁版嵁杩涜鏁版嵁璇锋眰
+ // this.getPipeLine(point)
},
- // 杩為�氭�у垎鏋�
- linkQuery () {
- console.log('鐐瑰嚮杩為�氭�у垎鏋�')
- },
- // 娓呴櫎鍔熻兘
- linkClear () {
- console.log('鐐瑰嚮娓呴櫎')
- },
- // 閫夋嫨璧峰绠℃
- linkSelectStart () {
- console.log('閫夋嫨璧峰绠℃')
+ // 鏁版嵁璇锋眰
+ async getPipeLine (point) {
+ const param = {
+ x: point[0],
+ y: point[1],
+ radius: 3
+ }
+ console.log(param)
+ // const res = await api.getPipeline(param)
+ // console.log(res)
+ // this.startingSection = res.data
}
}
}
@@ -151,6 +154,7 @@
/deep/ .fixed-tablea {
background: rgba(0, 16, 30, 1) !important;
}
+
/deep/ .el-table__fixed-right::before {
background: none;
}
--
Gitblit v1.8.0