From cbffa016895a2cdc8e9e59c2a5f6c1ea5fc9c5da Mon Sep 17 00:00:00 2001 From: chengqian Date: Thu, 13 Aug 2026 16:44:59 +0800 Subject: [PATCH] =?UTF-8?q?improve(ui):=E4=BC=98=E5=8C=96=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E7=AB=AF=E6=98=BE=E7=A4=BA=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/admin/src/components/ResponsiveTable.vue | 8 +- web/admin/src/views/finance/BillingPage.vue | 120 ---------- web/admin/src/views/finance/OrdersPage.vue | 13 +- web/admin/src/views/finance/PlansPage.vue | 13 +- .../src/views/finance/PromoCodesPage.vue | 13 +- .../src/views/finance/RedemptionsPage.vue | 25 +- .../src/views/finance/TransactionsPage.vue | 22 +- .../src/views/monitor/AlertEventsPage.vue | 18 +- .../src/views/monitor/AlertRulesPage.vue | 13 +- .../src/views/monitor/ChannelErrorsPage.vue | 15 +- .../views/monitor/ContentFilterLogsPage.vue | 15 +- web/admin/src/views/monitor/CronJobsPage.vue | 11 +- web/admin/src/views/monitor/ErrorLogsPage.vue | 12 +- .../views/monitor/ModelPerformancePage.vue | 10 +- .../src/views/operation/AgreementsPage.vue | 23 +- .../src/views/operation/AnnouncementsPage.vue | 13 +- .../src/views/operation/ChangelogsPage.vue | 13 +- .../src/views/operation/EmailLogsPage.vue | 15 +- .../src/views/operation/FeedbackPage.vue | 33 ++- .../src/views/operation/MessagesPage.vue | 13 +- .../operation/NotificationTemplatesPage.vue | 13 +- web/admin/src/views/operation/TicketsPage.vue | 31 ++- web/admin/src/views/security/AuditPage.vue | 15 +- .../src/views/security/LoginHistoryPage.vue | 100 ++++---- .../src/views/security/PermissionsPage.vue | 7 +- .../views/security/SecuritySettingsPage.vue | 220 ------------------ web/admin/src/views/security/SessionsPage.vue | 8 +- .../views/security/TenantLoginHistoryPage.vue | 101 ++++---- web/admin/src/views/system/FilesPage.vue | 9 +- .../src/views/system/HelpArticlesPage.vue | 3 +- .../src/views/system/HelpCategoriesPage.vue | 3 +- web/admin/src/views/system/PluginsPage.vue | 8 +- web/admin/src/views/system/UsersPage.vue | 8 +- 33 files changed, 474 insertions(+), 470 deletions(-) delete mode 100644 web/admin/src/views/finance/BillingPage.vue delete mode 100644 web/admin/src/views/security/SecuritySettingsPage.vue diff --git a/web/admin/src/components/ResponsiveTable.vue b/web/admin/src/components/ResponsiveTable.vue index 66b956e..1135e71 100644 --- a/web/admin/src/components/ResponsiveTable.vue +++ b/web/admin/src/components/ResponsiveTable.vue @@ -72,6 +72,7 @@ const props = withDefaults( cardFields?: (CardField | string)[] // 卡片网格字段;缺省取除 标题/徽章/副标题/操作 外的全部列 cardActionsKey?: string // 操作列 dataIndex,渲染在卡片底部(默认 'actions') rowClick?: (row: any) => void // 提供后整张卡片可点击(仅移动端;桌面端用 row-click 事件) + rowClass?: (row: any) => string // 自定义行类名(桌面端 ATable row-class,如高亮当前会话) breakpoint?: number // 卡片切换断点(默认 768 = md) }>(), { @@ -105,8 +106,11 @@ const badgeCol = computed(() => props.columns.find((c) => c.dataIndex === props. const subtitleCol = computed(() => props.columns.find((c) => c.dataIndex === props.cardSubtitleKey)) const actionsCol = computed(() => props.columns.find((c) => c.dataIndex === props.cardActionsKey)) -// 桌面端行类名:可点击时显示手型 -const rowClassHandler = () => (props.rowClick ? 'cursor-pointer' : '') +// 桌面端行类名:合并页面自定义 rowClass + 可点击时的手型 +const rowClassHandler = (record: any) => { + const cls = typeof props.rowClass === 'function' ? props.rowClass(record) || '' : '' + return [cls, props.rowClick ? 'cursor-pointer' : ''].filter(Boolean).join(' ') || undefined +} // 网格字段:按 cardFields 顺序取;未传 cardFields(undefined)时用除 标题/徽章/副标题/操作 外的全部列。 // 注意:显式传 :card-fields="[]" 表示「不要字段网格」,必须与「未传」区分,不能按 truthy 判断。 diff --git a/web/admin/src/views/finance/BillingPage.vue b/web/admin/src/views/finance/BillingPage.vue deleted file mode 100644 index ebf3924..0000000 --- a/web/admin/src/views/finance/BillingPage.vue +++ /dev/null @@ -1,120 +0,0 @@ - - - - - diff --git a/web/admin/src/views/finance/OrdersPage.vue b/web/admin/src/views/finance/OrdersPage.vue index 178f5a9..37d13dd 100644 --- a/web/admin/src/views/finance/OrdersPage.vue +++ b/web/admin/src/views/finance/OrdersPage.vue @@ -6,6 +6,7 @@ import { import type { TableColumnData } from '@arco-design/web-vue' import PageHeader from '@/components/PageHeader.vue' import TableStats from '@/components/TableStats.vue' +import ResponsiveTable from '@/components/ResponsiveTable.vue' import request from '@/utils/request' import { useExport } from '@/composables/useExport' @@ -139,7 +140,17 @@ const { exporting, exportFile } = useExport({ - + - +