diff --git a/docs/system-functional-test-cases.md b/docs/system-functional-test-cases.md index 60c9b07..2bbb9f0 100644 --- a/docs/system-functional-test-cases.md +++ b/docs/system-functional-test-cases.md @@ -5018,6 +5018,7 @@ npm run verify:phase8 | TC-REPORT-WORKBENCH-008 | 短信通道管理进入报备详情 | 使用后端分页,默认按今日发送条数全量降序后分页;可按关键词、状态、运营商及今日发送区间查询;状态弹窗展示当前上下文和放弃风险 | | TC-REPORT-WORKBENCH-009 | 导入命中已有签名且用途列未映射或为空 | 识别为补资料;未提供字段保持原值,提供的动态字段覆盖同名值并追加新字段;用途不得被空字符串清空;审核前不改真实签名 | | TC-REPORT-WORKBENCH-010 | 在状态记录按批次、操作人、状态、入口、对象和时间搜索 | 返回真实状态记录及操作人;可追溯人工修改来源;分页、空数据、失败和历史无入口记录均正确展示 | +| TC-REPORT-WORKBENCH-020 | 1600px大屏PC查看状态记录列表 | 列表合并展示“变更对象”、“变更动作”和“操作人 / 时间”,无需左右滚动;备注、修改入口等完整信息仍可在详情弹窗查看,搜索参数和真实API不变 | | TC-REPORT-WORKBENCH-011 | 桌面及390px窄屏查看四页和状态弹窗 | 桌面表格可扫描;窄屏核心主体、状态、今日发送和操作可访问,无按钮遮挡;控制台无新增错误,所有业务数据来自真实API/PostgreSQL | | TC-REPORT-WORKBENCH-012 | 查看企业签名表头和签名列表 | 签名列不显示升序、降序或其他排序按钮;列表不显示逐行待生成明细字段;默认按创建时间倒序 | | TC-REPORT-WORKBENCH-013 | 通道报备明细当前页有10条数据,点击右上角“全选当页” | 当前页10条全部选中,按钮变为“取消全选”,批量数为10;该按钮与“批量修改状态”保持统一操作区间距;翻页或查询后选择清空,不选中其他页面数据 | diff --git a/src/apps/admin/AdminReportRecordsPage.tsx b/src/apps/admin/AdminReportRecordsPage.tsx index 0a0d621..f6e55f5 100644 --- a/src/apps/admin/AdminReportRecordsPage.tsx +++ b/src/apps/admin/AdminReportRecordsPage.tsx @@ -192,68 +192,65 @@ export function AdminReportRecordsPage() { { key: 'task', title: '报备任务号', - width: '190px', - render: (record) => {record.taskId}, - }, - { key: 'channel', title: '通道名称', width: '180px', render: (record) => record.channel?.name ?? '-' }, - { - key: 'targetType', - title: '变更主体', - width: '110px', - render: (record) => ( - - {record.task?.reportType === 'drainage' ? '引流信息' : '签名'} - - ), + width: '160px', + render: (record) => {record.taskId}, }, + { key: 'channel', title: '通道名称', width: '130px', render: (record) => record.channel?.name ?? '-' }, { key: 'target', - title: '主体内容', - width: '260px', + title: '变更对象', + width: '230px', render: (record) => record.task?.reportType === 'drainage' ? ( -
+
+ 引流信息 {record.task?.signature?.name ?? '-'} {record.task?.drainageInfo?.url ?? '-'} - {record.task?.drainageInfo?.remark ? {record.task.drainageInfo.remark} : null}
) : ( -
+
+ 签名 {record.task?.signature?.name ?? '-'} - {record.task?.signature?.purpose ? {record.task.signature.purpose} : null}
), }, - { key: 'source', title: '修改入口', width: '150px', render: (record) => recordSource(record) }, { - key: 'operator', - title: '操作人', - width: '140px', - render: (record) => record.operator?.displayName ?? record.operator?.username ?? '系统', + key: 'action', + title: '变更动作', + width: '180px', + render: (record) => ( +
+ {actionLabel[record.action] ?? record.action} + {recordSource(record)} +
+ ), }, - { key: 'action', title: '动作', width: '170px', render: (record) => actionLabel[record.action] ?? record.action }, { key: 'status', title: '状态变化', - width: '210px', + width: '150px', render: (record) => ( {`${translateStatus(record.statusBefore)} → ${translateStatus(record.statusAfter)}`} ), }, - { key: 'time', title: '记录时间', width: '190px', render: (record) => record.createdAt ?? '-' }, { - key: 'reason', - title: '备注', - width: '320px', - render: (record) => {record.reason ?? '-'}, + key: 'operatorTime', + title: '操作人 / 时间', + width: '175px', + render: (record) => ( +
+ {record.operator?.displayName ?? record.operator?.username ?? '系统'} + {record.createdAt ?? '-'} +
+ ), }, { key: 'actions', title: '操作', align: 'right', - width: '120px', + width: '76px', render: (record) => (