fix: 处理流程设计切换用户类型时未清空已选中值问题

rf
tony 2023-01-06 14:05:50 +08:00
parent 31e14dd7a3
commit 40fcf5ced2
2 changed files with 5 additions and 6 deletions

View File

@ -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 = '';
}
// userTypexml
this.updateProperties({'flowable:userType': val})

View File

@ -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;