From 77869921c09561ba3e1f7eb89810ab018681c37d Mon Sep 17 00:00:00 2001
From: zxx <47968546@163.com>
Date: Mon, 23 Oct 2023 17:26:43 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=A7=A6=E6=91=B8=E5=B1=8F?=
=?UTF-8?q?=E7=9A=84=E7=99=BE=E5=88=86=E6=AF=94=E6=98=BE=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/Middle/Mold/Touch/Reporting.vue | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/src/pages/Middle/Mold/Touch/Reporting.vue b/src/pages/Middle/Mold/Touch/Reporting.vue
index e1bc3f8..b352b92 100644
--- a/src/pages/Middle/Mold/Touch/Reporting.vue
+++ b/src/pages/Middle/Mold/Touch/Reporting.vue
@@ -51,7 +51,7 @@
style="width:50px;height:50px;margin-right: 10px;" :src="item.component_detail.image" />
-
+
@@ -103,7 +103,7 @@
style="width:50px;height:50px;margin-right: 10px;" :src="ditem.component_img" />
-
+
@@ -925,7 +925,17 @@ export default {
},
-
+ // 将进度百分比取小数点后两位
+ formatProgress(progress) {
+ // 判断如果大于5个字符串,就截取前6个字符串
+ if (progress.length > 5) {
+ progress = progress.substring(0, 6);
+ // 将百分比转换为小数点后两位
+ progress = parseFloat(progress).toFixed(2);
+ }
+ return progress;
+
+ },
},
// 监听属性