+
+
+
+
+
+
+ {{ t('agent.cards.create.config') }}
+
+ {{ t('agent.cards.create.configDesc') }}
+
+
+
+
+ {{ t('agent.cards.create.application') }}
+
+
+
+
+
+
+
+ {{ app.name }}
+
+
+
+
+
+
+
+ {{ t('agent.cards.create.cardType') }}
+
+
+
+
+
+
+
+ {{ type.name }} ({{ type.billing_type }})
+
+
+
+
+ {{ t('agent.cards.create.noCardType') }}
+
+
+
+
+
+ {{ t('agent.cards.create.count') }}
+
+
+
+
+
+
+
+
+
+
+
+ 10
+
+
+ 50
+
+
+ 100
+
+
+
+
+ {{ t('agent.cards.create.maxCount') }}
+
+
+
+
-
- 选择卡类 *
-
-
-
-
-
-
- {{ ct.name }} - {{ ct.duration_days }}天 - ¥{{ ct.price }}
-
-
-
-
+
+
+
+
+
+ {{ t('agent.cards.create.preview') }}
+
+
+
+
+
+ {{ t('agent.cards.create.app') }}
+ {{ applications.find(a => String(a.id) === form.application_id)?.name || '-' }}
+
+
+ {{ t('agent.cards.create.type') }}
+ {{ selectedCardType?.name || '-' }}
+
+
+ {{ t('agent.cards.create.unitPrice') }}
+ ¥{{ selectedCardType?.price?.toFixed(2) || '0.00' }}
+
+
+ {{ t('agent.cards.create.quantity') }}
+ {{ form.count }} {{ t('agent.cards.create.units') }}
+
+
+
+ {{ t('agent.cards.create.totalAmount') }}
+ ¥{{ totalCost.toFixed(2) }}
+
+
+
+
+
-
-
生成数量 *
-
-
- 单次最多生成100张卡密
-
+
+
+
+
+
+
+ {{ t('agent.cards.create.generateNow') }}
+
+
+ {{ t('agent.cards.create.cancel') }}
+
+
+
+
-
-
-
- 预计费用
- ¥{{ totalPrice.toFixed(2) }}
-
-
-
-
-
-
- 取消
-
-
-
-
- {{ loading ? '生成中...' : '生成卡密' }}
-
-
-
-
+
+
-
+
\ 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": "立即生成"
}
}
},