fix: 修复流程设计时流程候选人员无法回显问题

This commit is contained in:
tony
2023-01-12 08:52:40 +08:00
parent f982d2f7fe
commit 0a2d2f0c3c

View File

@@ -493,7 +493,7 @@ export default {
const val = attrs["flowable:candidateUsers"];
if (attrs["flowable:dataType"] === "dynamic") {
this.checkValues = that.expList.find(item => item.expression == val).name;
this.selectValues = that.expList.filter(item => item.expression == val).id;
this.selectValues = that.expList.find(item => item.expression == val).id;
} else {
const newArr = that.userList.filter(i => val.split(',').includes(i.userId))
this.checkValues = newArr.map(item => item.nickName).join(',');
@@ -504,7 +504,7 @@ export default {
const val = businessObject["candidateGroups"] || attrs["flowable:candidateGroups"];
if (attrs["flowable:dataType"] === "dynamic") {
this.checkValues = that.expList.find(item => item.expression == val).name;
this.selectValues = that.expList.filter(item => item.expression == val).id;
this.selectValues = that.expList.find(item => item.expression == val).id;
} else {
const newArr = that.groupList.filter(i => val.split(',').includes(i.roleId))
this.checkValues = newArr.map(item => item.roleName).join(',');