| | |
| | | this.isAllSelect = row.isChecked; |
| | | this.toggleSelect(row, row.isChecked, "tr"); |
| | | }); |
| | | |
| | | if (row.isChecked === true) { |
| | | this.deleteList.push(row.id); |
| | | if (row.children !== undefined) { |
| | | row.children.forEach((i) => { |
| | | this.deleteList.push(i.id); |
| | | }); |
| | | } else { |
| | | this.deleteList.push(row.id); |
| | | } |
| | | } else if (row.isChecked === false) { |
| | | if (row.children !== undefined) { |
| | | row.children.forEach((i) => { |
| | | this.deleteList.findIndex((c, index) => { |
| | | if (c === i.id) { |
| | | this.deleteList.splice(index, 1); |
| | | return; |
| | | } |
| | | }); |
| | | }); |
| | | } |
| | | this.deleteList.findIndex((c, index) => { |
| | | if (c === row.id) { |
| | | this.deleteList.splice(index, 1); |
| | |
| | | } |
| | | }); |
| | | } |
| | | console.log(`output->this.deleteList`, this.deleteList); |
| | | }, |
| | | //递归子级 |
| | | toggleSelect(data, flag, type) { |
| | |
| | | message: res.message, |
| | | type: "success", |
| | | }); |
| | | this.selectProductModelTable(); |
| | | }); |
| | | }, |
| | | }, |
| | |
| | | .library-bom { |
| | | // padding-right: 10px; |
| | | width: 300px; |
| | | // height: 100%; |
| | | max-height: 100%; |
| | | height: 100%; |
| | | // max-height: 100%; |
| | | // margin-right: 12px; |
| | | // overflow-y: scroll; |
| | | .el-tree { |
| | | // margin-top: |
| | | width: 100%; |
| | | overflow: scroll; |
| | | ::v-deep .el-tree-node__content { |
| | | height: 24px !important; |
| | | font-size: 18px; |