mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-23 16:00:52 +00:00
fix: Fix the problem of abnormal display of snapshot task logs (#8676)
Refs #8657
This commit is contained in:
@@ -103,7 +103,6 @@ func (u *CronjobService) loadTask(cronjob *model.Cronjob, record *model.JobRecor
|
||||
case "log":
|
||||
err = u.handleSystemLog(*cronjob, record.StartTime, taskItem)
|
||||
case "snapshot":
|
||||
taskItem.Task.Type = task.TaskScopeSnapshot
|
||||
_ = cronjobRepo.UpdateRecords(record.ID, map[string]interface{}{"records": record.Records})
|
||||
err = u.handleSnapshot(*cronjob, *record, taskItem)
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
<template #default="{ row }">
|
||||
<div>
|
||||
<el-button
|
||||
@click="openWithResource(row, 'create')"
|
||||
@click="openTaskLog(row.taskID)"
|
||||
link
|
||||
v-if="row.status === 'Waiting'"
|
||||
type="primary"
|
||||
@@ -99,7 +99,7 @@
|
||||
{{ $t('setting.snapshot') }}{{ $t('commons.status.waiting') }}
|
||||
</el-button>
|
||||
<el-button
|
||||
@click="openWithResource(row, 'create')"
|
||||
@click="openTaskLog(row.taskID)"
|
||||
link
|
||||
v-if="row.status === 'Failed'"
|
||||
type="danger"
|
||||
@@ -115,7 +115,7 @@
|
||||
@click="reCreate(row)"
|
||||
/>
|
||||
<el-button
|
||||
@click="openWithResource(row, 'create')"
|
||||
@click="openTaskLog(row.taskID)"
|
||||
link
|
||||
v-if="row.status === 'Success'"
|
||||
type="success"
|
||||
|
||||
Reference in New Issue
Block a user