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