From b3dd9f7b63f41a5eacf6831f5e190c8c17fcc412 Mon Sep 17 00:00:00 2001 From: break60 <790061044@qq.com> Date: Wed, 13 Jan 2021 19:45:24 +0800 Subject: [PATCH] add --- .../warningGroups/_source/createWarning.vue | 16 +-- .../pages/warningGroups/_source/list.vue | 7 +- .../security/pages/warningGroups/index.vue | 6 +- ...eWarning.vue => createWarningInstance.vue} | 99 +++++++++++-------- .../pages/warningInstance/_source/list.vue | 36 ++----- .../security/pages/warningInstance/index.vue | 22 ++--- .../src/js/conf/home/router/index.js | 2 +- .../js/conf/home/store/security/actions.js | 58 ++++++++++- .../src/js/module/i18n/locale/en_US.js | 2 + .../src/js/module/i18n/locale/zh_CN.js | 2 + 10 files changed, 146 insertions(+), 104 deletions(-) rename dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningInstance/_source/{createWarning.vue => createWarningInstance.vue} (67%) 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 @@