子系统栏显示调整
This commit is contained in:
parent
83702c4c22
commit
8b8bdec3db
@ -178,18 +178,20 @@ 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) {
|
||||||
if (elem.id === 'Lesson') {
|
item.children.forEach(elem => {
|
||||||
childList[0] = elem;
|
if (elem.id === 'Lesson') {
|
||||||
} else if (elem.id === 'Exam') {
|
childList[0] = elem;
|
||||||
childList[3] = elem;
|
} else if (elem.id === 'Exam') {
|
||||||
} else if (elem.id === 'Simulation') {
|
childList[3] = elem;
|
||||||
childList[1] = elem;
|
} else if (elem.id === 'Simulation') {
|
||||||
} else {
|
childList[1] = elem;
|
||||||
childList[2] = elem;
|
} else {
|
||||||
}
|
childList[2] = elem;
|
||||||
});
|
}
|
||||||
item.children = childList;
|
});
|
||||||
|
item.children = childList;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
this.treeList = res.data;
|
this.treeList = res.data;
|
||||||
|
Loading…
Reference in New Issue
Block a user