Skip to content

Commit

Permalink
Merge pull request #6756 from GuoLiBin6/feat/glb-to-3.10/src
Browse files Browse the repository at this point in the history
fix(v3.10/9927): 新建通知渠道,切换归属时切换检查通知渠道类型及时切换表单
  • Loading branch information
easy-mj committed Jun 21, 2024
2 parents 9b08325 + 9d14972 commit 6adba6f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions containers/IAM/views/notifyconfig/create/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export default {
'scope',
{
initialValue: scope,
rules: [{ required: true, message: `${this.$t('common.select')}` }],
},
],
domain: [
Expand Down Expand Up @@ -145,6 +146,15 @@ export default {
return this.types.filter(v => !['email', 'mobile'].includes(v.key))
},
},
watch: {
'form.fd.scope' (val) {
if (!this.typesOpts.some(item => item.key === val)) {
this.form.fc.setFieldsValue({
type: '',
})
}
},
},
created () {
this.manager = new this.$Manager('notifyconfigs', 'v1')
this.notifytemplatesManager = new this.$Manager('notifytemplates/save', 'v1')
Expand Down

0 comments on commit 6adba6f

Please sign in to comment.