fix(流程设计): 修复审批人为"发起人",assignee为正确填充问题。

This commit is contained in:
konbai
2022-12-16 23:28:56 +08:00
parent eacd4b1975
commit 7921adc53f

View File

@@ -397,6 +397,12 @@ export default {
this.changeMultiLoopType(this.multiLoopType); this.changeMultiLoopType(this.multiLoopType);
}, },
changeDataType(val) { changeDataType(val) {
if (val === 'ROLES' || val === 'DEPTS' || (val === 'USERS' && this.selectedUser.ids.length > 1)) {
this.showMultiFlog = true;
} else {
this.showMultiFlog = false;
}
this.changeMultiLoopType('Null');
// 清空 userTaskForm 所有属性值 // 清空 userTaskForm 所有属性值
Object.keys(userTaskForm).forEach(key => userTaskForm[key] = null); Object.keys(userTaskForm).forEach(key => userTaskForm[key] = null);
userTaskForm.dataType = val; userTaskForm.dataType = val;
@@ -442,13 +448,6 @@ export default {
userTaskForm.text = "流程发起人"; userTaskForm.text = "流程发起人";
} }
this.updateElementTask(); this.updateElementTask();
if (val === 'ROLES' || val === 'DEPTS' || (val === 'USERS' && this.selectedUser.ids.length > 1)) {
this.showMultiFlog = true;
} else {
this.showMultiFlog = false;
}
this.multiLoopType = 'Null';
this.changeMultiLoopType(this.multiLoopType);
}, },
getElementLoop(businessObject) { getElementLoop(businessObject) {
if (!businessObject.loopCharacteristics) { if (!businessObject.loopCharacteristics) {
@@ -466,6 +465,7 @@ export default {
} }
}, },
changeMultiLoopType(type) { changeMultiLoopType(type) {
this.multiLoopType = type;
// 取消多实例配置 // 取消多实例配置
if (type === "Null") { if (type === "Null") {
window.bpmnInstances.modeling.updateProperties(this.bpmnElement, { loopCharacteristics: null, assignee: null }); window.bpmnInstances.modeling.updateProperties(this.bpmnElement, { loopCharacteristics: null, assignee: null });