feat: 优化授权管理添加/编辑页面布局和样式

- 添加 i18n 国际化支持,新增 createForm 翻译
- 统一使用 KeyRound 图标作为授权配置标题
- 优化预览卡片,增加已授权卡类列表展示
- 添加 loading 状态和更完善的表单验证
- 统一使用 textarea 组件替代 UiTextarea
- 与版本管理页面布局保持一致

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-09 19:12:25 +08:00
parent 29b2f54b20
commit d10c2ffa77
4 changed files with 292 additions and 133 deletions
+41 -1
View File
@@ -1703,7 +1703,47 @@
"my_request": "My Request"
},
"reject": "Reject",
"remove": "Remove"
"remove": "Remove",
"createForm": {
"title": "Add Authorization",
"description": "Add new application authorization for agent",
"editTitle": "Edit Authorization",
"editDescription": "Modify agent's application authorization configuration",
"authConfig": "Authorization Configuration",
"authConfigDesc": "Select agent, application and configure card type permissions",
"selectAgent": "Select Agent",
"selectAgentPlaceholder": "Please select an agent",
"selectApp": "Select Application",
"selectAppPlaceholder": "Please select an application",
"cardPermission": "Card Type Permissions",
"selectCardType": "Select Card Type",
"addCardType": "Add",
"cardTypeList": "Authorized Card Types",
"cardTypeName": "Card Type Name",
"billingType": "Billing Type",
"price": "Price",
"pricePlaceholder": "Enter price",
"noCardTypes": "Please select card types to add to authorization list",
"selectAppFirst": "Please select an application first",
"remark": "Remark",
"remarkPlaceholder": "Enter remark (optional)",
"preview": "Preview",
"previewAgent": "Agent",
"previewApp": "Application",
"previewCardTypes": "Card Types",
"previewRemark": "Remark",
"confirmAuth": "Confirm Authorization",
"updateAuth": "Save Changes",
"createSuccess": "Authorization added successfully",
"createFailed": "Failed to add authorization",
"updateSuccess": "Authorization updated successfully",
"updateFailed": "Failed to update authorization",
"fetchFailed": "Failed to fetch authorization information",
"selectAgentRequired": "Please select an agent",
"selectAppRequired": "Please select an application",
"selectCardRequired": "Please add at least one card type",
"cardCount": "{count} items"
}
},
"finance": {
"title": "Finance Management",
+41 -1
View File
@@ -1692,7 +1692,47 @@
"my_request": "我的申请"
},
"reject": "拒绝",
"remove": "移除"
"remove": "移除",
"createForm": {
"title": "添加授权",
"description": "为代理添加新的应用授权",
"editTitle": "编辑授权",
"editDescription": "修改代理的应用授权配置",
"authConfig": "授权配置",
"authConfigDesc": "选择代理、应用和配置卡类权限",
"selectAgent": "选择代理",
"selectAgentPlaceholder": "请选择代理",
"selectApp": "选择应用",
"selectAppPlaceholder": "请选择应用",
"cardPermission": "卡类权限",
"selectCardType": "选择卡类",
"addCardType": "添加",
"cardTypeList": "已授权卡类",
"cardTypeName": "卡类名称",
"billingType": "计费类型",
"price": "价格",
"pricePlaceholder": "输入价格",
"noCardTypes": "请选择卡类添加到授权列表",
"selectAppFirst": "请先选择应用",
"remark": "备注",
"remarkPlaceholder": "输入备注信息(可选)",
"preview": "预览",
"previewAgent": "代理",
"previewApp": "应用",
"previewCardTypes": "授权卡类",
"previewRemark": "备注",
"confirmAuth": "确认授权",
"updateAuth": "保存修改",
"createSuccess": "授权添加成功",
"createFailed": "添加授权失败",
"updateSuccess": "授权更新成功",
"updateFailed": "更新授权失败",
"fetchFailed": "获取授权信息失败",
"selectAgentRequired": "请选择代理",
"selectAppRequired": "请选择应用",
"selectCardRequired": "请至少添加一个卡类",
"cardCount": "{count} 个"
}
},
"finance": {
"title": "财务管理",