+
{text},
+ },
+ {
+ title: '消耗ID',
+ dataIndex: 'id',
+ key: 'id',
+ ellipsis: true,
+ render: (text: string) => {text},
+ },
+ {
+ title: '授权ID',
+ dataIndex: 'authorizationId',
+ key: 'authorizationId',
+ ellipsis: true,
+ },
+ {
+ title: '消耗类型',
+ dataIndex: 'type',
+ key: 'type',
+ width: 120,
+ render: (text: string) => {
+ const config = consumptionTypeConfig[text as keyof typeof consumptionTypeConfig];
+ return {config?.label};
+ },
+ },
+ {
+ title: '消耗金额',
+ dataIndex: 'amount',
+ key: 'amount',
+ width: 120,
+ render: (text: number) => {text} 元,
+ },
+ {
+ title: '消耗描述',
+ dataIndex: 'description',
+ key: 'description',
+ ellipsis: true,
+ },
+ {
+ title: '消耗时间',
+ dataIndex: 'createdAt',
+ key: 'createdAt',
+ width: 160,
+ },
+ ]}
+ pagination={{
+ pageSize: 10,
+ showSizeChanger: true,
+ showTotal: (total) => `共 ${total} 条记录`,
+ }}
+ rowKey="id"
+ bordered={false}
+ scroll={{ x: 'max-content' }}
+ />
+
+
);
};
diff --git a/video-gen-app/src/pages/RecordsPage.tsx b/video-gen-app/src/pages/RecordsPage.tsx
index 3fe08761..cf6a26e9 100644
--- a/video-gen-app/src/pages/RecordsPage.tsx
+++ b/video-gen-app/src/pages/RecordsPage.tsx
@@ -154,9 +154,6 @@ const RecordsPage: React.FC = () => {
const isGenerating = generating[record.id];
const isExpanded = expandedId === record.id;
const type: any = record.genType || 'image';
-
-
-
return (
{/* Record summary row */}