feat: opt exec log

This commit is contained in:
engigu
2026-01-01 14:42:33 +08:00
parent 4dfd45ec69
commit 756ba1e0ea
9 changed files with 115 additions and 30 deletions
+4
View File
@@ -305,6 +305,8 @@ export interface TaskLog {
command: string
status: string
duration: number
start_time: string | null
end_time: string | null
created_at: string
}
@@ -322,6 +324,8 @@ export interface LogDetail {
output: string
status: string
duration: number
start_time: string | null
end_time: string | null
created_at: string
}
+6 -2
View File
@@ -248,8 +248,12 @@ watch(() => route.query.task_id, (newTaskId) => {
<span>{{ formatDuration(selectedLog.duration) }}</span>
</div>
<div class="flex justify-between">
<span class="text-muted-foreground">执行时间</span>
<span>{{ selectedLog.created_at }}</span>
<span class="text-muted-foreground">开始时间</span>
<span>{{ selectedLog.start_time || '-' }}</span>
</div>
<div class="flex justify-between">
<span class="text-muted-foreground">结束时间</span>
<span>{{ selectedLog.end_time || '-' }}</span>
</div>
<div class="pt-1">
<span class="text-muted-foreground">命令</span>