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/wel/farming.vue      |    6 ++++++
 src/components/map/plotMap.vue |    2 +-
 src/views/mapPattern/index.vue |    5 +++--
 3 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/components/map/plotMap.vue b/src/components/map/plotMap.vue
index f4ba809..d2134de 100644
--- a/src/components/map/plotMap.vue
+++ b/src/components/map/plotMap.vue
@@ -51,7 +51,6 @@
                         preserveDrawingBuffer: true
                     }
                 },
-                sceneMode: 2
             })
 
             farmRegionLayer = new global.DC.VectorLayer('farmRegionLayer')
@@ -445,6 +444,7 @@
 
             // 根据坐标画线
             const positions = this.setPositionByLandRange(landObj.landRange)
+          console.log(positions,123455555)
             if (positions) {
                 this.drawLandPolyLine(positions)
             }
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) => {
diff --git a/src/views/wel/farming.vue b/src/views/wel/farming.vue
index b0d6478..94e69e2 100644
--- a/src/views/wel/farming.vue
+++ b/src/views/wel/farming.vue
@@ -47,6 +47,12 @@
             type: "select",
             labelWidth: 110,
             dicUrl: "/api/blade-system/dict-biz/dictionary?code=farmingType",
+            dicFormatter:(res)=>{
+              let typeList = res.data.filter(e=>{
+                return e.dictKey<10
+              })
+              return typeList
+            },
             props: {
               label: "dictValue",
               value: "dictKey",

--
Gitblit v1.9.3