From ca151ff4c1cdc4a029f13ac6da7d42e4f8147287 Mon Sep 17 00:00:00 2001
From: Your Name <123456>
Date: Sat, 06 Aug 2022 16:18:50 +0800
Subject: [PATCH] 重构双重预防
---
src/components/Tab/Plot.vue | 18 ++++++++++--------
1 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/src/components/Tab/Plot.vue b/src/components/Tab/Plot.vue
index f50ff87..02cc09e 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"
@@ -175,8 +176,8 @@
this.showCreatePanel = true;
},
removeHandle(label) {
- if (!global.map) return;
debugger
+ if (!global.map) return;
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 =>{
@@ -227,7 +228,7 @@
map.startDraw(
{
type: 'polygon',
- style: { text: name ,color:this.color},
+ style: { text: name ,color:this.color, clampToGround: true},
attr: {
name,
},
@@ -263,6 +264,7 @@
message:'四色图新增成功',
})
}
+ this.$emit('getList')
})
}
);
--
Gitblit v1.9.2