From e4418b60a9e80a1438919e618d2e5e2048d404bc Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Mon, 17 Oct 2022 11:23:11 +0800
Subject: [PATCH] 农场图片显示优化;加工产品管理去除导入功能;修复加工、销售、出库、损耗记录表的查询功能

---
 src/views/mapPattern/index.vue |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/src/views/mapPattern/index.vue b/src/views/mapPattern/index.vue
index 0fb8430..71c43e8 100644
--- a/src/views/mapPattern/index.vue
+++ b/src/views/mapPattern/index.vue
@@ -59,7 +59,7 @@
 
         <div class="farm-land">
             <div class="title">
-                <span>地块 · {{ this.pageLand.total }}种</span>
+                <span>地块 · {{ this.pageLand.total }}个</span>
             </div>
             <div class="content">
                 <div
@@ -162,12 +162,12 @@
     data () {
         return {
             page: {
-                pageSize: 10,
+                pageSize: 100,
                 currentPage: 1,
                 total: 0,
             },
             pageLand: {
-                pageSize: 10,
+                pageSize: 100,
                 currentPage: 1,
                 total: 0,
             },
@@ -199,7 +199,7 @@
 
     },
     computed: {
-        ...mapGetters(["userInfo","$farmId"]),
+        ...mapGetters(["userInfo", "$farmId"]),
     },
     created () {
         //获取种样品列表
@@ -255,8 +255,11 @@
                     }
                 })
 
-                this.plotPlantBreed = arr
+                arr.forEach((e)=>{
+                    e.area = e.area.toFixed(3)
+                })
 
+                this.plotPlantBreed = arr
 
                 this.loading = false
 
@@ -287,7 +290,6 @@
                         arr.forEach(it => {
                             brr.push(it.split(' '))
                         })
-
                         this.$refs.plotMap.addPlotPolygon(brr, item)
                     }
                 })
@@ -300,6 +302,7 @@
         },
         //返回上一页
         goToBack () {
+            this.$EventBus.$emit("getFarmObj", this.farmInfo);
             this.$router.go(-1)
         },
         //获取农场信息
@@ -318,14 +321,13 @@
         //获取地块轮廓统计信息
         getLandIsAreaStatistic () {
             getLandIsAreaStatistic(this.$farmId).then(res => {
-                console.log(res)
                 this.landIsAreaStatistic = res.data.data
             })
         },
 
         // 地块定位
         setCenter (item) {
-            this.$refs.plotMap.setPlotCenter(item.landName)
+            this.$refs.plotMap.setPlotCenter(item)
         },
 
         plotDetailsPopupShow (params) {
@@ -352,7 +354,6 @@
             }
 
             if (this.$refs.showCP) {
-                console.log(1)
                 let isSelf = this.$refs.showCP.contains(e.target)
                 if (!isSelf) {
                     this.plotClickNum = 0

--
Gitblit v1.9.3