mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-11 03:22:06 +00:00
perf: 优化job 页面
This commit is contained in:
parent
608b8b727f
commit
d46e49df2a
@ -713,7 +713,8 @@
|
||||
"JobType": "作业类型",
|
||||
"Comment": "备注",
|
||||
"History": "执行历史",
|
||||
"UseParameterDefine": "定义参数"
|
||||
"UseParameterDefine": "定义参数",
|
||||
"TaskDispatch": "任务下发成功"
|
||||
},
|
||||
"perms": {
|
||||
"": "",
|
||||
|
@ -8,7 +8,6 @@
|
||||
<script>
|
||||
import GenericListPage from '@/layout/components/GenericListPage'
|
||||
import { ActionsFormatter, DateFormatter } from '@/components/TableFormatters'
|
||||
import { openTaskPage } from '@/utils/jms'
|
||||
import JobRunDialog from '@/views/ops/Job/JobRunDialog'
|
||||
|
||||
export default {
|
||||
@ -119,10 +118,8 @@ export default {
|
||||
this.$axios.post('/api/v1/ops/job-executions/', {
|
||||
job: row.id,
|
||||
parameters: parameters
|
||||
}).then(data => {
|
||||
this.$axios.get(`/api/v1/ops/job-executions/${data.id}/`).then(d => {
|
||||
openTaskPage(d.task_id)
|
||||
})
|
||||
}).then(() => {
|
||||
this.$message.success(this.$tc('ops.TaskDispatch'))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user