Browse Source

修复自定义删除

shibei_master
13176889840 3 years ago
parent
commit
93274d928a
  1. 8
      src/views/modules/base/diyInfo.vue

8
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)
}

Loading…
Cancel
Save