diff --git a/frontend/src/i18n/locales/en.ts b/frontend/src/i18n/locales/en.ts index d04541e4..8277a134 100644 --- a/frontend/src/i18n/locales/en.ts +++ b/frontend/src/i18n/locales/en.ts @@ -1808,6 +1808,7 @@ export default { defaultPerRequestPrice: 'Default per-request price (fallback when no tier matches)', defaultImagePrice: 'Default image price (fallback when no tier matches)', platformConfig: 'Platform Configuration', + basicSettings: 'Basic Settings', addPlatform: 'Add Platform', noPlatforms: 'Click "Add Platform" to start configuring the channel', mappingCount: 'mappings', diff --git a/frontend/src/i18n/locales/zh.ts b/frontend/src/i18n/locales/zh.ts index d636e323..e4406b0e 100644 --- a/frontend/src/i18n/locales/zh.ts +++ b/frontend/src/i18n/locales/zh.ts @@ -1888,6 +1888,7 @@ export default { defaultPerRequestPrice: '默认单次价格(未命中层级时使用)', defaultImagePrice: '默认图片价格(未命中层级时使用)', platformConfig: '平台配置', + basicSettings: '基础设置', addPlatform: '添加平台', noPlatforms: '点击"添加平台"开始配置渠道', mappingCount: '条映射', diff --git a/frontend/src/views/admin/ChannelsView.vue b/frontend/src/views/admin/ChannelsView.vue index 127a9f17..fe69f050 100644 --- a/frontend/src/views/admin/ChannelsView.vue +++ b/frontend/src/views/admin/ChannelsView.vue @@ -143,260 +143,291 @@ width="extra-wide" @close="closeDialog" > -
- -
- - -
- - -
- - -
- - -
- - - {{ t('admin.channels.form.restrictModels', 'Restrict Models') }} - -

- {{ t('admin.channels.form.restrictModelsHint', 'When enabled, only models in the pricing list are allowed. Others will be rejected.') }} -

-
- - -
- -
- -
- -
- -
-
- {{ t('common.loading', 'Loading...') }} -
-
- {{ t('admin.channels.form.noGroupsAvailable', 'No groups available') }} -
-
- -
-
-
+ +
+ + +
- -
-
- -
- -
-
- - -
+
+ {{ t('admin.channels.form.noPlatforms', '点击"添加平台"开始配置渠道') }} +
+ + +
- {{ t('admin.channels.form.noPricingRules', 'No pricing rules yet. Click "Add" to create one.') }} -
-
- +
+ + + {{ t('admin.groups.platforms.' + section.platform, section.platform) }} + + + {{ section.group_ids.length }} {{ t('admin.channels.groupsUnit', 'groups') }} + + + · {{ Object.keys(section.model_mapping).length }} {{ t('admin.channels.form.mappingCount', 'mappings') }} + + + · {{ section.model_pricing.length }} {{ t('admin.channels.pricingUnit', 'pricing rules') }} + +
+
- -
+ + +
+ +
+ +
+
+ {{ t('common.loading', 'Loading...') }} +
+
+ {{ t('admin.channels.form.noGroupsAvailable', 'No groups available') }} +
+
+ +
+
+
+ + +
+
+ + +
+
+ {{ t('admin.channels.form.noMappingRules', 'No mapping rules. Click "Add" to create one.') }} +
+
+
+ + + + +
+
+
+ + +
+
+ + +
+
+ {{ t('admin.channels.form.noPricingRules', 'No pricing rules yet. Click "Add" to create one.') }} +
+
+ +
+
+
+ +