perf: 修改作业执行为弹窗

This commit is contained in:
Aaron3S
2023-01-30 15:04:26 +08:00
parent bb431bf58b
commit ac5ec22d5e

View File

@@ -10,6 +10,7 @@ import GenericListPage from '@/layout/components/GenericListPage'
import { ActionsFormatter, DateFormatter } from '@/components/TableFormatters'
import JobRunDialog from '@/views/ops/Job/JobRunDialog'
import { mapGetters } from 'vuex'
import { openTaskPage } from '@/utils/jms'
export default {
components: {
@@ -144,9 +145,8 @@ export default {
this.$axios.post('/api/v1/ops/job-executions/', {
job: row.id,
parameters: parameters
}).then(() => {
this.$message.success(this.$tc('ops.TaskDispatch'))
this.$router.push({ name: 'Execution' })
}).then((resp) => {
openTaskPage(resp.task_id)
})
}
}