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 | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/views/mapPattern/index.vue b/src/views/mapPattern/index.vue
index 385204d..a76b24d 100644
--- a/src/views/mapPattern/index.vue
+++ b/src/views/mapPattern/index.vue
@@ -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