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>
|
||||||
|
<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
|
<el-popconfirm
|
||||||
title="确定删除吗?"
|
title="确定删除吗?"
|
||||||
@confirm.stop="table_del(scope.row)"
|
@confirm.stop="table_del(scope.row)"
|
||||||
|
|
@ -172,10 +181,7 @@
|
||||||
<el-popconfirm
|
<el-popconfirm
|
||||||
title="确定停止/恢复该任务吗?"
|
title="确定停止/恢复该任务吗?"
|
||||||
@confirm.stop="table_toggle(scope.row)"
|
@confirm.stop="table_toggle(scope.row)"
|
||||||
v-if="
|
v-if="scope.row.state == 30 ||scope.row.state == 34"
|
||||||
scope.row.state == 30 ||
|
|
||||||
scope.row.state == 34
|
|
||||||
"
|
|
||||||
v-auth="'utask.toggle'"
|
v-auth="'utask.toggle'"
|
||||||
>
|
>
|
||||||
<template #reference>
|
<template #reference>
|
||||||
|
|
@ -385,6 +391,12 @@ export default {
|
||||||
return err;
|
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) {
|
table_toggle(row) {
|
||||||
this.$API.pm.utask.toggle
|
this.$API.pm.utask.toggle
|
||||||
.req(row.id)
|
.req(row.id)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue