zuoyetijiao
This commit is contained in:
parent
3ae7648954
commit
2039b52b40
|
|
@ -319,7 +319,7 @@ export default {
|
||||||
},
|
},
|
||||||
runOnce: {
|
runOnce: {
|
||||||
name: "执行一次",
|
name: "执行一次",
|
||||||
req: async function(data){
|
req: async function(data,id){
|
||||||
return await http.post(`${config.API_URL}/system/ptask/${id}/run_once/`,data);
|
return await http.post(`${config.API_URL}/system/ptask/${id}/run_once/`,data);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ export default {
|
||||||
ticketItem: {
|
ticketItem: {
|
||||||
name: "工单详情",
|
name: "工单详情",
|
||||||
req: async function(id){
|
req: async function(id){
|
||||||
return await http.get(`${config.API_URL}/wf/ticket/${id}/`);
|
return await http.get(`${config.API_URL}/wf/ticket/${id}/`);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
create: {
|
create: {
|
||||||
|
|
|
||||||
|
|
@ -198,6 +198,7 @@
|
||||||
},
|
},
|
||||||
run(task){
|
run(task){
|
||||||
this.$API.system.task.runOnce.req(task.id).then(res=>{
|
this.$API.system.task.runOnce.req(task.id).then(res=>{
|
||||||
|
console.log(res)
|
||||||
})
|
})
|
||||||
this.$message.success(`已成功执行计划任务:${task.title}`)
|
this.$message.success(`已成功执行计划任务:${task.title}`)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue