| | |
| | | return { |
| | | checkAll: {}, |
| | | ParentList: [], |
| | | ParentRemoveList:[], |
| | | //避免缓存 |
| | | reload: Math.random(), |
| | | TreeLoading: false, |
| | |
| | | console.log(this.ParentList); |
| | | } |
| | | } else { |
| | | this.ParentList = this.ParentList.filter(res => res.classifyId !== row.classifyId); |
| | | console.log(this.ParentList); |
| | | if (!row.parentId && row.children) { |
| | | this.ParentRemoveList = this.ParentList.filter(record => record.oid !== row.oid); |
| | | |
| | | if (row.children && row.children.length > 0) { |
| | | for (let child of row.children) { |
| | | this.ParentRemoveList = this.ParentList.filter(record => record.oid !== child.oid); |
| | | |
| | | if (child.children && child.children.length > 0) { |
| | | for (let subChild of child.children) { |
| | | this.ParentRemoveList = this.ParentList.filter(record => record.oid !== subChild.oid); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | console.log(this.ParentRemoveList) |
| | | } |
| | | }, |
| | | //分类授权 |