From e7286477526e6c02655f49cf9a511ecfb3d3410a Mon Sep 17 00:00:00 2001
From: wxg0103 <727495428@qq.com>
Date: Wed, 24 Dec 2025 09:44:19 +0800
Subject: [PATCH] feat: add default permission settings and dialog for resource
authorization
---
ui/src/locales/lang/en-US/views/system.ts | 2 +
ui/src/locales/lang/zh-CN/views/system.ts | 2 +
ui/src/locales/lang/zh-Hant/views/system.ts | 2 +
.../authentication/component/Setting.vue | 31 ++--
.../user-manage/component/UserDrawer.vue | 134 ++++++++++++++++--
5 files changed, 148 insertions(+), 23 deletions(-)
diff --git a/ui/src/locales/lang/en-US/views/system.ts b/ui/src/locales/lang/en-US/views/system.ts
index 218293bb5..741b9848e 100644
--- a/ui/src/locales/lang/en-US/views/system.ts
+++ b/ui/src/locales/lang/en-US/views/system.ts
@@ -144,6 +144,8 @@ export default {
currentOnly: 'Current resource only',
includeAll: 'Include all sub-resources',
effectiveResource: 'Effective Resource',
+ defaultPermission: 'Default Permission',
+ defaultPermissionTip: 'Default permissions for all resources under the selected workspace',
},
},
resource_management: {
diff --git a/ui/src/locales/lang/zh-CN/views/system.ts b/ui/src/locales/lang/zh-CN/views/system.ts
index 9dc096468..1155f222e 100644
--- a/ui/src/locales/lang/zh-CN/views/system.ts
+++ b/ui/src/locales/lang/zh-CN/views/system.ts
@@ -145,6 +145,8 @@ export default {
currentOnly: '仅当前资源',
includeAll: '包含所有子资源',
effectiveResource: '生效资源',
+ defaultPermission: '默认权限',
+ defaultPermissionTip: '所选工作空间下所有资源的默认权限',
},
},
resource_management: {
diff --git a/ui/src/locales/lang/zh-Hant/views/system.ts b/ui/src/locales/lang/zh-Hant/views/system.ts
index 63663260e..8412647f0 100644
--- a/ui/src/locales/lang/zh-Hant/views/system.ts
+++ b/ui/src/locales/lang/zh-Hant/views/system.ts
@@ -145,6 +145,8 @@ export default {
currentOnly: '僅當前資源',
includeAll: '包含所有子資源',
effectiveResource: '生效資源',
+ defaultPermission: '預設權限',
+ defaultPermissionTip: '所選工作空間下所有資源的預設權限',
},
},
resource_management: {
diff --git a/ui/src/views/system-setting/authentication/component/Setting.vue b/ui/src/views/system-setting/authentication/component/Setting.vue
index a29df1199..c917150ff 100644
--- a/ui/src/views/system-setting/authentication/component/Setting.vue
+++ b/ui/src/views/system-setting/authentication/component/Setting.vue
@@ -172,13 +172,13 @@
-
+