From 6f6365e2c053a64b2104106571fa2496da34c0a4 Mon Sep 17 00:00:00 2001 From: erio Date: Mon, 30 Mar 2026 19:06:03 +0800 Subject: [PATCH] =?UTF-8?q?feat(channel):=20=E5=AF=B9=E8=AF=9D=E6=A1=86=20?= =?UTF-8?q?Tab=20=E5=B8=83=E5=B1=80=20=E2=80=94=20=E5=9F=BA=E7=A1=80?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=20+=20=E5=B9=B3=E5=8F=B0=E7=8B=AC=E7=AB=8B?= =?UTF-8?q?=20Tab=20+=20=E5=9B=BA=E5=AE=9A=E9=AB=98=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/cmd/server/VERSION | 2 +- frontend/src/i18n/locales/en.ts | 1 + frontend/src/i18n/locales/zh.ts | 1 + frontend/src/views/admin/ChannelsView.vue | 517 ++++++++++++---------- 4 files changed, 291 insertions(+), 230 deletions(-) diff --git a/backend/cmd/server/VERSION b/backend/cmd/server/VERSION index 9585b24fe0..b97f3d0367 100644 --- a/backend/cmd/server/VERSION +++ b/backend/cmd/server/VERSION @@ -1 +1 @@ -0.1.105.9 +0.1.105.10 diff --git a/frontend/src/i18n/locales/en.ts b/frontend/src/i18n/locales/en.ts index f2caeae83f..6dc4a9ab58 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 b185578d55..bbdb413c1a 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 127a9f1768..fe69f050c0 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.') }} +
+
+ +
+
+
+ +