Browse Source

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

master
tony 3 years ago
parent
commit
40fcf5ced2
  1. 9
      ruoyi-ui/src/components/Process/components/nodePanel/task.vue
  2. 2
      ruoyi-ui/src/components/flow/Role/index.vue

9
ruoyi-ui/src/components/Process/components/nodePanel/task.vue

@ -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})

2
ruoyi-ui/src/components/flow/Role/index.vue

@ -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…
Cancel
Save