mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-01 06:58:01 +00:00
perf: 增加celery输出
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
<script type="text/jsx">
|
<script type="text/jsx">
|
||||||
import ListTable from '@/components/ListTable'
|
import ListTable from '@/components/ListTable'
|
||||||
|
import { openTaskPage } from '@/utils/jms'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'TaskHistory',
|
name: 'TaskHistory',
|
||||||
@@ -21,13 +22,9 @@ export default {
|
|||||||
tableConfig: {
|
tableConfig: {
|
||||||
url: `/api/v1/ops/task-executions/?task_id=${this.object.id}`,
|
url: `/api/v1/ops/task-executions/?task_id=${this.object.id}`,
|
||||||
columns: [
|
columns: [
|
||||||
'date_start', 'date_finished', 'state', 'is_finished', 'actions'
|
'date_start', 'date_finished', 'is_success', 'is_finished', 'actions'
|
||||||
],
|
],
|
||||||
columnsMeta: {
|
columnsMeta: {
|
||||||
state: {
|
|
||||||
formatter: (row) => {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
actions: {
|
actions: {
|
||||||
prop: 'id',
|
prop: 'id',
|
||||||
formatterArgs: {
|
formatterArgs: {
|
||||||
@@ -38,10 +35,10 @@ export default {
|
|||||||
extraActions: [
|
extraActions: [
|
||||||
{
|
{
|
||||||
name: 'detail',
|
name: 'detail',
|
||||||
title: this.$t('ops.detail'),
|
title: this.$t('ops.output'),
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
callback: function({ row, tableData }) {
|
callback: function({ row, tableData }) {
|
||||||
return this.$router.push({ name: 'HistoryExecutionDetail', params: { id: row.id }})
|
openTaskPage(row.id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user