feat: 人员选择组件change事件

main
ssc 4 years ago
parent a738c54230
commit ca7614f33d
  1. 4
      src/views/plugin/workflow/components/wf-user-select/index.vue

@ -51,7 +51,8 @@ export default {
default: () => { default: () => {
return '/api/blade-user/search/user' return '/api/blade-user/search/user'
} }
} },
change: Function
}, },
watch: { watch: {
value: { value: {
@ -87,6 +88,7 @@ export default {
}, },
handleUserSelectConfirm(id) { handleUserSelectConfirm(id) {
this.$emit('input', id) this.$emit('input', id)
if (this.change && typeof this.change == 'function') this.change({ value: id })
}, },
} }
} }

Loading…
Cancel
Save