From 2a9b1bb335acdea25b8fdc89634229ab6ecc09fe Mon Sep 17 00:00:00 2001 From: HakunaMatata078 <920208516@qq.com> Date: Tue, 13 Jan 2026 03:47:19 -0800 Subject: [PATCH] =?UTF-8?q?[Feature]=20=E6=96=B0=E5=A2=9E=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/nestJs/locales.json | 18 +++ template/nestJs/src/menu/init/menuData.ts | 27 +++++ .../src/main/resources/MenuData.json | 27 +++++ .../src/main/resources/locales.json | 18 +++ .../src/assets/images/load-failure.svg | 23 ++++ .../src/assets/images/no-search-results.svg | 25 ++++ .../tinyvue/src/assets/images/system-busy.svg | 107 ++++++++++++++++++ template/tinyvue/src/locales.json | 18 +++ .../src/router/routes/modules/exception.ts | 36 ++++++ .../views/exception/load-failure/index.vue | 19 ++++ .../exception/no-search-results/index.vue | 19 ++++ .../src/views/exception/system-busy/index.vue | 19 ++++ 12 files changed, 356 insertions(+) create mode 100644 template/tinyvue/src/assets/images/load-failure.svg create mode 100644 template/tinyvue/src/assets/images/no-search-results.svg create mode 100644 template/tinyvue/src/assets/images/system-busy.svg create mode 100644 template/tinyvue/src/views/exception/load-failure/index.vue create mode 100644 template/tinyvue/src/views/exception/no-search-results/index.vue create mode 100644 template/tinyvue/src/views/exception/system-busy/index.vue diff --git a/template/nestJs/locales.json b/template/nestJs/locales.json index 52ca77c2..bbd123fa 100644 --- a/template/nestJs/locales.json +++ b/template/nestJs/locales.json @@ -327,6 +327,15 @@ "exception.result.permissions.404": "Check the network connection and try to refresh the page.", "menu.exception.500": "500", "exception.result.500.description": "Internal server error", + "menu.exception.system-busy": "System Busy", + "exception.result.systemBusy.description": "The system is busy. Please try again later", + "exception.result.permissions.system-busy": "There are too many people. Just wait a little longer", + "menu.exception.load-failure": "Loading failed", + "exception.result.load-failure.description": "The system is busy. Please try again later", + "exception.result.permissions.load-failure": "The system is busy. Try again later", + "menu.exception.no-search-results": "No Sarch Results", + "exception.result.no-search-results.description": "There are no search results yet. Please try again later", + "exception.result.permissions.no-search-results": "I can't find any results for now. I'll try again later", "exception.result.500.back": "Back", "exception.result.permissions.500": "Check the network connection and try to refresh the page.", "menu.user.info": "User Center", @@ -1005,6 +1014,15 @@ "exception.result.500.description": "抱歉,服务器出了点问题~", "exception.result.500.back": "返回", "exception.result.permissions.500": "请查看网络连接情况,尝试刷新页面", + "menu.exception.system-busy": "系统繁忙", + "exception.result.systemBusy.description": "系统繁忙,请稍后再试", + "exception.result.permissions.system-busy": "人太多啦,再等等", + "menu.exception.load-failure": "加载失败", + "exception.result.load-failure.description": "加载失败,请稍后再试", + "exception.result.permissions.load-failure": "系统繁忙,稍后再试", + "menu.exception.no-search-results": "暂无搜索结果", + "exception.result.no-search-results.description": "暂无搜索结果,请稍后再试", + "exception.result.permissions.no-search-results": "暂时搜索不到结果,稍后再试", "menu.user.info": "用户中心", "userInfo.tab.one": "我的计划", "userInfo.tab.two": "我的任务", diff --git a/template/nestJs/src/menu/init/menuData.ts b/template/nestJs/src/menu/init/menuData.ts index 5b1a40e6..1267363d 100644 --- a/template/nestJs/src/menu/init/menuData.ts +++ b/template/nestJs/src/menu/init/menuData.ts @@ -169,6 +169,33 @@ export const menuData = [ path: '500', locale: 'menu.exception.500', }, + { + name: '系统繁忙', + order: 1, + menuType: 'normal', + icon: '', + component: 'exception/system-busy/index', + path: 'system-busy', + locale: 'menu.exception.system-busy', + }, + { + name: '加载失败', + order: 1, + menuType: 'normal', + icon: '', + component: 'exception/load-failure/index', + path: 'load-failure', + locale: 'menu.exception.load-failure', + }, + { + name: '暂无搜索结果', + order: 1, + menuType: 'normal', + icon: '', + component: 'exception/no-search-results/index', + path: 'no-search-results', + locale: 'menu.exception.no-search-results', + }, { name: 'User', order: 7, diff --git a/template/springboot/src/main/resources/MenuData.json b/template/springboot/src/main/resources/MenuData.json index bd8345e9..fbaa9b21 100644 --- a/template/springboot/src/main/resources/MenuData.json +++ b/template/springboot/src/main/resources/MenuData.json @@ -171,6 +171,33 @@ "component": "exception/500/index", "path": "500", "locale": "menu.exception.500" + }, + { + "name": "系统繁忙", + "order": 1, + "menuType": "normal", + "icon": "", + "component": "exception/system-busy/index", + "path": "system-busy", + "locale": "menu.exception.system-busy" + }, + { + "name": "加载失败", + "order": 1, + "menuType": "normal", + "icon": "", + "component": "exception/load-failure/index", + "path": "load-failure", + "locale": "menu.exception.load-failure" + }, + { + "name": "暂无搜索结果", + "order": 1, + "menuType": "normal", + "icon": "", + "component": "exception/no-search-results/index", + "path": "no-search-results", + "locale": "menu.exception.no-search-results" } ] }, diff --git a/template/springboot/src/main/resources/locales.json b/template/springboot/src/main/resources/locales.json index 9056881d..937120e3 100644 --- a/template/springboot/src/main/resources/locales.json +++ b/template/springboot/src/main/resources/locales.json @@ -294,6 +294,15 @@ "exception.result.permissions.404": "Check the network connection and try to refresh the page.", "menu.exception.500": "500", "exception.result.500.description": "Internal server error", + "menu.exception.system-busy": "System Busy", + "exception.result.systemBusy.description": "The system is busy. Please try again later", + "exception.result.permissions.system-busy": "There are too many people. Just wait a little longer", + "menu.exception.load-failure": "Loading failed", + "exception.result.load-failure.description": "The system is busy. Please try again later", + "exception.result.permissions.load-failure": "The system is busy. Try again later", + "menu.exception.no-search-results": "No Sarch Results", + "exception.result.no-search-results.description": "There are no search results yet. Please try again later", + "exception.result.permissions.no-search-results": "I can't find any results for now. I'll try again later", "exception.result.500.back": "Back", "exception.result.permissions.500": "Check the network connection and try to refresh the page.", "menu.user.info": "User Center", @@ -937,6 +946,15 @@ "exception.result.permissions.404": "请查看网络连接情况,尝试刷新页面", "menu.exception.500": "500", "exception.result.500.description": "抱歉,服务器出了点问题~", + "menu.exception.system-busy": "系统繁忙", + "exception.result.systemBusy.d escription": "系统繁忙,请稍后再试", + "exception.result.permissions.system-busy": "人太多啦,再等等", + "menu.exception.load-failure": "加载失败", + "exception.result.load-failure.description": "加载失败,请稍后再试", + "exception.result.permissions.load-failure": "系统繁忙,稍后再试", + "menu.exception.no-search-results": "暂无搜索结果", + "exception.result.no-search-results.description": "暂无搜索结果,请稍后再试", + "exception.result.permissions.no-search-results": "暂时搜索不到结果,稍后再试", "exception.result.500.back": "返回", "exception.result.permissions.500": "请查看网络连接情况,尝试刷新页面", "menu.user.info": "用户中心", diff --git a/template/tinyvue/src/assets/images/load-failure.svg b/template/tinyvue/src/assets/images/load-failure.svg new file mode 100644 index 00000000..f207617b --- /dev/null +++ b/template/tinyvue/src/assets/images/load-failure.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/template/tinyvue/src/assets/images/no-search-results.svg b/template/tinyvue/src/assets/images/no-search-results.svg new file mode 100644 index 00000000..7343d081 --- /dev/null +++ b/template/tinyvue/src/assets/images/no-search-results.svg @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/template/tinyvue/src/assets/images/system-busy.svg b/template/tinyvue/src/assets/images/system-busy.svg new file mode 100644 index 00000000..ac2867e5 --- /dev/null +++ b/template/tinyvue/src/assets/images/system-busy.svg @@ -0,0 +1,107 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/template/tinyvue/src/locales.json b/template/tinyvue/src/locales.json index 79f46c31..284110e9 100644 --- a/template/tinyvue/src/locales.json +++ b/template/tinyvue/src/locales.json @@ -324,6 +324,15 @@ "exception.result.permissions.404": "Check the network connection and try to refresh the page.", "menu.exception.500": "500", "exception.result.500.description": "Internal server error", + "menu.exception.system-busy": "System Busy", + "exception.result.systemBusy.description": "The system is busy. Please try again later", + "exception.result.permissions.system-busy": "There are too many people. Just wait a little longer", + "menu.exception.load-failure": "Loading failed", + "exception.result.load-failure.description": "The system is busy. Please try again later", + "exception.result.permissions.load-failure": "The system is busy. Try again later", + "menu.exception.no-search-results": "No Sarch Results", + "exception.result.no-search-results.description": "There are no search results yet. Please try again later", + "exception.result.permissions.no-search-results": "I can't find any results for now. I'll try again later", "exception.result.500.back": "Back", "exception.result.permissions.500": "Check the network connection and try to refresh the page.", "menu.user.info": "User Center", @@ -943,6 +952,15 @@ "exception.result.permissions.404": "请查看网络连接情况,尝试刷新页面", "menu.exception.500": "500", "exception.result.500.description": "抱歉,服务器出了点问题~", + "menu.exception.system-busy": "系统繁忙", + "exception.result.systemBusy.description": "系统繁忙,请稍后再试", + "exception.result.permissions.system-busy": "人太多啦,再等等", + "menu.exception.load-failure": "加载失败", + "exception.result.load-failure.description": "加载失败,请稍后再试", + "exception.result.permissions.load-failure": "系统繁忙,稍后再试", + "menu.exception.no-search-results": "暂无搜索结果", + "exception.result.no-search-results.description": "暂无搜索结果,请稍后再试", + "exception.result.permissions.no-search-results": "暂时搜索不到结果,稍后再试", "exception.result.500.back": "返回", "exception.result.permissions.500": "请查看网络连接情况,尝试刷新页面", "menu.user.info": "用户中心", diff --git a/template/tinyvue/src/router/routes/modules/exception.ts b/template/tinyvue/src/router/routes/modules/exception.ts index 1ad49659..c7ab8f8f 100644 --- a/template/tinyvue/src/router/routes/modules/exception.ts +++ b/template/tinyvue/src/router/routes/modules/exception.ts @@ -49,5 +49,41 @@ export default { roles: [RoleType.admin, RoleType.user], }, }, + { + path: 'system-busy', + name: '系统繁忙', + id: 'system-busy', + label: '系统繁忙', + component: () => import('@/views/exception/system-busy/index.vue'), + meta: { + locale: 'menu.exception.system-busy', + requiresAuth: true, + roles: [RoleType.admin, RoleType.user], + }, + }, + { + path: 'load-failure', + name: '加载失败', + id: 'load-failure', + label: '加载失败', + component: () => import('@/views/exception/load-failure/index.vue'), + meta: { + locale: 'menu.exception.load-failure', + requiresAuth: true, + roles: [RoleType.admin, RoleType.user], + }, + }, + { + path: 'no-search-results', + name: '暂无搜索结果', + id: 'no-search-results', + label: '暂无搜索结果', + component: () => import('@/views/exception/no-search-results/index.vue'), + meta: { + locale: 'menu.exception.no-search-results', + requiresAuth: true, + roles: [RoleType.admin, RoleType.user], + }, + }, ], }; diff --git a/template/tinyvue/src/views/exception/load-failure/index.vue b/template/tinyvue/src/views/exception/load-failure/index.vue new file mode 100644 index 00000000..3b038a40 --- /dev/null +++ b/template/tinyvue/src/views/exception/load-failure/index.vue @@ -0,0 +1,19 @@ + + + + + diff --git a/template/tinyvue/src/views/exception/no-search-results/index.vue b/template/tinyvue/src/views/exception/no-search-results/index.vue new file mode 100644 index 00000000..a8b77ddf --- /dev/null +++ b/template/tinyvue/src/views/exception/no-search-results/index.vue @@ -0,0 +1,19 @@ + + + + + diff --git a/template/tinyvue/src/views/exception/system-busy/index.vue b/template/tinyvue/src/views/exception/system-busy/index.vue new file mode 100644 index 00000000..23fe3fd2 --- /dev/null +++ b/template/tinyvue/src/views/exception/system-busy/index.vue @@ -0,0 +1,19 @@ + + + + +