From 2422d35a957bffd42cb5c1223930bf836d849054 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Tue, 5 Dec 2023 11:36:11 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=E5=AF=B9=E8=AF=9D=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/api/application.ts | 16 +++- ui/src/components/app-table/index.vue | 14 ++- ui/src/views/application/AppOverview.vue | 56 ++++++------ ui/src/views/application/DialogLog.vue | 109 ++++++++++++++++++++++- ui/src/views/document/index.vue | 8 -- 5 files changed, 159 insertions(+), 44 deletions(-) diff --git a/ui/src/api/application.ts b/ui/src/api/application.ts index 99b6ed742..93599769f 100644 --- a/ui/src/api/application.ts +++ b/ui/src/api/application.ts @@ -221,6 +221,19 @@ const putChatVote: ( ) } +/** + * 对话日志 + * @param 参数 + * application_id, history_day +} + */ +const getChatLog: ( + applicaiton_id: String, + history_day: number, + loading?: Ref +) => Promise> = (applicaiton_id, history_day, loading) => { + return get(`${prefix}/${applicaiton_id}/chat`, { history_day }, loading) +} export default { getAllAppilcation, getApplication, @@ -236,5 +249,6 @@ export default { getAccessToken, postAppAuthentication, getProfile, - putChatVote + putChatVote, + getChatLog } diff --git a/ui/src/components/app-table/index.vue b/ui/src/components/app-table/index.vue index 6a4506ce5..5d9a137cf 100644 --- a/ui/src/components/app-table/index.vue +++ b/ui/src/components/app-table/index.vue @@ -1,6 +1,6 @@