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 | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/Tab/Plot.vue b/src/components/Tab/Plot.vue index 0a5ae38..1834109 100644 --- a/src/components/Tab/Plot.vue +++ b/src/components/Tab/Plot.vue @@ -177,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 =>{ @@ -210,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) @@ -228,7 +226,7 @@ map.startDraw( { type: 'polygon', - style: { text: name ,color:this.color}, + style: { text: name ,color:this.color, clampToGround: true}, attr: { name, }, @@ -264,6 +262,7 @@ message:'四色图新增成功', }) } + this.$emit('getList') }) } ); -- Gitblit v1.9.2