feat:utask大任务手动提交
This commit is contained in:
parent
8118bec402
commit
25ef072e04
|
@ -245,5 +245,13 @@ export default {
|
|||
);
|
||||
}
|
||||
},
|
||||
submit:{
|
||||
name: "提交",
|
||||
req: async function(id){
|
||||
return await http.post(
|
||||
`${config.API_URL}/pm/utask/${id}/submit/`,
|
||||
);
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
|
@ -153,6 +153,15 @@
|
|||
>
|
||||
编辑
|
||||
</el-button>
|
||||
<el-button
|
||||
link
|
||||
type="primary"
|
||||
@click.stop="table_submit(scope.row)"
|
||||
v-if="scope.row.state == 30"
|
||||
v-auth="'utask.submit'"
|
||||
>
|
||||
提交
|
||||
</el-button>
|
||||
<el-popconfirm
|
||||
title="确定删除吗?"
|
||||
@confirm.stop="table_del(scope.row)"
|
||||
|
@ -172,10 +181,7 @@
|
|||
<el-popconfirm
|
||||
title="确定停止/恢复该任务吗?"
|
||||
@confirm.stop="table_toggle(scope.row)"
|
||||
v-if="
|
||||
scope.row.state == 30 ||
|
||||
scope.row.state == 34
|
||||
"
|
||||
v-if="scope.row.state == 30 ||scope.row.state == 34"
|
||||
v-auth="'utask.toggle'"
|
||||
>
|
||||
<template #reference>
|
||||
|
@ -385,6 +391,12 @@ export default {
|
|||
return err;
|
||||
});
|
||||
},
|
||||
table_submit(row){
|
||||
this.$API.pm.utask.submit.req(row.id).then(res=>{
|
||||
this.$message.success("提交成功");
|
||||
this.$refs.table.refresh();
|
||||
}).catch(err=>{})
|
||||
},
|
||||
table_toggle(row) {
|
||||
this.$API.pm.utask.toggle
|
||||
.req(row.id)
|
||||
|
|
Loading…
Reference in New Issue