|
|
|
|
@ -327,11 +327,10 @@ |
|
|
|
|
@mouseenter="showTooltip($event, task, order.woCode)" |
|
|
|
|
@mouseleave="hideTooltip()" |
|
|
|
|
> |
|
|
|
|
<div class="task-icon" v-if="task.remindStatus=='2'||task.remindStatus=='1'"> |
|
|
|
|
<!-- <div class="task-icon" v-if="task.remindStatus=='2'||task.remindStatus=='1'"> |
|
|
|
|
<el-icon v-if="task.remindStatus == '2'" class="task-icon-red"><WarningFilled /></el-icon> |
|
|
|
|
<!--<el-icon><WarningFilled /></el-icon> --> |
|
|
|
|
<el-icon v-else-if="task.remindStatus == '1'" class="task-icon-yellow"><WarningFilled /></el-icon> |
|
|
|
|
</div> |
|
|
|
|
</div> --> |
|
|
|
|
<div |
|
|
|
|
class="task-text-wrapper" |
|
|
|
|
:class="{ |
|
|
|
|
@ -1339,6 +1338,15 @@ export default { |
|
|
|
|
}, |
|
|
|
|
// 任务 样式计算 |
|
|
|
|
getStatusColor(row) { |
|
|
|
|
if (row.planStatus === '1') { |
|
|
|
|
if (row.remindStatus === '1') { |
|
|
|
|
return '#FFD700'; // 黄色(可自定义) |
|
|
|
|
} else if (row.remindStatus === '2') { |
|
|
|
|
return '#dc3545'; // 红色(与返工状态一致,或自定义) |
|
|
|
|
} |
|
|
|
|
// 如果没有 remindStatus,默认保持原灰色 |
|
|
|
|
return '#6c757d'; |
|
|
|
|
} |
|
|
|
|
switch (row.planStatus) { |
|
|
|
|
case '5': |
|
|
|
|
return '#007bff'; |
|
|
|
|
@ -1347,8 +1355,6 @@ export default { |
|
|
|
|
return '#28a745'; |
|
|
|
|
case '6': |
|
|
|
|
return '#dc3545'; |
|
|
|
|
case '1': |
|
|
|
|
return '#6c757d'; |
|
|
|
|
default: |
|
|
|
|
return '#ccc'; |
|
|
|
|
} |
|
|
|
|
|