diff --git a/frontend/src/i18n/locales/en.ts b/frontend/src/i18n/locales/en.ts index e6465db1..12f5885e 100644 --- a/frontend/src/i18n/locales/en.ts +++ b/frontend/src/i18n/locales/en.ts @@ -543,6 +543,7 @@ export default { title: 'Subscription Settings', type: 'Billing Type', typeHint: 'Standard billing deducts from user balance. Subscription mode uses quota limits instead.', + typeNotEditable: 'Billing type cannot be changed after group creation.', standard: 'Standard (Balance)', subscription: 'Subscription (Quota)', dailyLimit: 'Daily Limit (USD)', diff --git a/frontend/src/i18n/locales/zh.ts b/frontend/src/i18n/locales/zh.ts index 322fc9f4..556eb742 100644 --- a/frontend/src/i18n/locales/zh.ts +++ b/frontend/src/i18n/locales/zh.ts @@ -598,6 +598,7 @@ export default { title: '订阅设置', type: '计费类型', typeHint: '标准计费从用户余额扣除。订阅模式使用配额限制。', + typeNotEditable: '分组创建后无法修改计费类型。', standard: '标准(余额)', subscription: '订阅(配额)', dailyLimit: '每日限额(USD)', diff --git a/frontend/src/views/admin/GroupsView.vue b/frontend/src/views/admin/GroupsView.vue index cdd6c6ce..1cfa87f8 100644 --- a/frontend/src/views/admin/GroupsView.vue +++ b/frontend/src/views/admin/GroupsView.vue @@ -180,7 +180,7 @@ />

{{ t('admin.groups.rateMultiplierHint') }}

-
+
-
+
@@ -676,16 +677,11 @@ const confirmDelete = async () => { } } -// 监听 subscription_type 变化,配额模式时重置 rate_multiplier 为 1 +// 监听 subscription_type 变化,订阅模式时重置 rate_multiplier 为 1,is_exclusive 为 true watch(() => createForm.subscription_type, (newVal) => { if (newVal === 'subscription') { createForm.rate_multiplier = 1.0 - } -}) - -watch(() => editForm.subscription_type, (newVal) => { - if (newVal === 'subscription') { - editForm.rate_multiplier = 1.0 + createForm.is_exclusive = true } })