增加自审批节点,修改待办查询bug,修改角色查询bug

This commit is contained in:
QM303176530
2020-11-28 18:59:02 +08:00
parent 15d6ff0144
commit f32fdbf543
5 changed files with 33 additions and 13 deletions

View File

@@ -130,6 +130,17 @@ export default {
},
saveImg() {
console.log(this.$refs["wfd"].graph.saveImg());
},
fmtAuthority(authorityList,list){
authorityList.map(item => {
list.push({
id: item.authorityId,
name: item.authorityName
});
if(item.children){
this.fmtAuthority(item.children,list)
}
});
}
},
async created() {
@@ -140,14 +151,8 @@ export default {
});
}
const authorityRes = await getAuthorityList({ page: 1, pageSize: 9999999 });
console.log(authorityRes)
if (authorityRes.code == 0) {
authorityRes.data.list.map(item => {
this.authorities.push({
id: item.authorityId,
name: item.authorityName
});
});
this.fmtAuthority(authorityRes.data.list,this.authorities)
}
if(this.$route.query.id){
const res = await findWorkflowProcess({ id: this.$route.query.id });