From cd9dae5c7db49c3dba61609e7188a6b29a635c08 Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期一, 12 十二月 2022 10:01:43 +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