From 80743848ee038cebf3fcfb40cc6b2d68fe0fc90f Mon Sep 17 00:00:00 2001
From: zhongrj <123456>
Date: Tue, 19 Jul 2022 12:18:19 +0800
Subject: [PATCH] 地块地图模式页面新增,完善
---
src/views/land/getMapDataInThere.vue | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/src/views/land/getMapDataInThere.vue b/src/views/land/getMapDataInThere.vue
index e3950e0..cb6886e 100644
--- a/src/views/land/getMapDataInThere.vue
+++ b/src/views/land/getMapDataInThere.vue
@@ -63,8 +63,20 @@
},
methods: {
draw (usePolygons) {
- this.$store.commit("setpolygon", usePolygons) //用vuex传最终数据
- this.doThat(usePolygons)
+
+ let arr = []
+
+ usePolygons.forEach(item => {
+ arr.push({
+ lng: item.split(' ')[0],
+ lat: item.split(' ')[1]
+ })
+ })
+
+ console.log(arr, 23)
+
+ this.$store.commit("setpolygon", arr) //用vuex传最终数据
+ this.doThat(arr)
},
doThat (val) {
this.checkDom("getMapDataRefs", (dom) => {
--
Gitblit v1.9.3