This commit is contained in:
zyy 2020-08-14 16:02:16 +08:00
commit f2a2adc698

View File

@ -155,7 +155,7 @@ export default {
},
forTree(item) {
item.children && item.children.forEach(childrenItem => {
childrenItem.key = childrenItem.id + childrenItem.type;
childrenItem.key = item.id + childrenItem.id + childrenItem.type;
if (childrenItem.children && childrenItem.children.length) {
this.forTree(childrenItem);
}
@ -207,13 +207,13 @@ export default {
});
},
nodeExpand(obj, node, ele) {
const key = obj.id + obj.type;
const key = obj.key;
this.expandList = this.expandList.filter(item => item !== key);
this.expandList.push(key);
localStore.set('trainIngPlatformExpandList' + this.filterSelect + this.userId + this.project, this.expandList);
},
nodeCollapse(obj, node, ele) {
const key = obj.id + obj.type;
const key = obj.key;
this.expandList = this.expandList.filter(item => item !== key);
localStore.set('trainIngPlatformExpandList' + this.filterSelect + this.userId + this.project, this.expandList);
},