From 28160ea1bbc94bd69b3b07f3abdc5e9950c49c0b Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Mon, 29 Aug 2022 16:32:13 +0800
Subject: [PATCH] 地图模式面积显示保留三位小数

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

diff --git a/src/views/mapPattern/index.vue b/src/views/mapPattern/index.vue
index 0fb8430..a76b24d 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
 
@@ -325,7 +328,7 @@
 
         // 地块定位
         setCenter (item) {
-            this.$refs.plotMap.setPlotCenter(item.landName)
+            this.$refs.plotMap.setPlotCenter(item)
         },
 
         plotDetailsPopupShow (params) {

--
Gitblit v1.9.3