From c819024e241b9f7c54cc3786373ad0d2998f2190 Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期五, 05 五月 2023 08:55:46 +0800 Subject: [PATCH] 修改 --- src/components/Tab/Plot.vue | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/components/Tab/Plot.vue b/src/components/Tab/Plot.vue index f50ff87..1834109 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 =>{ @@ -209,7 +209,6 @@ }; }, async createHandle() { - // debugger // this.form.geometry = JSON.stringify(this.form.geometry) // this.form.properties = JSON.stringify(this.form.properties) // let res = await addMap(this.form) @@ -227,7 +226,7 @@ map.startDraw( { type: 'polygon', - style: { text: name ,color:this.color}, + style: { text: name ,color:this.color, clampToGround: true}, attr: { name, }, @@ -263,6 +262,7 @@ message:'四色图新增成功', }) } + this.$emit('getList') }) } ); -- Gitblit v1.9.2