From 79807c2f6db3a0832e35ab78263ee5817b4e4405 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Wed, 6 Dec 2023 19:09:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=86=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/api/application.ts | 26 ++++--- ui/src/api/dataset.ts | 24 +++--- ui/src/styles/app.scss | 9 ++- ui/src/views/application/index.vue | 65 ++++++++++------ ui/src/views/dataset/index.vue | 117 ++++++++++++++++------------- ui/src/views/paragraph/index.vue | 15 ++-- 6 files changed, 153 insertions(+), 103 deletions(-) diff --git a/ui/src/api/application.ts b/ui/src/api/application.ts index cf4a299c9..9569cd119 100644 --- a/ui/src/api/application.ts +++ b/ui/src/api/application.ts @@ -16,17 +16,20 @@ const getAllAppilcation: () => Promise> = () => { /** * 获取分页应用 - * @param 参数 { - "current_page": "string", - "page_size": "string", - "name": "string", - } + * page { + "current_page": "string", + "page_size": "string", + } + * param { + "name": "string", + } */ -const getApplication: (param: pageRequest) => Promise> = (param) => { - return get( - `${prefix}/${param.current_page}/${param.page_size}`, - param.name && { name: param.name } - ) +const getApplication: ( + page: pageRequest, + param: any, + loading?: Ref +) => Promise> = (page, param, loading) => { + return get(`${prefix}/${page.current_page}/${page.page_size}`, param, loading) } /** @@ -221,7 +224,6 @@ const putChatVote: ( ) } - export default { getAllAppilcation, getApplication, @@ -237,5 +239,5 @@ export default { getAccessToken, postAppAuthentication, getProfile, - putChatVote, + putChatVote } diff --git a/ui/src/api/dataset.ts b/ui/src/api/dataset.ts index 11f5ca543..e2d1ba4f1 100644 --- a/ui/src/api/dataset.ts +++ b/ui/src/api/dataset.ts @@ -8,17 +8,21 @@ const prefix = '/dataset' /** * 获取分页数据集 - * @param 参数 { - "current_page": "string", - "page_size": "string", - "name": "string", - } + * @param 参数 + * page { + "current_page": "string", + "page_size": "string", + } + * param { + "name": "string", + } */ -const getDateset: (param: pageRequest) => Promise> = (param) => { - return get( - `${prefix}/${param.current_page}/${param.page_size}`, - param.name && { name: param.name } - ) +const getDateset: ( + page: pageRequest, + param: any, + loading?: Ref +) => Promise> = (page, param, loading) => { + return get(`${prefix}/${page.current_page}/${page.page_size}`, param, loading) } /** diff --git a/ui/src/styles/app.scss b/ui/src/styles/app.scss index 7acd4d79e..b8b3ee61a 100644 --- a/ui/src/styles/app.scss +++ b/ui/src/styles/app.scss @@ -421,10 +421,15 @@ h4 { } } - .file-List-card { border-radius: 4px; .el-card__body { padding: 8px 16px 8px 12px; } -} \ No newline at end of file +} + +.custom-divider { + .el-divider__text { + background: var(--app-layout-bg-color); + } +} diff --git a/ui/src/views/application/index.vue b/ui/src/views/application/index.vue index d60dd915b..e9476d3c0 100644 --- a/ui/src/views/application/index.vue +++ b/ui/src/views/application/index.vue @@ -3,14 +3,14 @@

应用

-
+
+
+ + 加载中... + + + 到底啦! + +