From da0feb871fb0f174a500719016926bf14c2faca0 Mon Sep 17 00:00:00 2001
From: Your Name <123456>
Date: Tue, 31 May 2022 15:05:43 +0800
Subject: [PATCH] 'lct'
---
src/components/Tab/Plot.vue | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/src/components/Tab/Plot.vue b/src/components/Tab/Plot.vue
index b9322b5..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"
@@ -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