From a3cdef0c7d646560d2fd4663b0da254d7d3e3345 Mon Sep 17 00:00:00 2001
From: CD配唱片 <CD配唱片>
Date: 星期一, 28 四月 2025 19:27:06 +0800
Subject: [PATCH] 提交负载统计产能负载字段最后一种情况判断
---
src/views/mainPlan/pipeProduceStatics/index.vue | 4 +++-
src/views/mainPlan/gasProduceStatics/index.vue | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/views/mainPlan/gasProduceStatics/index.vue b/src/views/mainPlan/gasProduceStatics/index.vue
index bfc98e5..e7a3224 100644
--- a/src/views/mainPlan/gasProduceStatics/index.vue
+++ b/src/views/mainPlan/gasProduceStatics/index.vue
@@ -302,7 +302,7 @@
? `<font color="red">${listItem.capacityLoad}%</font>`
: listItem.capacityLoad + "%";
*/
- if(capacityLoad>0&&capacityLoad<=100){
+ if(designTimes>0&&capacityLoad>0&&capacityLoad<=100){
return `<font color="#85cf60">${capacityLoad}%</font>`
}else if(designTimes>0&&capacityLoad>101&&capacityLoad<=120){
return `<font color="#ecb869">${capacityLoad}%</font>`
@@ -310,6 +310,8 @@
return `<font color="#f89c9c">${capacityLoad}%</font>`
}else if(designTimes==0&&requireTimes>0){
return `<font color="#f56c6c">error</font>`
+ }else{
+ return `${capacityLoad}%`
}
}
/** 瀵煎嚭鎸夐挳鎿嶄綔 */
diff --git a/src/views/mainPlan/pipeProduceStatics/index.vue b/src/views/mainPlan/pipeProduceStatics/index.vue
index 31e7473..2b6f346 100644
--- a/src/views/mainPlan/pipeProduceStatics/index.vue
+++ b/src/views/mainPlan/pipeProduceStatics/index.vue
@@ -317,7 +317,7 @@
? `<font color="red">${listItem.capacityLoad}%</font>`
: listItem.capacityLoad + "%";
*/
- if(capacityLoad>0&&capacityLoad<=100){
+ if(designTimes>0&&capacityLoad>0&&capacityLoad<=100){
return `<font color="#85cf60">${capacityLoad}%</font>`
}else if(designTimes>0&&capacityLoad>101&&capacityLoad<=120){
return `<font color="#ecb869">${capacityLoad}%</font>`
@@ -325,6 +325,8 @@
return `<font color="#f89c9c">${capacityLoad}%</font>`
}else if(designTimes==0&&requireTimes>0){
return `<font color="#f56c6c">error</font>`
+ }else{
+ return `${capacityLoad}%`
}
}
/** 瀵煎嚭鎸夐挳鎿嶄綔 */
--
Gitblit v1.9.3