diff --git a/src/views/modules/base/diyInfo.vue b/src/views/modules/base/diyInfo.vue index b93a4939..c0f6586c 100644 --- a/src/views/modules/base/diyInfo.vue +++ b/src/views/modules/base/diyInfo.vue @@ -204,13 +204,13 @@ export default { }, handleDelItem(val) { const { item, index } = val - console.log('item------', item, this.$refs[`checkbox${item.id}`]) - const checkList = this.$refs[`checkbox${item.id}`][0].checkedList + console.log('item------', item, this.$refs[`checkbox${item.itemGroupId}`]) + const checkList = this.$refs[`checkbox${item.itemGroupId}`][0].checkedList 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) => { - if (n.id === item.id) { + if (n.id === item.itemGroupId) { n.queryItemList.splice(index, 1) if (n.queryItemList.length === 0) this.rightList.splice(i, 1) }