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

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

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