| | |
| | | item.checked = false |
| | | }) |
| | | const list = await this.getAllResource(res.datas.cmsDatas[0].datas) |
| | | let result = [] |
| | | if (type.refCode == 'jsek_teachingResources') { |
| | | this.findChildIds(list, result) |
| | | this.setData({ |
| | | teach: list, |
| | | loading: false |
| | | loading: false, |
| | | openTeachids: result |
| | | }) |
| | | this.findChildIds(this.data.teach, this.data.openTeachids = []) |
| | | console.log('教学资源', this.data.teach); |
| | | } else if (type.refCode == 'jsek_cloudLearning') { |
| | | res.datas.cmsDatas[0].datas.forEach(item => { |
| | | item.checked = false |
| | | }) |
| | | const list = await this.getAllResource(res.datas.cmsDatas[0].datas) |
| | | // res.datas.cmsDatas[0].datas.forEach(item => { |
| | | // item.checked = false |
| | | // }) |
| | | // const list = await this.getAllResource(res.datas.cmsDatas[0].datas) |
| | | this.findChildIds(list, result) |
| | | this.setData({ |
| | | learn: list, |
| | | loading: false |
| | | loading: false, |
| | | openLearnids: result |
| | | }) |
| | | this.findChildIds(this.data.learn, this.data.openLearnids = []) |
| | | } |
| | | } else { |
| | | // 无数据 |
| | |
| | | isDownload: [], |
| | | jsek_resourceBrief: [], |
| | | jsek_link: [], |
| | | accessType: [] |
| | | accessType: [], |
| | | learnSelectType: [] |
| | | }, |
| | | pading: { |
| | | start: 0, |