From 8dc426664fc061a4afbc11f31bbf597ec896067a Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Fri, 19 Jul 2024 14:58:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=A8=A1=E5=9E=8B=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=B8=8B=E8=BD=BDloading?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/components/loading/DownloadLoading.vue | 93 ++++++++++++++++++ ui/src/styles/app.scss | 11 +++ ui/src/styles/element-plus.scss | 2 +- ui/src/styles/variables.scss | 5 +- .../component/CreateApplicationDialog.vue | 5 +- .../dataset/component/CreateDatasetDialog.vue | 5 +- ui/src/views/template/component/ModelCard.vue | 95 +++++++++++-------- ui/src/views/user-manage/index.vue | 5 +- 8 files changed, 168 insertions(+), 53 deletions(-) create mode 100644 ui/src/components/loading/DownloadLoading.vue diff --git a/ui/src/components/loading/DownloadLoading.vue b/ui/src/components/loading/DownloadLoading.vue new file mode 100644 index 000000000..83332c8c5 --- /dev/null +++ b/ui/src/components/loading/DownloadLoading.vue @@ -0,0 +1,93 @@ + + + diff --git a/ui/src/styles/app.scss b/ui/src/styles/app.scss index dc2ad7803..d056bb12f 100644 --- a/ui/src/styles/app.scss +++ b/ui/src/styles/app.scss @@ -377,6 +377,11 @@ h5 { color: var(--el-color-primary); border: none; } +.danger-tag { + background: var(--tag-danger-bg); + color: #d03f3b; + border: none; +} .success-tag { background: var(--tag-success-bg); color: var(--el-color-success); @@ -388,6 +393,12 @@ h5 { border: none; } +.info-tag { + background: var(--app-text-color-light-1); + color: var(--app-text-color-secondary); + border: none; +} + .purple-tag { background: #f2ebfe; color: #7f3bf5; diff --git a/ui/src/styles/element-plus.scss b/ui/src/styles/element-plus.scss index feea925b9..83c7227cc 100644 --- a/ui/src/styles/element-plus.scss +++ b/ui/src/styles/element-plus.scss @@ -1,5 +1,5 @@ :root { - --el-color-primary: #3370FF; + --el-color-primary: #3370ff; --el-menu-item-height: 45px; --el-box-shadow-light: 0px 2px 4px 0px rgba(31, 35, 41, 0.12); --el-border-color: #dee0e3; diff --git a/ui/src/styles/variables.scss b/ui/src/styles/variables.scss index 5fdad42fe..dfa649771 100644 --- a/ui/src/styles/variables.scss +++ b/ui/src/styles/variables.scss @@ -14,8 +14,8 @@ --app-header-height: 56px; --app-header-padding: 0 20px; --app-header-bg-color: linear-gradient(90deg, #ebf1ff 24.34%, #e5fbf8 56.18%, #f2ebfe 90.18%); - --app-logo-color: linear-gradient(180deg, #3370FF 0%, #7f3bf5 100%); - --app-avatar-gradient-color: linear-gradient(270deg, #9258f7 0%, #3370FF 100%); + --app-logo-color: linear-gradient(180deg, #3370ff 0%, #7f3bf5 100%); + --app-avatar-gradient-color: linear-gradient(270deg, #9258f7 0%, #3370ff 100%); /* 计算高度 */ --app-main-height: calc(100vh - var(--app-header-height) - var(--app-view-padding) * 2 - 40px); @@ -30,6 +30,7 @@ --tag-success-color: #2ca91f; --tag-warning-bg: rgba(255, 136, 0, 0.2); --tag-warning-color: #d97400; + --tag-danger-bg: rgba(245, 74, 69, 0.2); /** card */ --card-width: 330px; diff --git a/ui/src/views/application/component/CreateApplicationDialog.vue b/ui/src/views/application/component/CreateApplicationDialog.vue index b4a280bb6..35964e1fd 100644 --- a/ui/src/views/application/component/CreateApplicationDialog.vue +++ b/ui/src/views/application/component/CreateApplicationDialog.vue @@ -183,10 +183,7 @@ const submitValid = (formEl: FormInstance | undefined) => { if (res?.data) { submitHandle(formEl) } else { - MsgAlert( - '提示', - '社区版最多支持 5 个应用,如需拥有更多应用,请联系我们(https://fit2cloud.com/)。' - ) + MsgAlert('提示', '社区版最多支持 5 个应用,如需拥有更多应用,请升级为专业版。') } }) } diff --git a/ui/src/views/dataset/component/CreateDatasetDialog.vue b/ui/src/views/dataset/component/CreateDatasetDialog.vue index df47c9ff7..b958bd8f0 100644 --- a/ui/src/views/dataset/component/CreateDatasetDialog.vue +++ b/ui/src/views/dataset/component/CreateDatasetDialog.vue @@ -132,10 +132,7 @@ const submitValid = () => { if (res?.data) { submitHandle() } else { - MsgAlert( - '提示', - '社区版最多支持 50 个知识库,如需拥有更多知识库,请联系我们(https://fit2cloud.com/)。' - ) + MsgAlert('提示', '社区版最多支持 50 个知识库,如需拥有更多知识库,请升级为专业版。') } }) } diff --git a/ui/src/views/template/component/ModelCard.vue b/ui/src/views/template/component/ModelCard.vue index 1446031c3..380443e5f 100644 --- a/ui/src/views/template/component/ModelCard.vue +++ b/ui/src/views/template/component/ModelCard.vue @@ -3,9 +3,18 @@