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 | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/views/mapPattern/index.vue b/src/views/mapPattern/index.vue
index 6d67a3e..a76b24d 100644
--- a/src/views/mapPattern/index.vue
+++ b/src/views/mapPattern/index.vue
@@ -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
--
Gitblit v1.9.3