|
@ -204,13 +204,13 @@ export default { |
|
|
}, |
|
|
}, |
|
|
handleDelItem(val) { |
|
|
handleDelItem(val) { |
|
|
const { item, index } = val |
|
|
const { item, index } = val |
|
|
console.log('item------', item, this.$refs[`checkbox${item.id}`]) |
|
|
console.log('item------', item, this.$refs[`checkbox${item.itemGroupId}`]) |
|
|
const checkList = this.$refs[`checkbox${item.id}`][0].checkedList |
|
|
const checkList = this.$refs[`checkbox${item.itemGroupId}`][0].checkedList |
|
|
checkList.forEach((n, i) => { |
|
|
checkList.forEach((n, i) => { |
|
|
if (n == item.itemId) this.$refs[`checkbox${item.id}`][0].checkedList.splice(i, 1) |
|
|
if (n == item.itemId) this.$refs[`checkbox${item.itemGroupId}`][0].checkedList.splice(i, 1) |
|
|
}) |
|
|
}) |
|
|
this.rightList.forEach((n, i) => { |
|
|
this.rightList.forEach((n, i) => { |
|
|
if (n.id === item.id) { |
|
|
if (n.id === item.itemGroupId) { |
|
|
n.queryItemList.splice(index, 1) |
|
|
n.queryItemList.splice(index, 1) |
|
|
if (n.queryItemList.length === 0) this.rightList.splice(i, 1) |
|
|
if (n.queryItemList.length === 0) this.rightList.splice(i, 1) |
|
|
} |
|
|
} |
|
|