From 0288e8f578237ae5bb402c5afc168ccbd3e4385c Mon Sep 17 00:00:00 2001 From: yml2213 Date: Thu, 14 May 2026 20:16:04 +0800 Subject: [PATCH] =?UTF-8?q?ui=E4=BC=98=E5=8C=96-2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/frontend/src/components.d.ts | 4 - .../components/admin/AdminPaginationBar.vue | 62 --- .../src/components/admin/AdminStatusTag.vue | 61 +-- .../admin/AdminFulfillmentConfigHubView.vue | 69 +-- .../src/views/admin/AdminLoginView.vue | 48 +- .../src/views/admin/AdminManualRedeemView.vue | 152 +++---- .../src/views/admin/AdminOrderDetailView.vue | 307 +++++++------ .../src/views/admin/AdminTaskDetailView.vue | 410 ++++++++++++------ .../admin/AdminWebhookEventDetailView.vue | 169 +++++--- 9 files changed, 665 insertions(+), 617 deletions(-) delete mode 100644 apps/frontend/src/components/admin/AdminPaginationBar.vue diff --git a/apps/frontend/src/components.d.ts b/apps/frontend/src/components.d.ts index 8fef90aa..2c30b9cc 100644 --- a/apps/frontend/src/components.d.ts +++ b/apps/frontend/src/components.d.ts @@ -12,7 +12,6 @@ export {} declare module 'vue' { export interface GlobalComponents { AdminPageHeader: typeof import('./components/admin/AdminPageHeader.vue')['default'] - AdminPaginationBar: typeof import('./components/admin/AdminPaginationBar.vue')['default'] AdminPlatformAgisoSection: typeof import('./components/admin/AdminPlatformAgisoSection.vue')['default'] AdminPlatformCloudtentaclesSection: typeof import('./components/admin/AdminPlatformCloudtentaclesSection.vue')['default'] AdminPlatformKuaishouEticketSection: typeof import('./components/admin/AdminPlatformKuaishouEticketSection.vue')['default'] @@ -22,7 +21,6 @@ declare module 'vue' { AdminStatusTag: typeof import('./components/admin/AdminStatusTag.vue')['default'] ElAlert: typeof import('element-plus/es')['ElAlert'] ElButton: typeof import('element-plus/es')['ElButton'] - ElButtonGroup: typeof import('element-plus/es')['ElButtonGroup'] ElCard: typeof import('element-plus/es')['ElCard'] ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] ElCol: typeof import('element-plus/es')['ElCol'] @@ -42,7 +40,6 @@ declare module 'vue' { ElMenu: typeof import('element-plus/es')['ElMenu'] ElMenuItem: typeof import('element-plus/es')['ElMenuItem'] ElOption: typeof import('element-plus/es')['ElOption'] - ElPageHeader: typeof import('element-plus/es')['ElPageHeader'] ElPagination: typeof import('element-plus/es')['ElPagination'] ElRadioButton: typeof import('element-plus/es')['ElRadioButton'] ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup'] @@ -50,7 +47,6 @@ declare module 'vue' { ElRow: typeof import('element-plus/es')['ElRow'] ElSelect: typeof import('element-plus/es')['ElSelect'] ElSkeleton: typeof import('element-plus/es')['ElSkeleton'] - ElStatistic: typeof import('element-plus/es')['ElStatistic'] ElSwitch: typeof import('element-plus/es')['ElSwitch'] ElTable: typeof import('element-plus/es')['ElTable'] ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] diff --git a/apps/frontend/src/components/admin/AdminPaginationBar.vue b/apps/frontend/src/components/admin/AdminPaginationBar.vue deleted file mode 100644 index 87acc10b..00000000 --- a/apps/frontend/src/components/admin/AdminPaginationBar.vue +++ /dev/null @@ -1,62 +0,0 @@ - - - - - diff --git a/apps/frontend/src/components/admin/AdminStatusTag.vue b/apps/frontend/src/components/admin/AdminStatusTag.vue index 11e16d84..b036a90e 100644 --- a/apps/frontend/src/components/admin/AdminStatusTag.vue +++ b/apps/frontend/src/components/admin/AdminStatusTag.vue @@ -5,7 +5,9 @@ const props = defineProps<{ status: string }>() -function resolveTone(status: string) { +type ElTagType = 'success' | 'primary' | 'warning' | 'danger' | 'info' + +function resolveType(status: string): ElTagType { const normalized = String(status || '').trim().toLowerCase() if (['paid', 'link_generated', 'redeemed', 'available', 'delivered', 'success', 'active', 'system_bound', 'binding_completed', 'completed'].includes(normalized)) { @@ -24,15 +26,13 @@ function resolveTone(status: string) { return 'danger' } - return 'default' + return 'info' } function resolveLabel(status: string) { const normalized = String(status || '').trim() - if (!normalized) { - return '-' - } + if (!normalized) return '-' const labelMap: Record = { created: '已创建', @@ -90,54 +90,7 @@ function resolveLabel(status: string) { - - diff --git a/apps/frontend/src/views/admin/AdminFulfillmentConfigHubView.vue b/apps/frontend/src/views/admin/AdminFulfillmentConfigHubView.vue index 37a23270..b5531149 100644 --- a/apps/frontend/src/views/admin/AdminFulfillmentConfigHubView.vue +++ b/apps/frontend/src/views/admin/AdminFulfillmentConfigHubView.vue @@ -39,17 +39,10 @@ const activeTab = computed({