From 93274d928a6bf3b4f720ad4bd6fbcf55846abeab Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Wed, 27 Apr 2022 13:39:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/base/diyInfo.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) }