From e7dc05c2575ed2fe3ce6aa4f2494c16681da6e6d Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 9 May 2026 22:25:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BB=A3=E7=90=86?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E9=A1=B5=E9=9D=A2=E7=BF=BB=E8=AF=91=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E5=92=8C=E4=BB=A3=E7=90=86=E5=8D=A1=E5=AF=86=E7=94=9F?= =?UTF-8?q?=E6=88=90=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 admin.agents.create.saveBtn 和 admin.agents.editSuccess 翻译 - 修复代理卡密生成页面API路径错误,使用/agent/apps/{id}获取卡类 - 重构代理卡密生成页面样式,参考管理员后台卡密生成页面 - 添加代理卡密生成页面完整i18n国际化支持 Co-Authored-By: Claude Opus 4.7 --- frontend/src/pages/agent/cards/create.vue | 350 ++++++++++++++-------- frontend/src/plugins/i18n/en.json | 30 +- frontend/src/plugins/i18n/zh.json | 39 ++- 3 files changed, 287 insertions(+), 132 deletions(-) diff --git a/frontend/src/pages/agent/cards/create.vue b/frontend/src/pages/agent/cards/create.vue index 9d4aeb7..039ca49 100644 --- a/frontend/src/pages/agent/cards/create.vue +++ b/frontend/src/pages/agent/cards/create.vue @@ -1,189 +1,285 @@ + \ No newline at end of file diff --git a/frontend/src/plugins/i18n/en.json b/frontend/src/plugins/i18n/en.json index 9220d33..4e8fa69 100644 --- a/frontend/src/plugins/i18n/en.json +++ b/frontend/src/plugins/i18n/en.json @@ -1322,8 +1322,11 @@ "passwordMinLength": "Password must be at least 6 characters", "createSuccess": "Agent created successfully", "createFailed": "Failed to create agent", - "cancel": "Cancel" + "cancel": "Cancel", + "saveBtn": "Save Changes" }, + "editSuccess": "Agent updated successfully", + "editFailed": "Failed to update agent", "enable": "Enable", "disable": "Disable", "deleteAgent": "Delete Agent", @@ -1341,7 +1344,8 @@ "save": "Save", "usernameHint": "Username cannot be changed", "passwordPlaceholder": "Leave empty to keep current password", - "passwordHint": "Enter new password to change, leave empty to keep current" + "passwordHint": "Enter new password to change, leave empty to keep current", + "saveBtn": "Save Changes" } }, "announcements": { @@ -2857,7 +2861,27 @@ "estimatedCost": "Estimated Cost", "cancel": "Cancel", "generating": "Generating...", - "generateBtn": "Generate Cards" + "generateBtn": "Generate Cards", + "selectAppFirst": "Please select an application first", + "selectCardTypeFirst": "Please select a card type first", + "countRange": "Quantity must be between 1 and 100", + "config": "Generation Config", + "configDesc": "Select authorized application and available card type, set quantity", + "application": "Select Application", + "selectApplication": "Please select an application", + "cardType": "Select Card Type", + "selectCardType": "Please select a card type", + "noCardType": "No available card types for this application", + "count": "Quantity", + "maxCount": "Maximum 100 cards per generation", + "preview": "Generation Preview", + "app": "Application", + "type": "Card Type", + "unitPrice": "Unit Price", + "quantity": "Quantity", + "units": "cards", + "totalAmount": "Estimated Cost", + "generateNow": "Generate Now" } } }, diff --git a/frontend/src/plugins/i18n/zh.json b/frontend/src/plugins/i18n/zh.json index cd567da..335860f 100644 --- a/frontend/src/plugins/i18n/zh.json +++ b/frontend/src/plugins/i18n/zh.json @@ -1280,8 +1280,23 @@ "passwordMinLength": "密码长度至少6位", "createSuccess": "创建代理成功", "createFailed": "创建代理失败", - "cancel": "取消" + "cancel": "取消", + "saveBtn": "保存修改" }, + "edit": { + "title": "编辑代理", + "description": "修改代理信息", + "fetchFailed": "获取代理信息失败", + "saveSuccess": "保存成功", + "saveFailed": "保存失败", + "save": "保存", + "usernameHint": "用户名不可修改", + "passwordPlaceholder": "留空则不修改密码", + "passwordHint": "输入新密码以修改,留空保持原密码", + "saveBtn": "保存修改" + }, + "editSuccess": "更新代理成功", + "editFailed": "更新代理失败", "enable": "启用", "disable": "禁用", "deleteAgent": "删除代理", @@ -2847,7 +2862,27 @@ "estimatedCost": "预计费用", "cancel": "取消", "generating": "生成中...", - "generateBtn": "生成卡密" + "generateBtn": "生成卡密", + "selectAppFirst": "请先选择应用", + "selectCardTypeFirst": "请先选择卡类", + "countRange": "生成数量需要在 1-100 之间", + "config": "生成配置", + "configDesc": "选择授权应用和可用卡类,设置生成数量", + "application": "选择应用", + "selectApplication": "请选择应用", + "cardType": "选择卡类", + "selectCardType": "请选择卡类", + "noCardType": "该应用暂无可用卡类", + "count": "生成数量", + "maxCount": "单次最多生成 100 张卡密", + "preview": "生成预览", + "app": "应用", + "type": "卡类", + "unitPrice": "单价", + "quantity": "数量", + "units": "张", + "totalAmount": "预计费用", + "generateNow": "立即生成" } } },