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 }}% + + + + + + + + + +