From 3c8a1b135a578a7c6e26d9630d632e12d409d407 Mon Sep 17 00:00:00 2001
From: WindowBird <13870814+windows-bird@user.noreply.gitee.com>
Date: Wed, 5 Nov 2025 14:58:31 +0800
Subject: [PATCH] =?UTF-8?q?=E5=86=85=E5=AE=B9=E7=9C=8B=E6=9D=BFui=E4=BC=98?=
=?UTF-8?q?=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/ContentDashboard.vue | 192 ++++++++++++++++++++++++++------
1 file changed, 156 insertions(+), 36 deletions(-)
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.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] || '';
+};