From 65d27fd191ee85c848c638951171e65dbfe788ca Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Thu, 7 Dec 2023 11:08:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=97=A5=E5=BF=97=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/api/log.ts | 17 ++++++++-- ui/src/views/application/AppOverview.vue | 10 ++---- ui/src/views/application/index.vue | 43 +++--------------------- ui/src/views/log/index.vue | 39 ++++++++++++++++----- 4 files changed, 53 insertions(+), 56 deletions(-) diff --git a/ui/src/api/log.ts b/ui/src/api/log.ts index 6ec65fea..0762a038 100644 --- a/ui/src/api/log.ts +++ b/ui/src/api/log.ts @@ -30,6 +30,19 @@ const getChatLog: ( ) } -export default { - getChatLog +/** + * 删除日志 + * @param 参数 applicaiton_id, chat_id, + */ +const delChatLog: ( + applicaiton_id: string, + chat_id: string, + loading?: Ref +) => Promise> = (applicaiton_id, chat_id, loading) => { + return del(`${prefix}/${applicaiton_id}/document/${chat_id}`, {}, loading) +} + +export default { + getChatLog, + delChatLog } diff --git a/ui/src/views/application/AppOverview.vue b/ui/src/views/application/AppOverview.vue index 336219cd..a11b607f 100644 --- a/ui/src/views/application/AppOverview.vue +++ b/ui/src/views/application/AppOverview.vue @@ -13,14 +13,10 @@ :size="32" />

{{ detail?.name }}

-
- 运行中 - 已停用 -
- - + +
公开访问链接 嵌入第三方
- +
API访问凭据 -
- 运行中 - 已停用 -
@@ -173,20 +154,6 @@ function deleteApplication(row: any) { .catch(() => {}) } -// function changeState(bool: Boolean, row: any) { -// const obj = { -// is_active: bool -// } -// loading.value = true -// applicationApi -// .asyncPutParagraph(id, documentId, row.id, obj) -// .then((res) => { -// loading.value = false -// }) -// .catch(() => { -// loading.value = false -// }) -// } function getList() { applicationApi diff --git a/ui/src/views/log/index.vue b/ui/src/views/log/index.vue index 1caf52ea..415603aa 100644 --- a/ui/src/views/log/index.vue +++ b/ui/src/views/log/index.vue @@ -31,12 +31,17 @@ @@ -49,7 +54,7 @@