子系统栏显示调整

This commit is contained in:
fan 2022-06-27 13:08:46 +08:00
parent 8b3c7eadc5
commit 717a629ea2

View File

@ -87,6 +87,7 @@ export default {
return data.name.includes(value);
},
clickEvent(obj, data, ele, isReplace = false) {
console.log(obj, data, ele, 'clickEvent');
if (ele) {
if ( ele.expanded) {
ele.expanded = false;
@ -177,7 +178,7 @@ export default {
this.treeList = [];
res.data.forEach(item => {
const childList = [];
item && item.children && item.children.forEach(elem => {
item && item.children && item.children.length > 3 && item.children.forEach(elem => {
if (elem.id === 'Lesson') {
childList[0] = elem;
} else if (elem.id === 'Exam') {
@ -219,6 +220,7 @@ export default {
},
/* 根据localstorage缓存的trainingPlatformCheckId跳转右侧显示页面 */
findTree(treeList, checkId, data) {
console.log(treeList, '--------');
treeList && treeList.length && treeList.forEach(item =>{
if (item.type === 'Map') {
data = item;