fix -- 修复流程设计"指定用户"类型xml生成错误bug
This commit is contained in:
@@ -176,8 +176,13 @@ export default {
|
|||||||
if (this.dataType === 'USERS') {
|
if (this.dataType === 'USERS') {
|
||||||
let userIdData = bpmnElementObj['assignee'] || bpmnElementObj['candidateUsers'];
|
let userIdData = bpmnElementObj['assignee'] || bpmnElementObj['candidateUsers'];
|
||||||
let userText = bpmnElementObj['text'] || [];
|
let userText = bpmnElementObj['text'] || [];
|
||||||
this.selectedUser.ids = userIdData?.toString().split(',');
|
if (userIdData && userIdData.length > 0 && userText && userText.length > 0) {
|
||||||
this.selectedUser.text = userText?.split(',');
|
this.selectedUser.ids = userIdData?.toString().split(',');
|
||||||
|
this.selectedUser.text = userText?.split(',');
|
||||||
|
} else {
|
||||||
|
this.selectedUser.ids = []
|
||||||
|
this.selectedUser.text = []
|
||||||
|
}
|
||||||
} else if (this.dataType === 'ROLES') {
|
} else if (this.dataType === 'ROLES') {
|
||||||
this.getRoleOptions();
|
this.getRoleOptions();
|
||||||
let roleIdData = bpmnElementObj['candidateGroups'] || [];
|
let roleIdData = bpmnElementObj['candidateGroups'] || [];
|
||||||
@@ -292,9 +297,11 @@ export default {
|
|||||||
let data = this.selectedUserDate[0];
|
let data = this.selectedUserDate[0];
|
||||||
userTaskForm.assignee = data.userId;
|
userTaskForm.assignee = data.userId;
|
||||||
userTaskForm.text = data.nickName;
|
userTaskForm.text = data.nickName;
|
||||||
|
userTaskForm.candidateUsers = null;
|
||||||
} else {
|
} else {
|
||||||
userTaskForm.candidateUsers = this.selectedUserDate.map(k => k.userId).join() || null;
|
userTaskForm.candidateUsers = this.selectedUserDate.map(k => k.userId).join() || null;
|
||||||
userTaskForm.text = this.selectedUserDate.map(k => k.nickName).join() || null;
|
userTaskForm.text = this.selectedUserDate.map(k => k.nickName).join() || null;
|
||||||
|
userTaskForm.assignee = null;
|
||||||
}
|
}
|
||||||
this.updateElementTask()
|
this.updateElementTask()
|
||||||
this.userOpen = false;
|
this.userOpen = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user