From 4d9b7dcd147a97135c4cdca281deff650be4b7f3 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Thu, 11 Aug 2022 09:40:39 +0800
Subject: [PATCH] 新增地块后刷新地块页面,播种面积总和保留三位小数

---
 src/views/statistics/farmplantarea.vue |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/views/statistics/farmplantarea.vue b/src/views/statistics/farmplantarea.vue
index 09f73ee..d321c08 100644
--- a/src/views/statistics/farmplantarea.vue
+++ b/src/views/statistics/farmplantarea.vue
@@ -172,12 +172,15 @@
                                 return prev
                             }
                         }, 0)
+                        sums[index] = sums[index].toFixed(3)
                         sums[index] += " 亩"
                     } else {
                         sums[index] = "N/A"
                     }
                 }
             })
+            // sums = sums.toFixed(3)
+            console.log(sums,11111111)
             return sums
         },
         getStartTime () {

--
Gitblit v1.9.3