From f8c0e9b318d946439e9bd1584eae1fa932af6d96 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期五, 17 十一月 2023 16:32:38 +0800
Subject: [PATCH] 未生产中的完成进度显示0 因为plc 有数据 修改为可以显示数据

---
 src/views/dashboard/components/ProcessingInfo.vue |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/views/dashboard/components/ProcessingInfo.vue b/src/views/dashboard/components/ProcessingInfo.vue
index a466947..2e8154f 100644
--- a/src/views/dashboard/components/ProcessingInfo.vue
+++ b/src/views/dashboard/components/ProcessingInfo.vue
@@ -92,15 +92,14 @@
  * 璁$畻瀹屾垚杩涘害, 浠诲姟鐘舵�佹湭鐢熶骇鍥哄畾涓� 0% 宸插畬鎴愬浐瀹氫负 100% 鐢熶骇涓垯浠巔lc鑾峰彇
  */
 const processingPercent = computed(() => {
-  if (task?.value?.Procedure?.Status === 1) {
-    return 0
-  }
+  // if (task?.value?.Procedure?.Status === 1) {
+  //   return 0
+  // }
 
   if (task?.value?.Procedure?.Status === 3) {
     return 100
   }
-
-  if (task?.value?.Procedure?.Status === 2) {
+  if (task?.value?.Procedure?.Status === 2 || task?.value?.Procedure?.Status === 1) {
     return calculateProgress(plcStore.plcInfo as Statistics)
   }
 

--
Gitblit v1.8.0