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