diff --git a/components/ContentDashboard.vue b/components/ContentDashboard.vue index d8de55d..872fe96 100644 --- a/components/ContentDashboard.vue +++ b/components/ContentDashboard.vue @@ -3,7 +3,13 @@ - + {{ item.count }} {{ item.label }} @@ -29,22 +35,24 @@ - - - - - - - {{ task.date }} + + + + - 所属项目: {{ task.project }} - {{ task.description }} - - 负责人: {{ task.owner }} - 发布时间: {{ task.releaseTime }} + + {{ task.date }} - + + 所属项目: {{ task.project }} + {{ task.description }} + + 负责人: {{ task.owner }} + 发布时间: {{ task.releaseTime }} + + + 立即处理 @@ -61,7 +69,7 @@ 📢 公告事项 - + {{ announcement.title }} {{ announcement.description }} @@ -78,7 +86,12 @@ 项目状态 - + {{ status.count }} {{ status.label }} @@ -101,7 +114,12 @@ 客户状态 - + {{ status.count }} {{ status.label }} @@ -264,6 +282,39 @@ const getCustomerStatusTag = (label) => { }; return tagMap[label] || ''; }; + +// 获取任务卡片样式类 +const getTaskCardClass = (label) => { + const classMap = { + '完成任务': 'task-card-completed', + '待完成任务': 'task-card-pending', + '即将预期': 'task-card-imminent', + '逾期任务': 'task-card-overdue' + }; + return classMap[label] || ''; +}; + +// 获取项目状态卡片样式类 +const getProjectCardClass = (label) => { + const classMap = { + '运行中': 'status-card-success', + '运维中': 'status-card-primary', + '即将到期': 'status-card-warning', + '开发超期': 'status-card-error' + }; + return classMap[label] || ''; +}; + +// 获取客户状态卡片样式类 +const getCustomerCardClass = (label) => { + const classMap = { + '今日新增': 'status-card-success', + '今日已跟进': 'status-card-primary', + '今日待跟进': 'status-card-warning', + '即将跟进': 'status-card-info' + }; + return classMap[label] || ''; +};