From d3e7923f5cc188da720ba9c3d6a536ae82e46f3c Mon Sep 17 00:00:00 2001 From: lyfO_o <764716047@qq.com> Date: 星期四, 09 六月 2022 10:00:24 +0800 Subject: [PATCH] 删除 --- src/components/Tab/Plot.vue | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/components/Tab/Plot.vue b/src/components/Tab/Plot.vue index d062258..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" @@ -70,8 +71,8 @@ > <p>请输入内容:</p> <el-input v-model="label.name" placeholder="请输入内容" /> - <p>请输入内容:</p> - <el-select v-model="color" placeholder="请输入内容" > + <p>请选择风险等级:</p> + <el-select v-model="color" placeholder="请选择" > <el-option v-for="item in colorList" :key="item.id" @@ -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