fix: 处理流程设计切换用户类型时未清空已选中值问题
parent
31e14dd7a3
commit
40fcf5ced2
|
|
@ -357,12 +357,11 @@ export default {
|
|||
},
|
||||
watch: {
|
||||
'formData.userType': function(val, oldVal) {
|
||||
const types = ['assignee', 'candidateUsers', 'candidateGroups']
|
||||
if (StrUtil.isNotBlank(oldVal)) {
|
||||
types.forEach(type => {
|
||||
delete this.element.businessObject.$attrs[`flowable:${type}`]
|
||||
delete this.formData[type]
|
||||
})
|
||||
delete this.element.businessObject.$attrs[`flowable:${oldVal}`]
|
||||
delete this.formData[oldVal]
|
||||
// 清除已选人员数据
|
||||
this.checkValues = '';
|
||||
}
|
||||
// 写入userType节点信息到xml
|
||||
this.updateProperties({'flowable:userType': val})
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ export default {
|
|||
watch: {
|
||||
selectValues: {
|
||||
handler(newVal) {
|
||||
if (newVal instanceof Number) {
|
||||
if (newVal instanceof Number || newVal instanceof String) {
|
||||
this.radioSelected = newVal
|
||||
} else {
|
||||
this.selectRoleList = newVal;
|
||||
|
|
|
|||
Loading…
Reference in New Issue