From de415ff3c1943dbdfa973aad6fb6794f4d8fb99e Mon Sep 17 00:00:00 2001 From: wangdl Date: Mon, 15 Jun 2026 21:38:16 +0800 Subject: [PATCH] fix: add materialId filter + column to RecordPage Review finding: missing materialId filter input and list column. Co-Authored-By: Claude Opus 4.7 --- src/pages/learning/DataPages.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pages/learning/DataPages.tsx b/src/pages/learning/DataPages.tsx index c175cf2..65a0e6d 100644 --- a/src/pages/learning/DataPages.tsx +++ b/src/pages/learning/DataPages.tsx @@ -304,8 +304,9 @@ export function RecordPage() { }); const columns = [ - { title: '用户', dataIndex: 'userId', key: 'userId', width: 100, ellipsis: true }, - { title: '标题', dataIndex: 'title', key: 'title', width: 200 }, + { title: '用户', dataIndex: 'userId', key: 'userId', width: 90, ellipsis: true }, + { title: '资料', dataIndex: 'materialId', key: 'materialId', width: 100, ellipsis: true, render: (v?: string) => v?.slice(0,12) || '-' }, + { title: '标题', dataIndex: 'title', key: 'title', width: 180 }, { title: '类型', dataIndex: 'recordType', key: 'recordType', width: 100, render: (t: string) => {t} }, { title: '时长', dataIndex: 'durationSeconds', key: 'duration', width: 80 }, { title: '时间', dataIndex: 'occurredAt', key: 'occurredAt', width: 160, render: (t: string) => t ? dayjs(t).format('MM-DD HH:mm') : '-' }, @@ -315,6 +316,7 @@ export function RecordPage() { setFilters(f => ({ ...f, userId: e.target.value }))} style={{ width: 140 }} /> + setFilters(f => ({ ...f, materialId: e.target.value }))} style={{ width: 140 }} />