Skip to content

Commit daf8e20

Browse files
committed
修改任务人下拉列表bug
1 parent 7150e81 commit daf8e20

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/components/bpmn/panel/NodePropertyPanel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@
169169
this.updateProperties(properties);
170170
Object.assign(properties, {
171171
userType: Object.keys(properties)[0]
172-
})
172+
});
173173
this.$emit('modifyFormData',properties);
174174
}
175175
}

src/components/bpmn/panel/index.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,13 @@
236236
this.modifyConfigTab(0)
237237
} else {
238238
this.modifyConfigTab(1)
239+
if(element.type == "bpmn:UserTask"){
240+
let _businessObject = element.businessObject;
241+
if(_businessObject.assignee){
242+
_this.formData.userType = "assignee";
243+
_this.formData.assignee = _businessObject.assignee;
244+
}
245+
}
239246
}
240247
})
241248
},
@@ -268,7 +275,7 @@
268275
},
269276
modifyFormData(data){
270277
this.formData.assignee = data.assignee;
271-
console.log(data)
278+
this.formData.userType = data.userType;
272279
}
273280
},
274281
components: {

0 commit comments

Comments
 (0)