diff --git a/src/assets/icons/ip.svg b/src/assets/icons/ip.svg index fd6108f8..087f3bbb 100644 --- a/src/assets/icons/ip.svg +++ b/src/assets/icons/ip.svg @@ -1 +1 @@ - + diff --git a/src/assets/icons/message.svg b/src/assets/icons/message.svg index c83af999..deacdc33 100644 --- a/src/assets/icons/message.svg +++ b/src/assets/icons/message.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/src/assets/icons/project.svg b/src/assets/icons/project.svg index e74a2102..eaf6a122 100644 --- a/src/assets/icons/project.svg +++ b/src/assets/icons/project.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/src/assets/icons/pv.svg b/src/assets/icons/pv.svg index 8b077897..cd7da060 100644 --- a/src/assets/icons/pv.svg +++ b/src/assets/icons/pv.svg @@ -1 +1 @@ - + diff --git a/src/assets/icons/todolist.svg b/src/assets/icons/todolist.svg index cd55ade7..f48e667b 100644 --- a/src/assets/icons/todolist.svg +++ b/src/assets/icons/todolist.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/src/assets/icons/visit.svg b/src/assets/icons/visit.svg index 997f6907..8e693ec4 100644 --- a/src/assets/icons/visit.svg +++ b/src/assets/icons/visit.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 93b12b7e..35ead2ee 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -62,8 +62,20 @@
-
- {{ Math.round(item.count) }} +
+ {{ Math.round(item.count) }} + + {{ Math.abs(item.growthRate * 100) }}% +
@@ -80,9 +92,24 @@ - + + + + + + +
+ + + +
+
+
+
@@ -184,6 +211,7 @@ interface CardProp { totalCount: any; dataDesc: string; iconClass: string; + growthRate?: number; } // 卡片数量 const cardData = ref([ @@ -204,6 +232,7 @@ const cardData = ref([ totalCount: 3000, dataDesc: "总浏览量", iconClass: "pv", + growthRate: 0.5, }, { title: "访客数(UV)", @@ -213,6 +242,7 @@ const cardData = ref([ totalCount: 3000, dataDesc: "总访客数", iconClass: "uv", + growthRate: -0.1, }, { title: "IP数", @@ -222,22 +252,34 @@ const cardData = ref([ totalCount: 3000, dataDesc: "总IP数", iconClass: "ip", + growthRate: 0.2, }, ]); -// 通知公告数据 const notices = ref([ { - title: "系统更新", - content: "系统将于今晚22:00进行更新,请提前保存好工作。", + title: "v2.12.0", + description: "新增系统日志,访问趋势统计等功能。", }, { - title: "假期通知", - content: "国庆假期将于10月1日开始,请提前做好工作安排。", + title: "v2.11.5", + description: "修复了一些问题,优化了一些代码。", }, { - title: "紧急通知", - content: "请所有员工注意,明天将进行紧急疏散演练。", + title: "v2.11.4", + description: "修复了一些问题,优化了一些代码。", + }, + { + title: "v2.11.3", + description: "修复了一些问题,优化了一些代码。", + }, + { + title: "v2.11.2", + description: "修复了一些问题,优化了一些代码。", + }, + { + title: "v2.11.1", + description: "修复了一些问题,优化了一些代码。", }, ]);