fix:日志中工段问题修改

This commit is contained in:
shijing 2024-12-03 09:45:01 +08:00
parent 048a8976db
commit 148584b8aa
1 changed files with 8 additions and 7 deletions

View File

@ -146,16 +146,17 @@ export default {
that.$API.mtm.mgroup.list that.$API.mtm.mgroup.list
.req({ page: 0, name: that.mgroupName }) .req({ page: 0, name: that.mgroupName })
.then((res) => { .then((res) => {
if(res.length != 1){ if(res.length>0){
that.mgroupId = res[0].id;
that.deptId = res[0].belong_dept;
that.processId = res[0].process;
that.processCate = res[0].process_cate;
that.params.mgroup = res[0].id;
that.apiObj = this.$API.pm.mtask.list;
}else{
that.$message.error("获取工段错误"); that.$message.error("获取工段错误");
return; return;
} }
that.mgroupId = res[0].id;
that.deptId = res[0].belong_dept;
that.processId = res[0].process;
that.processCate = res[0].process_cate;
that.params.mgroup = res[0].id;
that.apiObj = this.$API.pm.mtask.list;
}); });
}, },
methods: { methods: {