| | |
| | | */ |
| | | onShow() { |
| | | if (this.data.tabValue == 2 && this.data.selectActive == 'learn') { |
| | | console.log(12333) |
| | | this.getPlayerList() |
| | | this.getResource() |
| | | this.getRelationBook() |
| | |
| | | const data = test.filter( |
| | | (item) => item.type == 'questionBankFolder' && item.childrenFolderCount > 0 |
| | | ) |
| | | |
| | | if (data.length > 0) { |
| | | let list = [] |
| | | let addNum = query.cmsPath.length > 5 ? 7 : query.cmsPath.length > 6 ? 8 : 6 |
| | |
| | | this.getTreeList(data, num, list, '\\', addNum) |
| | | list = this.ensureTreeConsistency(list) |
| | | let result = []; |
| | | this.findChildIds(list[0].children, result) |
| | | this.countLeafNodes(list[0].children) |
| | | this.findChildIds(list[0]?.children, result) |
| | | this.countLeafNodes(list[0]?.children) |
| | | this.setData({ |
| | | testList: list[0].children, |
| | | openTeachids: result, |