mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-03 07:54:45 +00:00
perf: 修改作业执行为弹窗
This commit is contained in:
@@ -10,6 +10,7 @@ import GenericListPage from '@/layout/components/GenericListPage'
|
|||||||
import { ActionsFormatter, DateFormatter } from '@/components/TableFormatters'
|
import { ActionsFormatter, DateFormatter } from '@/components/TableFormatters'
|
||||||
import JobRunDialog from '@/views/ops/Job/JobRunDialog'
|
import JobRunDialog from '@/views/ops/Job/JobRunDialog'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
|
import { openTaskPage } from '@/utils/jms'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@@ -144,9 +145,8 @@ export default {
|
|||||||
this.$axios.post('/api/v1/ops/job-executions/', {
|
this.$axios.post('/api/v1/ops/job-executions/', {
|
||||||
job: row.id,
|
job: row.id,
|
||||||
parameters: parameters
|
parameters: parameters
|
||||||
}).then(() => {
|
}).then((resp) => {
|
||||||
this.$message.success(this.$tc('ops.TaskDispatch'))
|
openTaskPage(resp.task_id)
|
||||||
this.$router.push({ name: 'Execution' })
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user