feat: 显示完成时间

This commit is contained in:
oliviamn 2025-06-01 15:47:58 +08:00
parent e2ebd2fb09
commit 12c1b5f75e
1 changed files with 6 additions and 0 deletions

View File

@ -130,6 +130,7 @@ const FileList: React.FC<FileListProps> = ({ files, onFileStatusChange }) => {
<TableCell>Filename</TableCell>
<TableCell>Status</TableCell>
<TableCell>Created At</TableCell>
<TableCell>Finished At</TableCell>
<TableCell>Actions</TableCell>
</TableRow>
</TableHead>
@ -153,6 +154,11 @@ const FileList: React.FC<FileListProps> = ({ files, onFileStatusChange }) => {
<TableCell>
{new Date(file.created_at).toLocaleString()}
</TableCell>
<TableCell>
{(file.status === FileStatus.SUCCESS || file.status === FileStatus.FAILED)
? new Date(file.updated_at).toLocaleString()
: '—'}
</TableCell>
<TableCell>
<IconButton
onClick={() => handleDeleteClick(file.id)}