zuoyetijiao

This commit is contained in:
2309368887@qq.com 2022-06-23 10:04:31 +08:00
parent 3ae7648954
commit 2039b52b40
3 changed files with 3 additions and 2 deletions

View File

@ -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);
}
},

View File

@ -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: {

View File

@ -198,6 +198,7 @@
},
run(task){
this.$API.system.task.runOnce.req(task.id).then(res=>{
console.log(res)
})
this.$message.success(`已成功执行计划任务:${task.title}`)
}