Browse Source

通知管理 覆盖代码还原

master
x_ying 2 years ago
parent
commit
20473aab9c
  1. 19
      src/views/system/notifyManage/index.vue

19
src/views/system/notifyManage/index.vue

@ -291,24 +291,7 @@ export default {
handleSave() { handleSave() {
this.$refs.formDom.validate((valid) => { this.$refs.formDom.validate((valid) => {
if (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 { } else {
return false return false
} }

Loading…
Cancel
Save