diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningGroups/_source/createWarning.vue b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningGroups/_source/createWarning.vue index b317096e18..0d3a335d8a 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningGroups/_source/createWarning.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningGroups/_source/createWarning.vue @@ -38,12 +38,12 @@ @@ -75,7 +75,7 @@ return { store, groupName: '', - groupType: 'EMAIL', + alertInstanceIds: null, description: '', options: [{ code: `${i18n.$t('Email')}`, id: 'EMAIL' }, { code: `${i18n.$t('SMS')}`, id: 'SMS' }] } @@ -115,7 +115,7 @@ _submit () { let param = { groupName: this.groupName, - groupType: this.groupType, + alertInstanceIds: this.alertInstanceIds, description: this.description } if (this.item) { @@ -141,7 +141,7 @@ created () { if (this.item) { this.groupName = this.item.groupName - this.groupType = this.item.groupType + this.alertInstanceIds = Number(this.item.alertInstanceIds) this.description = this.item.description } }, diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningGroups/_source/list.vue b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningGroups/_source/list.vue index a06e868e15..c3c0a9e343 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningGroups/_source/list.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningGroups/_source/list.vue @@ -20,11 +20,6 @@ - - - diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningGroups/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningGroups/index.vue index 88b16ef7a9..53b4783a53 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningGroups/index.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningGroups/index.vue @@ -90,7 +90,7 @@ mixins: [listUrlParamHandle], props: {}, methods: { - ...mapActions('security', ['getAlertgroupP', 'queryAllAlertPluginInstance']), + ...mapActions('security', ['queryAlertGroupListPaging', 'queryAllAlertPluginInstance']), /** * Inquire */ @@ -112,7 +112,7 @@ }, _create (item) { this.queryAllAlertPluginInstance().then(res => { - this.allAlertPluginInstance = res.data + this.allAlertPluginInstance = res }).catch(e => { this.$message.error(e.msg) }) @@ -136,7 +136,7 @@ this.isLeft = true } this.isLoading = !flag - this.getAlertgroupP(this.searchParams).then(res => { + this.queryAlertGroupListPaging(this.searchParams).then(res => { if (this.searchParams.pageNo > 1 && res.totalList.length === 0) { this.searchParams.pageNo = this.searchParams.pageNo - 1 } else { diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningInstance/_source/createWarning.vue b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningInstance/_source/createWarningInstance.vue similarity index 67% rename from dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningInstance/_source/createWarning.vue rename to dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningInstance/_source/createWarningInstance.vue index 9bdea2543e..7ce296e272 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningInstance/_source/createWarning.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningInstance/_source/createWarningInstance.vue @@ -18,7 +18,7 @@