From 4ad2d1657d243a1a8eb4e48d15cafceeca0e7488 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Thu, 26 Oct 2023 18:37:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=95=B0=E6=8D=AE=E9=9B=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/api/dataset.ts | 12 +++- ui/src/components/card-box/index.vue | 12 +--- .../components/top-bar/top-menu/index.vue | 3 +- ui/src/styles/app.scss | 32 +++++++++- ui/src/styles/element-plus.scss | 58 ++++++++++++++++++ ui/src/utils/message.ts | 25 ++++++-- ui/src/views/dataset/index.vue | 34 +++++++++-- ui/src/views/login/forgot-password/index.vue | 2 +- ui/src/views/login/register/index.vue | 2 +- ui/src/views/login/reset-password/index.vue | 2 +- ui/src/views/setting/index.vue | 60 +++++++++++-------- 11 files changed, 190 insertions(+), 52 deletions(-) diff --git a/ui/src/api/dataset.ts b/ui/src/api/dataset.ts index aaba9eb48..ef5f09fb1 100644 --- a/ui/src/api/dataset.ts +++ b/ui/src/api/dataset.ts @@ -24,7 +24,17 @@ const getAllDateset: (param?: String) => Promise> = (param) => { return get(`${prefix}`, param && { search_text: param }) } +/** + * 删除数据集 + * @param 参数 dataset_id + */ +const delDateset: (dataset_id: String) => Promise> = (dataset_id) => { + return del(`${prefix}/${dataset_id}`) +} + + export default { getDateset, - getAllDateset + getAllDateset, + delDateset } diff --git a/ui/src/components/card-box/index.vue b/ui/src/components/card-box/index.vue index e5fc5fb1f..902ad7b03 100644 --- a/ui/src/components/card-box/index.vue +++ b/ui/src/components/card-box/index.vue @@ -2,11 +2,11 @@
-
+
-

{{ title }}

+

{{ title }}

@@ -50,14 +50,6 @@ function cardLeave() { position: relative; min-height: 150px; - .card-header { - .title { - align-items: center; - h3 { - font-size: 15px; - } - } - } .description { display: -webkit-box; -webkit-box-orient: vertical; diff --git a/ui/src/layout/components/top-bar/top-menu/index.vue b/ui/src/layout/components/top-bar/top-menu/index.vue index 70ce72471..7b7e742d4 100644 --- a/ui/src/layout/components/top-bar/top-menu/index.vue +++ b/ui/src/layout/components/top-bar/top-menu/index.vue @@ -1,5 +1,5 @@