From d652ad1cc43d54b4ca3e28359edc38db3d57a888 Mon Sep 17 00:00:00 2001 From: 17792275749 <812100002@qq.com> Date: Thu, 5 Feb 2026 10:48:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E5=B0=8F=E6=95=B0=E4=B8=A4?= =?UTF-8?q?=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mealSurplusInformation/mealSurplusInformation.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/mealSurplusInformation/mealSurplusInformation.vue b/src/views/mealSurplusInformation/mealSurplusInformation.vue index b6ed2a6..d2ceadb 100644 --- a/src/views/mealSurplusInformation/mealSurplusInformation.vue +++ b/src/views/mealSurplusInformation/mealSurplusInformation.vue @@ -18,7 +18,7 @@ kg @@ -177,7 +177,7 @@ export default { if (item.marginWeight < item.dangerWeight) { item.class = "danger"; } - item.marginWeight_kg = item.marginWeight / 1000; + item.marginWeight_kg = Math.round(item.marginWeight / 10) / 100; item.progress = (1 - item.marginWeight / item.foodWeight) * 100 + '%'; }); this.nutritionFoodList = res.data.nutritionFoodList; @@ -187,7 +187,7 @@ export default { } if (res.data.recipeFoodProducedList && res.data.recipeFoodProducedList.length) { res.data.recipeFoodProducedList.map(item => { - item.foodWeight_kg = item.foodWeight / 1000; + item.foodWeight_kg = Math.round(item.foodWeight / 10) / 100; }); this.recipeFoodProducedList = res.data.recipeFoodProducedList; }