From c299ff2e6a761f98797b983317768dec7ee1d0e9 Mon Sep 17 00:00:00 2001 From: Leo <98382335+gaoziman@users.noreply.github.com> Date: Tue, 23 Sep 2025 22:30:23 +0800 Subject: [PATCH] =?UTF-8?q?feat(components):=20=E6=96=B0=E5=A2=9E=E4=BB=AA?= =?UTF-8?q?=E8=A1=A8=E7=9B=98=E7=9B=91=E6=8E=A7=E7=BB=9F=E8=AE=A1=E5=8D=A1?= =?UTF-8?q?=E7=89=87=E5=92=8C=E5=9B=BE=E8=A1=A8=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../monitor/components/DashboardStatCard.vue | 283 ++++++ .../monitor/components/LoginTrendChart.vue | 906 ++++++++++++++++++ .../monitor/components/OperationPieChart.vue | 423 ++++++++ 3 files changed, 1612 insertions(+) create mode 100644 src/views/dashboard/monitor/components/DashboardStatCard.vue create mode 100644 src/views/dashboard/monitor/components/LoginTrendChart.vue create mode 100644 src/views/dashboard/monitor/components/OperationPieChart.vue diff --git a/src/views/dashboard/monitor/components/DashboardStatCard.vue b/src/views/dashboard/monitor/components/DashboardStatCard.vue new file mode 100644 index 0000000..8aef0b2 --- /dev/null +++ b/src/views/dashboard/monitor/components/DashboardStatCard.vue @@ -0,0 +1,283 @@ + + + + + + + + {{ title }} + + + + + + {{ subtitle }} + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/dashboard/monitor/components/LoginTrendChart.vue b/src/views/dashboard/monitor/components/LoginTrendChart.vue new file mode 100644 index 0000000..e72f7f9 --- /dev/null +++ b/src/views/dashboard/monitor/components/LoginTrendChart.vue @@ -0,0 +1,906 @@ + + + + + + + + + + + + + + + + + + 今日登录 + + + {{ todayCount.toLocaleString() }} + + + 实时数据 + + + + + + + + + + + + + + + + + + + + + + + + 昨日登录 + + + {{ yesterdayCount.toLocaleString() }} + + + 对比数据 + + + + + + + + + + + + + + + + + + + + 环比增长 + + + {{ growthRate }} + + + {{ growthClass.positive ? '持续上升' : '有所下降' }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ label.value }} + + + + + + + {{ label.value }} + + + + + + + + + + {{ tooltip.data?.label }} + + + + 登录次数: {{ tooltip.data?.count }} + + + + + + + + + + + + diff --git a/src/views/dashboard/monitor/components/OperationPieChart.vue b/src/views/dashboard/monitor/components/OperationPieChart.vue new file mode 100644 index 0000000..b7a872b --- /dev/null +++ b/src/views/dashboard/monitor/components/OperationPieChart.vue @@ -0,0 +1,423 @@ + + + + + + + + + + + + + + 总操作数 + + + {{ totalOperations.toLocaleString() }} + + + + + + + + + + {{ tooltip.type }} + + + 数量: {{ tooltip.count?.toLocaleString() }} + 占比: {{ tooltip.percentage }}% + + + + + + + + + + + + {{ item.type }} + + + {{ item.count.toLocaleString() }} + {{ item.percentage }}% + + + + + + + + + +