From 611dcb8ccdc74786d35662f500bcf25138b6268c Mon Sep 17 00:00:00 2001 From: erio Date: Mon, 6 Apr 2026 16:19:19 +0800 Subject: [PATCH] cleanup: remove duplicate AdminPaymentConfigView, fix group display MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Delete AdminPaymentConfigView.vue (duplicated in SettingsView Payment tab) - Remove /admin/orders/config route - Plans table: show red "缺失/Missing" badge for deleted groups - Plans table: group_id column shows group name or missing indicator --- frontend/src/i18n/locales/en.ts | 1 + frontend/src/i18n/locales/zh.ts | 1 + frontend/src/router/index.ts | 12 - .../admin/orders/AdminPaymentConfigView.vue | 401 ------------------ .../admin/orders/AdminPaymentPlansView.vue | 12 +- 5 files changed, 12 insertions(+), 415 deletions(-) delete mode 100644 frontend/src/views/admin/orders/AdminPaymentConfigView.vue diff --git a/frontend/src/i18n/locales/en.ts b/frontend/src/i18n/locales/en.ts index be9221f7d3..5786b41295 100644 --- a/frontend/src/i18n/locales/en.ts +++ b/frontend/src/i18n/locales/en.ts @@ -5184,6 +5184,7 @@ export default { tabPlanConfig: 'Plan Configuration', tabUserSubs: 'User Subscriptions', selectGroup: 'Select a group', + groupMissing: 'Missing', groupInfo: 'Group Info', platform: 'Platform', rateMultiplierLabel: 'Rate', diff --git a/frontend/src/i18n/locales/zh.ts b/frontend/src/i18n/locales/zh.ts index 8575a5a2c7..ceb5996cda 100644 --- a/frontend/src/i18n/locales/zh.ts +++ b/frontend/src/i18n/locales/zh.ts @@ -5381,6 +5381,7 @@ export default { tabPlanConfig: '套餐配置', tabUserSubs: '用户订阅', selectGroup: '请选择分组', + groupMissing: '缺失', groupInfo: '分组信息', platform: '平台', rateMultiplierLabel: '倍率', diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index 9884a0209a..f01c3d8ab4 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -450,18 +450,6 @@ const routes: RouteRecordRaw[] = [ requiresPayment: true } }, - { - path: '/admin/orders/config', - name: 'AdminPaymentConfig', - component: () => import('@/views/admin/orders/AdminPaymentConfigView.vue'), - meta: { - requiresAuth: true, - requiresAdmin: true, - title: 'Payment Config', - titleKey: 'nav.paymentConfig', - requiresPayment: true - } - }, { path: '/admin/orders/plans', name: 'AdminPaymentPlans', diff --git a/frontend/src/views/admin/orders/AdminPaymentConfigView.vue b/frontend/src/views/admin/orders/AdminPaymentConfigView.vue deleted file mode 100644 index e547042f16..0000000000 --- a/frontend/src/views/admin/orders/AdminPaymentConfigView.vue +++ /dev/null @@ -1,401 +0,0 @@ - - - diff --git a/frontend/src/views/admin/orders/AdminPaymentPlansView.vue b/frontend/src/views/admin/orders/AdminPaymentPlansView.vue index 923f988043..0595a1bf20 100644 --- a/frontend/src/views/admin/orders/AdminPaymentPlansView.vue +++ b/frontend/src/views/admin/orders/AdminPaymentPlansView.vue @@ -12,7 +12,11 @@