子系统栏显示调整
This commit is contained in:
parent
a8ce60f33e
commit
131e70c729
@ -178,7 +178,8 @@ export default {
|
|||||||
this.treeList = [];
|
this.treeList = [];
|
||||||
res.data.forEach(item => {
|
res.data.forEach(item => {
|
||||||
const childList = [];
|
const childList = [];
|
||||||
item && item.children && item.children.length > 3 && item.children.forEach(elem => {
|
if (item && item.children && item.children.length > 3) {
|
||||||
|
item.children.forEach(elem => {
|
||||||
if (elem.id === 'Lesson') {
|
if (elem.id === 'Lesson') {
|
||||||
childList[0] = elem;
|
childList[0] = elem;
|
||||||
} else if (elem.id === 'Exam') {
|
} else if (elem.id === 'Exam') {
|
||||||
@ -190,6 +191,7 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
item.children = childList;
|
item.children = childList;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
this.treeList = res.data;
|
this.treeList = res.data;
|
||||||
|
Loading…
Reference in New Issue
Block a user