施工管理支持已完成项目+修复状态显示逻辑

This commit is contained in:
a273825743
2026-05-17 01:24:37 +08:00
parent 86a4cc65ee
commit 9d8f741771
4 changed files with 22 additions and 8 deletions
@@ -50,12 +50,12 @@ const ConstructionOverview: React.FC = () => {
};
const getStatusColor = (status: string) => {
const map: Record<string, string> = { active: 'green', planning: 'blue', completed: 'default', suspended: 'orange' };
const map: Record<string, string> = { active: 'green', in_progress: 'processing', planning: 'blue', completed: 'default', suspended: 'orange' };
return map[status] || 'default';
};
const getStatusText = (status: string) => {
const map: Record<string, string> = { active: '施工中', planning: '待开工', completed: '已完工', suspended: '暂停' };
const map: Record<string, string> = { active: '施工中', in_progress: '施工中', planning: '待开工', completed: '已完工', suspended: '暂停' };
return map[status] || status;
};