From 6fc0558f63ec2f49455af1a3b9f9e75f0935322d Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Tue, 17 Jun 2025 11:03:18 +0800 Subject: [PATCH] feat: tool --- .../icon_import_app.svg => icon_import.svg} | 0 ui/src/locales/lang/en-US/common.ts | 3 +- ui/src/locales/lang/zh-CN/common.ts | 3 +- ui/src/locales/lang/zh-Hant/common.ts | 3 +- ui/src/views/application/index.vue | 6 +- ui/src/views/tool/index.vue | 124 ++++++++++++++---- 6 files changed, 107 insertions(+), 32 deletions(-) rename ui/src/assets/{application/icon_import_app.svg => icon_import.svg} (100%) diff --git a/ui/src/assets/application/icon_import_app.svg b/ui/src/assets/icon_import.svg similarity index 100% rename from ui/src/assets/application/icon_import_app.svg rename to ui/src/assets/icon_import.svg diff --git a/ui/src/locales/lang/en-US/common.ts b/ui/src/locales/lang/en-US/common.ts index 41f923c6b..9ee3012df 100644 --- a/ui/src/locales/lang/en-US/common.ts +++ b/ui/src/locales/lang/en-US/common.ts @@ -84,5 +84,6 @@ export default { }, info: 'Base Information', otherSetting: 'Other Settings', - username: 'username' + username: 'username', + importCreate: 'Import Create', } diff --git a/ui/src/locales/lang/zh-CN/common.ts b/ui/src/locales/lang/zh-CN/common.ts index 0c2f55308..a9305c5be 100644 --- a/ui/src/locales/lang/zh-CN/common.ts +++ b/ui/src/locales/lang/zh-CN/common.ts @@ -88,5 +88,6 @@ export default { }, info: '基本信息', otherSetting: '其他设置', - username: '用户名' + username: '用户名', + importCreate: '导入创建', } diff --git a/ui/src/locales/lang/zh-Hant/common.ts b/ui/src/locales/lang/zh-Hant/common.ts index 143314b20..2f409a113 100644 --- a/ui/src/locales/lang/zh-Hant/common.ts +++ b/ui/src/locales/lang/zh-Hant/common.ts @@ -84,5 +84,6 @@ export default { }, info: '使用者資訊', otherSetting: '其他設定', - username: '用户名' + username: '用戶名', + importCreate: '導入創建', } diff --git a/ui/src/views/application/index.vue b/ui/src/views/application/index.vue index 69653fd03..9d921fce3 100644 --- a/ui/src/views/application/index.vue +++ b/ui/src/views/application/index.vue @@ -97,10 +97,10 @@ >
- +
-
{{ $t('views.application.importApplication') }}
+
{{ $t('common.importCreate') }}
@@ -344,7 +344,6 @@ function clickFolder(item: any) { getList() } - function getAccessToken(id: string) { applicationList.value .filter((app) => app.id === id)[0] @@ -456,6 +455,7 @@ const importApplication = (file: any) => { ApplicaitonApi.importApplication(formData, loading) .then(async (res: any) => { if (res?.data) { + applicationList.value = [] getList() } }) diff --git a/ui/src/views/tool/index.vue b/ui/src/views/tool/index.vue index 7f2d5e49b..f0f919d89 100644 --- a/ui/src/views/tool/index.vue +++ b/ui/src/views/tool/index.vue @@ -44,7 +44,59 @@ - {{ $t('common.create') }} + + + {{ $t('common.create') }} + + + + + + @@ -64,6 +116,7 @@ :title="item.name" :description="item.desc || $t('common.noData')" class="cursor" + @click="clickFolder(item)" >