Commit 79fb1279 by 前端

修sop二轮bug

1 parent 5956eef0
...@@ -1127,11 +1127,11 @@ export default { ...@@ -1127,11 +1127,11 @@ export default {
handleDeleteCustomer(idx, pIdx, attr) { handleDeleteCustomer(idx, pIdx, attr) {
let currentList = this.customerDataList[this.currentCustomerIdx].list let currentList = this.customerDataList[this.currentCustomerIdx].list
let isLastOne = attr == '标签' ? currentList.map(item => item.labelList.length).reduce((prev, cur) => prev + cur) : currentList.length let isLastOne = attr == '标签' || attr == '群标签' ? currentList.map(item => item.labelList.length).reduce((prev, cur) => prev + cur) : currentList.length
if (isLastOne == 1 && this.editForm.eventList.length) { if (isLastOne == 1 && this.editForm.eventList.length) {
this.deleteCustPop() this.deleteCustPop()
} else { } else {
if (attr == '标签') { if (attr == '标签' || attr == '群标签' ) {
currentList[pIdx].labelList.splice(idx, 1) currentList[pIdx].labelList.splice(idx, 1)
currentList[pIdx].labelList.length == 0 && currentList.splice(idx, 1) currentList[pIdx].labelList.length == 0 && currentList.splice(idx, 1)
} else { } else {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!