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