|
|
@ -93,6 +93,7 @@ const tableCol = [ |
|
|
|
{ label: '任务类型', prop: 'mode', minWidth: '10%' }, |
|
|
|
{ label: '任务类型', prop: 'mode', minWidth: '10%' }, |
|
|
|
{ label: '任务状态', prop: 'status', minWidth: '10%' }, |
|
|
|
{ label: '任务状态', prop: 'status', minWidth: '10%' }, |
|
|
|
{ label: '创建时间', prop: 'startTime', minWidth: '10%' }, |
|
|
|
{ label: '创建时间', prop: 'startTime', minWidth: '10%' }, |
|
|
|
|
|
|
|
{ label: '任务详情', prop: 'info', minWidth: '20%' }, |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -102,7 +103,6 @@ const list = ref<TaskList[]>([]) |
|
|
|
const queryParams = reactive({ |
|
|
|
const queryParams = reactive({ |
|
|
|
page: 1, |
|
|
|
page: 1, |
|
|
|
size: undefined, |
|
|
|
size: undefined, |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
const tableRef = ref() |
|
|
|
const tableRef = ref() |
|
|
|
const getList = async () => { |
|
|
|
const getList = async () => { |
|
|
@ -139,7 +139,7 @@ const onCancel = async (id: string) => { |
|
|
|
await getList() |
|
|
|
await getList() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function onTaskFinish(id: string, status: -1 | 0 | 1 | 2 | 3) { |
|
|
|
function onTaskFinish(id: string, status: -1 | 0 | 1 | 2 | 3) { |
|
|
|
const curTask = list.value.findIndex(item => item.id === id) |
|
|
|
const curTask = list.value.findIndex(item => item.id === id) |
|
|
|
if (curTask !== -1) { |
|
|
|
if (curTask !== -1) { |
|
|
|
list.value[curTask].status = status |
|
|
|
list.value[curTask].status = status |
|
|
|