From 6ebf06fa7ce4fccb3144a0c15773cb9e48276fd7 Mon Sep 17 00:00:00 2001 From: 陈泽平 <chenzeping> Date: 星期二, 25 五月 2021 21:14:22 +0800 Subject: [PATCH] 事件上报页面修改 --- src/components/panel/topicSearch/sewers-select/analysis-choose/Tube.vue | 42 ++++++++++++++---------------------------- 1 files changed, 14 insertions(+), 28 deletions(-) diff --git a/src/components/panel/topicSearch/sewers-select/analysis-choose/Tube.vue b/src/components/panel/topicSearch/sewers-select/analysis-choose/Tube.vue index 9addf11..634c58a 100644 --- a/src/components/panel/topicSearch/sewers-select/analysis-choose/Tube.vue +++ b/src/components/panel/topicSearch/sewers-select/analysis-choose/Tube.vue @@ -34,7 +34,7 @@ label="缁堢偣缂栧彿"></el-table-column> <el-table-column class-name="fixed-table" fixed="right" label="鎿嶄綔" width="40"> <template slot-scope="scope"> - <el-button @click="linkResultSelect(scope.row)" type="text" size="small">瀹氫綅</el-button> + <el-button @click.once="linkResultSelect(scope.row)" type="text" size="small">瀹氫綅</el-button> </template> </el-table-column> </el-table> @@ -73,13 +73,12 @@ }) }, methods: { + // 娓呴櫎鍔熻兘 handleClick () { + window.mapManager.clearHighlight() this.clearLinkPipe() - this.linkClear() this.bgFm = [] this.bgPipeLine = [] - }, - linkClear () { if (this.currentSelectStartLine != null) { this.currentSelectStartLine.remove() this.currentSelectStartLine = null @@ -115,10 +114,14 @@ } // 鏍规嵁鍙傛暟璇锋眰鎺ュ彛鏁版嵁 const res = await mapApi.findPipelineByClickPoint(param) - console.log(res) + // console.log(res) this.bgPipeLine = res.data }, - // 娓呮鍒嗘瀽缁撴灉 + // 鐖嗙 ===> 閫夋嫨绠℃ + bgClick () { + this.selectPipeLine() + }, + // 娓呴櫎缁撴灉 clearLinkPipe () { if (this.linkPipeline.length > 0) { this.linkPipeline.forEach((itm, idx) => { @@ -131,10 +134,7 @@ this.currentSelectEndLine = null } }, - // 鐖嗙 ===> 閫夋嫨绠℃ - bgClick () { - this.selectPipeLine() - }, + // 鐐瑰嚮閫夋嫨浜嬩欢 async bgSelect (e) { // console.log('閫夋嫨鐖嗙绠℃') // console.log(e) @@ -175,17 +175,6 @@ } res.data.reverse() this.bgFm = res.data - // console.log(res.data) - - this.bgPoint = res.data[0].startControlPoint - - // const point = JSON.parse(this.bgPoint.geomText) - // const p = [point.coordinates[1], point.coordinates[0]] - // this.bgMarker = this.createFlowMarker(p) - // this.bgMarker = pulseEffect(p) - // this.bgMarker.bindTooltip(this.bgPoint.pointnumbe) - // this.bgMarker.addTo(window.map) - // window.map.flyTo(p) const linkPipe = [] res.data.forEach((itm, idx) => { @@ -214,20 +203,17 @@ this.linkPipeline.push(line) }) }, + // 鐐瑰嚮瀹氫綅 鎵�鍦ㄨ鍒楄〃 鍔熻兘 bgFmClick (e) { - // console.log('鐐瑰嚮褰卞搷鐨勯榾闂�') - // console.log(e) - // const point = [e.data[0][0], e.data[0][1]] + console.log(e) + // window.map.flyTo(point, 22) const point = [e.startControlPoint.y, e.startControlPoint.x] pulseEffect(point) - // const marker = this.createFlowMarker(point) - // marker.addTo(window.map) - // window.map.flyTo(point, 17) }, // 瀹氫綅鏂规硶浜嬩欢 linkResultSelect (e) { // console.log('杩為�氭�у垎鏋愮粨鏋滃垪琛ㄧ偣鍑�') - console.log(e) + // console.log(e) const geom = JSON.parse(e.geomText) if (this.currentSelectResultLine != null) { this.currentSelectResultLine.remove() -- Gitblit v1.8.0