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/farm/stockUseInfo.vue | 2 --
src/views/land/LandDetail.vue | 4 ++--
src/views/mapPattern/index.vue | 5 ++++-
3 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/views/farm/stockUseInfo.vue b/src/views/farm/stockUseInfo.vue
index 5f93b3a..8b7ed17 100644
--- a/src/views/farm/stockUseInfo.vue
+++ b/src/views/farm/stockUseInfo.vue
@@ -211,13 +211,11 @@
this.onLoad(this.page, this.query)
},
onLoad (page, params = {}) {
- console.log(params)
this.loading = true
var datas = this.$route.query.id
params.landId = datas
params['tenantId'] = this.userInfo.tenant_id
params['farmId'] = this.$farmId
- console.log(params)
if (this.landId) {
params['landId'] = this.landId
}
diff --git a/src/views/land/LandDetail.vue b/src/views/land/LandDetail.vue
index c33c5e9..170a4df 100644
--- a/src/views/land/LandDetail.vue
+++ b/src/views/land/LandDetail.vue
@@ -230,8 +230,8 @@
this.landUnit = this.$route.query.landUnit
// this.form = res.data.data;
this.usePolygons = this.$route.query.landRange
- .split("POLYGON((")[1]
- .split("))")[0]
+ // .split("POLYGON((")[1]
+ // .split("))")[0]
.split(",")
}
}
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