From 20473aab9c8c27ec95fd7654f14fb5a32fdc68f6 Mon Sep 17 00:00:00 2001 From: x_ying <2438792676@qq.com> Date: Mon, 22 Aug 2022 16:39:29 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E7=9F=A5=E7=AE=A1=E7=90=86=20?= =?UTF-8?q?=E8=A6=86=E7=9B=96=E4=BB=A3=E7=A0=81=E8=BF=98=E5=8E=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/notifyManage/index.vue | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/src/views/system/notifyManage/index.vue b/src/views/system/notifyManage/index.vue index 0a6aa4c..603cf0e 100644 --- a/src/views/system/notifyManage/index.vue +++ b/src/views/system/notifyManage/index.vue @@ -291,24 +291,7 @@ export default { handleSave() { this.$refs.formDom.validate((valid) => { if (valid) { - const params = {} - params.noticeType = this.noticeType - params.noticeContent = this.sendForm.notification - if (this.pushObj === '用户') { - params.pushType = 1 - if (this.selectOptions.length === this.sendObjOptions.length) { - params.userId = this.selectOptions.filter(item => item !== 0) - } else { - params.userId = this.selectOptions - } - } - noticeCreate(params).then(res => { - if (res === 'SUCCESS') { - this.sendVisible = false - this.$refs.formDom.resetFields() - this.$refs.formDom.clearValidate() - } - }) + this.noticeSend(this.getPushParams()) } else { return false }