feat: 显示完成时间
This commit is contained in:
parent
e2ebd2fb09
commit
12c1b5f75e
|
|
@ -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)}
|
||||
|
|
|
|||
Loading…
Reference in New Issue