diff --git a/ruoyi-ui/src/views/ccdiProject/components/ProjectTable.vue b/ruoyi-ui/src/views/ccdiProject/components/ProjectTable.vue index 5efe4ed..e9d79ac 100644 --- a/ruoyi-ui/src/views/ccdiProject/components/ProjectTable.vue +++ b/ruoyi-ui/src/views/ccdiProject/components/ProjectTable.vue @@ -47,9 +47,10 @@ align="center" > @@ -198,6 +199,15 @@ export default { return statusMap[status] || 'info' }, + getStatusColor(status) { + const colorMap = { + '0': '#1890ff', // 进行中 - 蓝色 + '1': '#52c41a', // 已完成 - 绿色 + '2': '#8c8c8c' // 已归档 - 灰色 + } + return colorMap[status] || '#8c8c8c' + }, + getWarningClass(row) { const total = row.highRiskCount + row.mediumRiskCount + row.lowRiskCount if (row.highRiskCount > 0) { @@ -309,6 +319,17 @@ export default { } } +.status-tag { + display: inline-flex; + align-items: center; + gap: 6px; + + .status-dot { + font-size: 10px; + line-height: 1; + } +} + .project-info-cell { padding: 8px 0; line-height: 1.5;