From 439b2531767541ccce7cbb5f88f0776a25d42e34 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Tue, 27 Jan 2026 14:05:27 +0800 Subject: [PATCH] fix(User Management): Supports binding users to system variables. --- frontend/src/api/variables.ts | 2 +- frontend/src/i18n/en.json | 4 + frontend/src/i18n/ko-KR.json | 4 + frontend/src/i18n/zh-CN.json | 6 +- frontend/src/views/system/user/User.vue | 282 +++++++++++++++++++++++- 5 files changed, 284 insertions(+), 14 deletions(-) diff --git a/frontend/src/api/variables.ts b/frontend/src/api/variables.ts index 41ff445b..61ac0df1 100644 --- a/frontend/src/api/variables.ts +++ b/frontend/src/api/variables.ts @@ -2,7 +2,7 @@ import { request } from '@/utils/request' export const variablesApi = { save: (data: any) => request.post('/sys_variable/save', data), - listAll: () => request.post('/sys_variable/listAll'), + listAll: () => request.post('/sys_variable/listAll', {}), listPage: (pageNum: any, pageSize: any, data: any) => request.post(`/sys_variable/listPage/${pageNum}/${pageSize}`, data), delete: (data: any) => request.post(`/sys_variable/delete`, data), diff --git a/frontend/src/i18n/en.json b/frontend/src/i18n/en.json index a1c7b1aa..4e82f8ec 100644 --- a/frontend/src/i18n/en.json +++ b/frontend/src/i18n/en.json @@ -8,7 +8,11 @@ "Details": "Details" }, "variables": { + "​​cannot_be_empty": "Variable values ​​cannot be empty.", + "1_to_100": "{name}, the numerical range is {min} to {max}.", + "1_to_100_de": "{name}, the date range is {min} to {max}.", "system_variables": "System Variables", + "variables": "Variables", "system": "System", "search_variables": "Search Variables", "add_variable": "Add Variable", diff --git a/frontend/src/i18n/ko-KR.json b/frontend/src/i18n/ko-KR.json index 0f1f6360..2dafcd7b 100644 --- a/frontend/src/i18n/ko-KR.json +++ b/frontend/src/i18n/ko-KR.json @@ -24,7 +24,11 @@ "return_to_view": "화면으로 돌아가기" }, "variables": { + "​​cannot_be_empty": "변수 값은 비어 있을 수 없습니다.", + "1_to_100": "{name}, 숫자 범위는 {min}부터 {max}까지입니다.", + "1_to_100_de": "{name}, 날짜 범위는 {min}부터 {max}까지입니다.", "system_variables": "시스템 변수", + "variables": "변수", "system": "체계", "search_variables": "변수 검색", "add_variable": "변수 추가", diff --git a/frontend/src/i18n/zh-CN.json b/frontend/src/i18n/zh-CN.json index e92f92b1..d8eecc0d 100644 --- a/frontend/src/i18n/zh-CN.json +++ b/frontend/src/i18n/zh-CN.json @@ -24,7 +24,11 @@ "return_to_view": "返回查看" }, "variables": { + "​​cannot_be_empty": "变量值不能为空", + "1_to_100": "{name}数值范围 {min}~{max}", + "1_to_100_de": "{name}日期范围 {min}~{max}", "system_variables": "系统变量", + "variables": "变量", "system": "系统", "search_variables": "搜索变量", "add_variable": "添加变量", @@ -924,4 +928,4 @@ "to_doc": "查看 API", "trigger_limit": "最多支持创建 {0} 个 API Key" } -} +} \ No newline at end of file diff --git a/frontend/src/views/system/user/User.vue b/frontend/src/views/system/user/User.vue index 11cd24a5..41ab7c7f 100644 --- a/frontend/src/views/system/user/User.vue +++ b/frontend/src/views/system/user/User.vue @@ -355,6 +355,108 @@ + + +
+
+ {{ t('variables.variables') }} + {{ t('variables.variable_value') }} +
+
+ + + + + + + + + + + + + + + + + + +
+
+
@@ -423,7 +525,7 @@