From 082613d446e29e4ec1c16bfaa52345106a498b23 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Tue, 08 Nov 2022 09:03:49 +0800
Subject: [PATCH] 农事操作隐藏后四个,地图模式2d改为3d

---
 src/views/mapPattern/index.vue |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/views/mapPattern/index.vue b/src/views/mapPattern/index.vue
index b9d19aa..d178ba1 100644
--- a/src/views/mapPattern/index.vue
+++ b/src/views/mapPattern/index.vue
@@ -278,6 +278,7 @@
         },
         //获取地块列表
         getLandList (page, params = {}) {
+          const that = this
             params['farmId'] = this.$farmId
             params['tenantId'] = this.userInfo.tenant_id
             this.loading = true
@@ -298,7 +299,7 @@
                         arr.forEach(it => {
                             brr.push(it.split(' '))
                         })
-                        this.$refs.plotMap.addPlotPolygon(brr, item)
+                      that.$refs.plotMap.addPlotPolygon(brr, item)
                     }
                 })
 
@@ -335,13 +336,13 @@
 
         // 地块定位
         setCenter (item) {
+            console.log(item)
             this.$refs.plotMap.setPlotCenter(item)
         },
 
         plotDetailsPopupShow (params) {
             this.currentPlotDetails = params
             this.currentPlotName = params.landName
-
             let arr = []
 
             this.farmPlantList.forEach((item, index) => {

--
Gitblit v1.9.3