diff --git a/src/views/job/task/index.vue b/src/views/job/task/index.vue index 0b691cd..a9b78a4 100644 --- a/src/views/job/task/index.vue +++ b/src/views/job/task/index.vue @@ -171,7 +171,20 @@ const { columnChecks, columns, data, getData, loading, mobilePagination, searchP fixed: 'right', render: row => (
- edit(row.id!)}> + handleTriggerJob(row.id!)}> + {{ + default: () => $t('common.confirmExecute'), + trigger: () => ( + + {$t('common.execute')} + + ) + }} + + goToBatch(row.id!)}> + {$t('common.batchList')} + + edit(row.id!)}> {$t('common.edit')} {hasAuth('R_ADMIN') ? ( @@ -188,20 +201,6 @@ const { columnChecks, columns, data, getData, loading, mobilePagination, searchP ) : ( '' )} - - handleTriggerJob(row.id!)}> - {{ - default: () => $t('common.confirmExecute'), - trigger: () => ( - - {$t('common.execute')} - - ) - }} - - goToBatch(row.id!)}> - {$t('common.batchList')} -
) } @@ -232,9 +231,9 @@ function edit(id: string) { async function handleTriggerJob(id: string) { const { error } = await fetchTriggerJob(id); if (error) { - window.$message?.success($t('common.executeSuccess')); - } else { window.$message?.error($t('common.executeFailed')); + } else { + window.$message?.success($t('common.executeSuccess')); } }