From e1841c6189fae6b7bb9152e0d89d09b6b8f1d505 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Fri, 27 Jun 2025 17:58:39 +0800 Subject: [PATCH] feat: resource-authorization --- ui/src/router/modules/system.ts | 48 ++++++++++++- .../component/PermissionSetting.vue | 68 ++++++++++++++----- .../system/resource-authorization/index.vue | 60 +++++++++------- 3 files changed, 132 insertions(+), 44 deletions(-) diff --git a/ui/src/router/modules/system.ts b/ui/src/router/modules/system.ts index 31f09dd5d..540e5ebf7 100644 --- a/ui/src/router/modules/system.ts +++ b/ui/src/router/modules/system.ts @@ -140,7 +140,53 @@ const systemRouter = { parentName: 'system', sameRoute: 'authorization', }, - component: () => import('@/views/system/resource-authorization/index.vue'), + + children: [ + { + path: '/system/authorization/application', + name: 'authorizationApplication', + meta: { + title: 'views.application.title', + activeMenu: '/system', + parentPath: '/system', + parentName: 'system', + }, + component: () => import('@/views/system/resource-authorization/index.vue'), + }, + { + path: '/system/authorization/knowledge', + name: 'authorizationKnowledge', + meta: { + title: 'views.knowledge.title', + activeMenu: '/system', + parentPath: '/system', + parentName: 'system', + }, + component: () => import('@/views/system/resource-authorization/index.vue'), + }, + { + path: '/system/authorization/tool', + name: 'authorizationTool', + meta: { + title: 'views.tool.title', + activeMenu: '/system', + parentPath: '/system', + parentName: 'system', + }, + component: () => import('@/views/system/resource-authorization/index.vue'), + }, + { + path: '/system/authorization/model', + name: 'authorizationModel', + meta: { + title: 'views.model.title', + activeMenu: '/system', + parentPath: '/system', + parentName: 'system', + }, + component: () => import('@/views/system/resource-authorization/index.vue'), + }, + ], }, { path: '/system/shared', diff --git a/ui/src/views/system/resource-authorization/component/PermissionSetting.vue b/ui/src/views/system/resource-authorization/component/PermissionSetting.vue index 7b0a9e264..d686f82f8 100644 --- a/ui/src/views/system/resource-authorization/component/PermissionSetting.vue +++ b/ui/src/views/system/resource-authorization/component/PermissionSetting.vue @@ -8,9 +8,7 @@ {{ $t('views.resourceAuthorization.priority.role') }} - {{ - $t('common.custom') - }} + {{ $t('common.custom') }}