Commit ed5b94f7 by xinlaa

新增群发接口调试

1 parent 2607e2e3
...@@ -84,8 +84,12 @@ export default { ...@@ -84,8 +84,12 @@ export default {
] = true ] = true
}, },
// 选择添加人确认按钮 // 选择添加人确认按钮
selectedUser(data) { selectedUser(users) {
this.userParty = data users.map((d) => {
d.userId && this.form.staffId.push(d.userId)
d.id && this.form.department.push(d.id)
})
this.userParty = users
}, },
// 选择标签确认按钮 // 选择标签确认按钮
submitSelectTag(data) { submitSelectTag(data) {
...@@ -104,7 +108,7 @@ export default { ...@@ -104,7 +108,7 @@ export default {
}, },
submit() { submit() {
let form = JSON.parse(JSON.stringify(this.form)) let form = JSON.parse(JSON.stringify(this.form))
form.tag += '' form.tag = form.tag.map((d) => d.tagId) + ''
form.department += '' form.department += ''
form.staffId += '' form.staffId += ''
add(form) add(form)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!