Commit 4b31ba39 by 胡悦

修复一客一群问题

1 parent 078ccbc8
...@@ -99,6 +99,7 @@ export default { ...@@ -99,6 +99,7 @@ export default {
this.selectEmp.forEach((itm, index) => { this.selectEmp.forEach((itm, index) => {
if (itm.staffId == item.id) { if (itm.staffId == item.id) {
this.$refs.followTable.$refs.salelistMutiTable.toggleRowSelection(item) this.$refs.followTable.$refs.salelistMutiTable.toggleRowSelection(item)
this.selectEmp.splice(index, 1)
} }
}) })
if (this.checkSelect) this.tableParams.checkSelectVal = this.checkSelect if (this.checkSelect) this.tableParams.checkSelectVal = this.checkSelect
...@@ -136,13 +137,13 @@ export default { ...@@ -136,13 +137,13 @@ export default {
this.loading = true this.loading = true
let selectEmp = this.selectEmp.map(item => { let selectEmp = this.selectEmp.map(item => {
return { return {
relationId: item.staffId, id: item.staffId,
staffName: item.staffName staffName: item.staffName
} }
}) })
const selectItem = this.selectItem.concat(selectEmp) const selectItem = this.selectItem.concat(selectEmp)
if (selectItem.length == 0) { if (selectItem.length == 0) {
this.$message.error('请选择员工') this.$message.error('请选择跟进专员')
return return
} }
this.loading = false this.loading = false
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!