|
@ -78,7 +78,8 @@ export default { |
|
|
isSelChannel: false, |
|
|
isSelChannel: false, |
|
|
channel: [], |
|
|
channel: [], |
|
|
content: '', |
|
|
content: '', |
|
|
userList: [], |
|
|
// userList: [], |
|
|
|
|
|
bdIds: [] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
@ -93,15 +94,18 @@ export default { |
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
|
|
|
async initForm (selectionAll) { |
|
|
async initForm (selectionAll, origin) { |
|
|
|
|
|
|
|
|
this.$refs['ref_form1'].resetFields(); |
|
|
this.$refs['ref_form1'].resetFields(); |
|
|
|
|
|
if (origin) { |
|
|
|
|
|
this.formData.origin = origin |
|
|
|
|
|
} |
|
|
// this.formData.userList = selectionAll |
|
|
// this.formData.userList = selectionAll |
|
|
this.formData.userList = JSON.parse(JSON.stringify(selectionAll)) |
|
|
// this.formData.userList = JSON.parse(JSON.stringify(selectionAll)) |
|
|
|
|
|
|
|
|
this.formData.userList.forEach(element => { |
|
|
|
|
|
|
|
|
|
|
|
element.idCard = element.realIdCard |
|
|
this.formData.bdIds = [] |
|
|
|
|
|
selectionAll.forEach(element => { |
|
|
|
|
|
this.formData.bdIds.push(element.id) |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
@ -131,7 +135,7 @@ export default { |
|
|
|
|
|
|
|
|
let url = '' |
|
|
let url = '' |
|
|
|
|
|
|
|
|
url = '/epmetuser/icNotice/sendNotice' |
|
|
url = '/epmetuser/icNotice/sendNoticeV2' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { data, code, msg } = await requestPost(url, this.formData) |
|
|
const { data, code, msg } = await requestPost(url, this.formData) |
|
@ -169,7 +173,8 @@ export default { |
|
|
isSelChannel: false, |
|
|
isSelChannel: false, |
|
|
channel: [], |
|
|
channel: [], |
|
|
content: '', |
|
|
content: '', |
|
|
userList: [], |
|
|
// userList: [], |
|
|
|
|
|
bdIds: [] |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|