|
|
@ -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 |
|
|
|
} |
|
|
|