From 92230b628efc92953e3112c6a7e886f46dbadb35 Mon Sep 17 00:00:00 2001
From: chenyabin <Chenab123!>
Date: 星期四, 20 五月 2021 09:16:31 +0800
Subject: [PATCH] 处置信息弹框关闭
---
src/components/panel/topicSearch/SewersSelect/SewersAnalysis.vue | 49 +++++++++++++++++++++++++++++++++++--------------
1 files changed, 35 insertions(+), 14 deletions(-)
diff --git a/src/components/panel/topicSearch/SewersSelect/SewersAnalysis.vue b/src/components/panel/topicSearch/SewersSelect/SewersAnalysis.vue
index c637d81..0032468 100644
--- a/src/components/panel/topicSearch/SewersSelect/SewersAnalysis.vue
+++ b/src/components/panel/topicSearch/SewersSelect/SewersAnalysis.vue
@@ -22,8 +22,11 @@
</div>
<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 prop="pipename" label="浠嬭川绫诲瀷" :show-overflow-tooltip="true"></el-table-column>
+ <el-table-column prop="x" label="鏂潰(缁忓害)" :show-overflow-tooltip="true" width="80"></el-table-column>
+ <el-table-column prop="y" label="鏂潰(绾害)" :show-overflow-tooltip="true" width="80"></el-table-column>
+ <el-table-column prop="z" label="鏂潰(楂樼▼)" :show-overflow-tooltip="true" width="80"></el-table-column>
+ <el-table-column prop="spacing" label="闂磋窛(m)" width="80"></el-table-column>
<el-table-column class-name="fixed-table" fixed="right" label="鍥捐〃" width="40">
<template slot-scope="scope">
<el-button @click="selectRow(scope.row)" type="text" size="small">鏌ョ湅</el-button>
@@ -150,7 +153,7 @@
// 鍦板浘涓婄偣鍑�
selectPipeLine () {
window.map.on('click', this.selectClick)
- // // 鍏抽棴寮圭獥
+ // 鍏抽棴寮圭獥
window.layerFactory.clickSwitch = false
},
// 鍦板浘涓婄偣鍑诲洖璋�
@@ -215,8 +218,6 @@
// 杩為�氭�� 璧峰绠℃ table鍒楄〃鏁版嵁 閫夋嫨鏁版嵁浜嬩欢 鐨勭偣鍑讳簨浠�
linkSelectStart (e) {
// console.log(e)
- // console.log('閫夋嫨璧峰绠℃')
- // this.$refs.singleTable.setCurrentRow(e)
this.currentSelectStart = e
if (this.currentSelectStartLine != null) {
this.currentSelectStartLine.remove()
@@ -586,15 +587,35 @@
}
// 宸茬粯鍒剁嚎鍥� 杩涜缁樺埗妯柇闈㈡暟鎹垎鏋�
const res = await mapApi.getCrossSection(this.hdmParam)
- const dataPoint = res.data.point
- for (let i = 0; i < dataPoint.length; i++) {
- const obj = {
- pipename: dataPoint[i].pipelines.extraData.pipename,
- mediumtype: dataPoint[i].pipelines.extraData.mediumtype
- }
- this.tableData.push(obj)
- }
- // console.log(this.tableData, 'this.tableData')
+ console.log(res)
+ // let obj = {}
+ const dataSpacing = res.data.pointInterval
+ console.log(dataSpacing)
+ // for (let i = 0; i < dataSpacing.length; i++) {
+ // obj.push({
+ // spacing: dataSpacing[i]
+ // })
+ // console.log(obj)
+ // }
+ // const dataPoint = res.data.point
+ // const dataPointjj = res.data.pointInterval
+ // for (let i = 0; i < dataPoint.length; i++) {
+ // obj = {
+ // pipename: dataPoint[i].pipelines.extraData.pipename,
+ // x: dataPoint[i].crossPoint3D.x,
+ // y: dataPoint[i].crossPoint3D.y,
+ // z: dataPoint[i].crossPoint3D.z
+ // }
+ // this.tableData.push(obj)
+ // }
+ // for (let i = 0; i < dataPointjj.length; i++) {
+ // obj = {
+ // pointInterval: dataPointjj[i]
+ // }
+ // this.tableData.push(obj)
+ // console.log(obj)
+ // }
+ // console.log(this.tableData)
this.dealWithData(res)
},
dealWithData (e) {
--
Gitblit v1.8.0