mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-12 05:15:59 +08:00
fix: Fix the problem of abnormal display of snapshot task logs (#8676)
Refs #8657
This commit is contained in:
parent
b817f13212
commit
c72bbaa5f7
2 changed files with 3 additions and 4 deletions
|
|
@ -103,7 +103,6 @@ func (u *CronjobService) loadTask(cronjob *model.Cronjob, record *model.JobRecor
|
||||||
case "log":
|
case "log":
|
||||||
err = u.handleSystemLog(*cronjob, record.StartTime, taskItem)
|
err = u.handleSystemLog(*cronjob, record.StartTime, taskItem)
|
||||||
case "snapshot":
|
case "snapshot":
|
||||||
taskItem.Task.Type = task.TaskScopeSnapshot
|
|
||||||
_ = cronjobRepo.UpdateRecords(record.ID, map[string]interface{}{"records": record.Records})
|
_ = cronjobRepo.UpdateRecords(record.ID, map[string]interface{}{"records": record.Records})
|
||||||
err = u.handleSnapshot(*cronjob, *record, taskItem)
|
err = u.handleSnapshot(*cronjob, *record, taskItem)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,7 @@
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<div>
|
<div>
|
||||||
<el-button
|
<el-button
|
||||||
@click="openWithResource(row, 'create')"
|
@click="openTaskLog(row.taskID)"
|
||||||
link
|
link
|
||||||
v-if="row.status === 'Waiting'"
|
v-if="row.status === 'Waiting'"
|
||||||
type="primary"
|
type="primary"
|
||||||
|
|
@ -99,7 +99,7 @@
|
||||||
{{ $t('setting.snapshot') }}{{ $t('commons.status.waiting') }}
|
{{ $t('setting.snapshot') }}{{ $t('commons.status.waiting') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
@click="openWithResource(row, 'create')"
|
@click="openTaskLog(row.taskID)"
|
||||||
link
|
link
|
||||||
v-if="row.status === 'Failed'"
|
v-if="row.status === 'Failed'"
|
||||||
type="danger"
|
type="danger"
|
||||||
|
|
@ -115,7 +115,7 @@
|
||||||
@click="reCreate(row)"
|
@click="reCreate(row)"
|
||||||
/>
|
/>
|
||||||
<el-button
|
<el-button
|
||||||
@click="openWithResource(row, 'create')"
|
@click="openTaskLog(row.taskID)"
|
||||||
link
|
link
|
||||||
v-if="row.status === 'Success'"
|
v-if="row.status === 'Success'"
|
||||||
type="success"
|
type="success"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue