diff --git a/src/views/productionSchedulingPlan/schedulingDashboard/container.vue b/src/views/productionSchedulingPlan/schedulingDashboard/container.vue index 8eb6c68..67d8da5 100644 --- a/src/views/productionSchedulingPlan/schedulingDashboard/container.vue +++ b/src/views/productionSchedulingPlan/schedulingDashboard/container.vue @@ -1328,15 +1328,18 @@ export default { }, // 任务 样式计算 getStatusColor(row) { - if (row.remindStatus == '1') { - return '#FFD700'; // 黄色(可自定义) - } else if (row.remindStatus == '2') { - return '#dc3545'; // 红色(与返工状态一致,或自定义) + if (row.planStatus == '1') { + if (row.remindStatus == '1') { + return '#FFD700'; // 黄色(可自定义) + } else if (row.remindStatus == '2') { + return '#dc3545'; // 红色(与返工状态一致,或自定义) + } + return '#6c757d'; } + // case '1': + // return '#6c757d'; switch (row.planStatus) { - case '1': - return '#6c757d'; case '5': return '#007bff'; case '2':