diff --git a/components/ContentDashboard.vue b/components/ContentDashboard.vue index fc60308..564fea5 100644 --- a/components/ContentDashboard.vue +++ b/components/ContentDashboard.vue @@ -5,23 +5,47 @@ {{ item.count }} - {{ item.label }} + + {{ item.label }} + + + - 逾期 + + + - {{ task.date }} + + {{ task.date }} + 所属项目: {{ task.project }} {{ task.description }} - 负责人: {{ task.owner }} - 发布时间: {{ task.releaseTime }} + + 负责人: {{ task.owner }} + 发布时间: {{ task.releaseTime }} + - + 立即处理 @@ -56,7 +80,16 @@ {{ status.count }} - {{ status.label }} + + {{ status.label }} + + @@ -70,7 +103,16 @@ {{ status.count }} - {{ status.label }} + + {{ status.label }} + + @@ -161,6 +203,50 @@ const viewAnnouncement = (announcement) => { icon: 'none' }); }; + +// 获取项目状态标签类型 +const getProjectStatusType = (label) => { + const typeMap = { + '运行中': 'success', + '运维中': 'primary', + '即将到期': 'warning', + '开发超期': 'error' + }; + return typeMap[label] || 'primary'; +}; + +// 获取项目状态标签文本 +const getProjectStatusTag = (label) => { + const tagMap = { + '运行中': '正常', + '运维中': '进行中', + '即将到期': '待处理', + '开发超期': '超期' + }; + return tagMap[label] || ''; +}; + +// 获取客户状态标签类型 +const getCustomerStatusType = (label) => { + const typeMap = { + '今日新增': 'success', + '今日已跟进': 'primary', + '今日待跟进': 'warning', + '即将跟进': 'info' + }; + return typeMap[label] || 'primary'; +}; + +// 获取客户状态标签文本 +const getCustomerStatusTag = (label) => { + const tagMap = { + '今日新增': '新增', + '今日已跟进': '已完成', + '今日待跟进': '待处理', + '即将跟进': '即将' + }; + return tagMap[label] || ''; +};