From fe2617a36f52c16f83e7d3cb19d911bb91a3b79f Mon Sep 17 00:00:00 2001 From: lyfO_o <764716047@qq.com> Date: 星期一, 13 六月 2022 09:00:28 +0800 Subject: [PATCH] 删除固定菜单 --- src/components/Tab/Plot.vue | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/components/Tab/Plot.vue b/src/components/Tab/Plot.vue index b9322b5..2a4887e 100644 --- a/src/components/Tab/Plot.vue +++ b/src/components/Tab/Plot.vue @@ -44,12 +44,13 @@ circle @click="() => focusHandle(label.attr.id)" /> - <el-button - icon="el-icon-edit" - size="mini" - circle - @click="() => editHandle(label)" - /> + +<!-- <el-button--> +<!-- icon="el-icon-edit"--> +<!-- size="mini"--> +<!-- circle--> +<!-- @click="() => editHandle(label)"--> +<!-- />--> <el-button icon="el-icon-delete" type="danger" @@ -176,7 +177,6 @@ }, removeHandle(label) { if (!global.map) return; - debugger for(let i in this.colorMapList){ if(JSON.parse(this.colorMapList[i].properties).attr.id === label.attr.id){ deleteColorMap({id:this.colorMapList[i].id}).then(res =>{ @@ -193,7 +193,7 @@ }) } } - + }, closeCreateHandle() { @@ -233,21 +233,21 @@ }, }, (entity) => { - debugger + console.log(wutu3d.draw.attr.getCoordinates(entity)); this._initLabel(); this.$store.dispatch('map/updateTimestamp'); this.form = { id:'', etype:this.type, "type": "Feature", - "properties": + "properties": JSON.stringify(entity.attribute), "geometry": JSON.stringify({ "type": "Polygon", "coordinates": [ - + wutu3d.draw.attr.getCoordinates(entity) - + ] }) } -- Gitblit v1.9.2