|
@@ -171,11 +171,15 @@
|
|
|
let obj = {
|
|
|
title:this.addForm.title,
|
|
|
noticeType:this.addForm.noticeType,
|
|
|
- sendType:this.addForm.sendType,
|
|
|
- userIds:this.addForm.sendType == 5 ? this.addForm.userIds : [],
|
|
|
sendState:this.addForm.sendState,
|
|
|
content:this.$refs.UEditor.text||"",
|
|
|
}
|
|
|
+ if(obj.noticeType == 1){
|
|
|
+ obj.sendType = this.addForm.sendType;
|
|
|
+ obj.userIds = this.addForm.sendType == 5 ? this.addForm.userIds : [];
|
|
|
+ }else{
|
|
|
+ obj.company = this.addForm.company;
|
|
|
+ }
|
|
|
if (this.addForm.noticeId){
|
|
|
obj.noticeId = this.addForm.noticeId;
|
|
|
systemNoticeUpdate(obj).then(response => {
|