From d84ebef239faedb4906d8bbf01b30448cae31093 Mon Sep 17 00:00:00 2001 From: opensnail <598092184@qq.com> Date: Sat, 27 Apr 2024 22:52:31 +0800 Subject: [PATCH] =?UTF-8?q?feat(sj=5F1.0.0):=20=E7=94=A8=E6=88=B7CRUD?= =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locales/langs/en-us.ts | 2 + src/locales/langs/zh-cn.ts | 2 + src/router/elegant/routes.ts | 17 ++- src/typings/api.d.ts | 2 +- src/typings/app.d.ts | 2 + src/views/user/manager/index.vue | 86 ++++++++------- .../modules/user-manager-operate-drawer.vue | 104 ++++++++++++------ 7 files changed, 134 insertions(+), 81 deletions(-) diff --git a/src/locales/langs/en-us.ts b/src/locales/langs/en-us.ts index 5d5b872..2cce824 100644 --- a/src/locales/langs/en-us.ts +++ b/src/locales/langs/en-us.ts @@ -935,6 +935,8 @@ const local: App.I18n.Schema = { permissions: 'Permission', checkPassword: 'Confirm Password', password: 'Password', + updatePassword: 'Update Password', + permissionList: 'Permission List', form: { role: 'Please enter Role', password: 'Please enter Password', diff --git a/src/locales/langs/zh-cn.ts b/src/locales/langs/zh-cn.ts index d7226e8..c3f24b9 100644 --- a/src/locales/langs/zh-cn.ts +++ b/src/locales/langs/zh-cn.ts @@ -931,6 +931,8 @@ const local: App.I18n.Schema = { permissions: '权限', checkPassword: '确认密码', password: '密码', + updatePassword: '更新密码', + permissionList: '权限列表', form: { role: '请输入角色', password: '请输入密码', diff --git a/src/router/elegant/routes.ts b/src/router/elegant/routes.ts index 1037685..881cc5d 100644 --- a/src/router/elegant/routes.ts +++ b/src/router/elegant/routes.ts @@ -436,7 +436,9 @@ export const generatedRoutes: GeneratedRoute[] = [ component: 'view.retry_dead-letter', meta: { title: 'retry_dead-letter', - i18nKey: 'route.retry_dead-letter' + i18nKey: 'route.retry_dead-letter', + icon: 'streamline:interface-arrows-synchronize-warning-arrow-fail-notification-sync-warning-failure-synchronize-error', + order: 30 } }, { @@ -446,7 +448,8 @@ export const generatedRoutes: GeneratedRoute[] = [ meta: { title: 'retry_log', i18nKey: 'route.retry_log', - icon: 'tabler:logs' + icon: 'tabler:logs', + order: 20 } }, { @@ -456,7 +459,8 @@ export const generatedRoutes: GeneratedRoute[] = [ meta: { title: 'retry_scene', i18nKey: 'route.retry_scene', - icon: 'cbi:scene-dynamic' + icon: 'cbi:scene-dynamic', + order: 40 } }, { @@ -466,7 +470,8 @@ export const generatedRoutes: GeneratedRoute[] = [ meta: { title: 'retry_task', i18nKey: 'route.retry_task', - icon: 'octicon:tasklist' + icon: 'octicon:tasklist', + order: 10 } } ] @@ -477,7 +482,9 @@ export const generatedRoutes: GeneratedRoute[] = [ component: 'layout.base', meta: { title: 'user', - i18nKey: 'route.user' + i18nKey: 'route.user', + order: 900, + icon: 'material-symbols:manage-accounts' }, children: [ { diff --git a/src/typings/api.d.ts b/src/typings/api.d.ts index 03fc5db..28387eb 100644 --- a/src/typings/api.d.ts +++ b/src/typings/api.d.ts @@ -1103,7 +1103,7 @@ declare namespace Api { type Permission = Common.CommonRecord<{ groupName: string; namespaceId: string; - namespaceName: string; + namespaceName?: string; }>; /** userManager search params */ diff --git a/src/typings/app.d.ts b/src/typings/app.d.ts index a414c01..6a169e2 100644 --- a/src/typings/app.d.ts +++ b/src/typings/app.d.ts @@ -1092,6 +1092,8 @@ declare namespace App { checkPassword: string; password: string; permissions: string; + updatePassword: string; + permissionList: string; form: { role: string; password: string; diff --git a/src/views/user/manager/index.vue b/src/views/user/manager/index.vue index d7e0068..c64c42a 100644 --- a/src/views/user/manager/index.vue +++ b/src/views/user/manager/index.vue @@ -1,12 +1,12 @@