refactor: 简化授权管理添加/编辑页面为单卡类选择

- 移除卡类列表,改为单选卡类
- 选择代理 → 选择应用 → 选择卡类 → 设置价格
- 修复面包屑导航名称
- 优化预览卡片展示

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-09 19:28:06 +08:00
parent 802c36072c
commit aa5d3d126b
4 changed files with 211 additions and 304 deletions
+6 -13
View File
@@ -1706,32 +1706,26 @@
"remove": "Remove",
"createForm": {
"title": "Add Authorization",
"description": "Add new application authorization for agent",
"description": "Add application card type authorization for agent",
"editTitle": "Edit Authorization",
"editDescription": "Modify agent's application authorization configuration",
"editDescription": "Modify agent's application card type authorization",
"authConfig": "Authorization Configuration",
"authConfigDesc": "Select agent, application and configure card type permissions",
"authConfigDesc": "Select agent, application and card type",
"selectAgent": "Select Agent",
"selectAgentPlaceholder": "Please select an agent",
"selectApp": "Select Application",
"selectAppPlaceholder": "Please select an application",
"cardPermission": "Card Type Permissions",
"selectCardType": "Select Card Type",
"selectCardTypePlaceholder": "Please select a 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",
"previewCardType": "Card Type",
"previewPrice": "Price",
"previewRemark": "Remark",
"confirmAuth": "Confirm Authorization",
"updateAuth": "Save Changes",
@@ -1742,8 +1736,7 @@
"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"
"selectCardRequired": "Please select a card type"
}
},
"finance": {
+6 -13
View File
@@ -1695,32 +1695,26 @@
"remove": "移除",
"createForm": {
"title": "添加授权",
"description": "为代理添加新的应用授权",
"description": "为代理添加应用卡类授权",
"editTitle": "编辑授权",
"editDescription": "修改代理的应用授权配置",
"editDescription": "修改代理的应用卡类授权配置",
"authConfig": "授权配置",
"authConfigDesc": "选择代理、应用和配置卡类权限",
"authConfigDesc": "选择代理、应用和卡类",
"selectAgent": "选择代理",
"selectAgentPlaceholder": "请选择代理",
"selectApp": "选择应用",
"selectAppPlaceholder": "请选择应用",
"cardPermission": "卡类权限",
"selectCardType": "选择卡类",
"selectCardTypePlaceholder": "请选择卡类",
"addCardType": "添加",
"cardTypeList": "已授权卡类",
"cardTypeName": "卡类名称",
"billingType": "计费类型",
"price": "价格",
"pricePlaceholder": "输入价格",
"noCardTypes": "请选择卡类添加到授权列表",
"selectAppFirst": "请先选择应用",
"remark": "备注",
"remarkPlaceholder": "输入备注信息(可选)",
"preview": "预览",
"previewAgent": "代理",
"previewApp": "应用",
"previewCardTypes": "授权卡类",
"previewCardType": "卡类",
"previewPrice": "价格",
"previewRemark": "备注",
"confirmAuth": "确认授权",
"updateAuth": "保存修改",
@@ -1731,8 +1725,7 @@
"fetchFailed": "获取授权信息失败",
"selectAgentRequired": "请选择代理",
"selectAppRequired": "请选择应用",
"selectCardRequired": "请至少添加一个卡类",
"cardCount": "{count} 个"
"selectCardRequired": "请选择卡类"
}
},
"finance": {