From 6aa60cb512e24ff2617c77883991899f887232e0 Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Mon, 31 Mar 2025 19:06:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0dashboard=E5=9F=BA=E7=A1=80?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=B1=95=E7=A4=BA=EF=BC=8Cgen-chat=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=A8=A1=E5=9E=8B=E9=80=89=E6=8B=A9=E3=80=81=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E9=80=89=E6=8B=A9=EF=BC=8C=E5=8A=9F=E8=83=BD=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E4=BF=AE=E5=A4=8D=E6=A8=A1=E5=9E=8B=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/tool.ts | 14 ++++++ src/types/function.ts | 2 +- src/views/dashboard.vue | 55 ++++++++++++++++++----- src/views/system/gen-chat.vue | 12 ++++- src/views/system/manage-function.vue | 2 +- src/views/system/prompt-gen.vue | 67 ++++++++++++++++++++++++++-- src/views/system/reco-topic.vue | 39 ---------------- 7 files changed, 136 insertions(+), 55 deletions(-) diff --git a/src/api/tool.ts b/src/api/tool.ts index 2c34087..78b3ca9 100644 --- a/src/api/tool.ts +++ b/src/api/tool.ts @@ -45,4 +45,18 @@ export const GetFileInfoByMd5Service = (Data) => { 'token': Data.token, } }) +} + + +export const GetDashBoardStatisticsService = (Data) => { + const params = new URLSearchParams(); + for (let key in Data) { + params.append(key, Data[key]) + } + //let request1 = getRequest(); + return request.post('/tool/dashboard', params,{ + headers: { + 'token': Data.token, + } + }) } \ No newline at end of file diff --git a/src/types/function.ts b/src/types/function.ts index ca8f004..f609dad 100644 --- a/src/types/function.ts +++ b/src/types/function.ts @@ -7,6 +7,6 @@ export interface Function{ Info: string; UserID: number; ModelID: number | Object | Array; - ModelIDS: string| Object | Array; + ModelIDS: string| Object | Array | any; Function: string; } \ No newline at end of file diff --git a/src/views/dashboard.vue b/src/views/dashboard.vue index 1fcdc22..f7934f5 100644 --- a/src/views/dashboard.vue +++ b/src/views/dashboard.vue @@ -7,8 +7,8 @@
- -
用户访问量
+ +
用户总量
@@ -18,30 +18,30 @@
- -
系统消息
+ +
系统处理问答数
- +
- -
商品数量
+ +
系统总会话数
- +
- -
今日订单量
+ +
今日处理问答数
@@ -127,6 +127,7 @@