From fc2d5fb95135ce7adf01469d105302007826fb2b Mon Sep 17 00:00:00 2001 From: 18278715334 <18278715334@163.com> Date: Mon, 8 Dec 2025 16:09:00 +0800 Subject: [PATCH] 1111 --- components.d.ts | 1 + src/components/common/DanmakuBar.vue | 380 ++++++++++++ .../admin/statistics/SystemStatisticsPage.vue | 547 +----------------- 3 files changed, 386 insertions(+), 542 deletions(-) create mode 100644 src/components/common/DanmakuBar.vue diff --git a/components.d.ts b/components.d.ts index c59e07a..8e791bb 100644 --- a/components.d.ts +++ b/components.d.ts @@ -18,6 +18,7 @@ declare module 'vue' { ChartCard: typeof import('./src/components/statistics/ChartCard.vue')['default'] CodeDisplay: typeof import('./src/components/common/CodeDisplay.vue')['default'] CustomSteps: typeof import('./src/components/common/CustomSteps.vue')['default'] + DanmakuBar: typeof import('./src/components/common/DanmakuBar.vue')['default'] ElAlert: typeof import('element-plus/es')['ElAlert'] ElAside: typeof import('element-plus/es')['ElAside'] ElAvatar: typeof import('element-plus/es')['ElAvatar'] diff --git a/src/components/common/DanmakuBar.vue b/src/components/common/DanmakuBar.vue new file mode 100644 index 0000000..37d0ea9 --- /dev/null +++ b/src/components/common/DanmakuBar.vue @@ -0,0 +1,380 @@ + + + + + + diff --git a/src/pages/admin/statistics/SystemStatisticsPage.vue b/src/pages/admin/statistics/SystemStatisticsPage.vue index 5083086..8b6f043 100644 --- a/src/pages/admin/statistics/SystemStatisticsPage.vue +++ b/src/pages/admin/statistics/SystemStatisticsPage.vue @@ -102,69 +102,16 @@ -
+
- -
-
-
-
-
- - - -
-

实时API调用动态

-
-
- 实时更新 · 最多显示100条 -
-
- - -
- -
-
- - - -

正在加载数据...

-
-
- - -
-
-
- {{ getUsernameInitial(item.username) }} -
- {{ item.username }} - · - {{ item.apiName }} - · - 第{{ item.callCount || 1 }}次 - · - {{ formatRelativeTime(item.createdAt) }} -
-
-
-
+ +
+
@@ -523,7 +470,6 @@