|
@@ -966,7 +966,6 @@ export default {
|
|
|
findFileList() {
|
|
|
if (this.containerClient) {
|
|
|
this.isLoading = true
|
|
|
- //测试代码
|
|
|
let rd = {
|
|
|
"name": this.routerScope == 'school' ? this.$store.state.userInfo.schoolCode : this.$store.state.userInfo.TEAMModelId,
|
|
|
"type": this.activeType,
|
|
@@ -1119,17 +1118,12 @@ export default {
|
|
|
},
|
|
|
//根据学段筛选资源
|
|
|
filterByPeriod() {
|
|
|
- let files = this.fileList[this.activeType] || []
|
|
|
- if (this.filterPeriod) {
|
|
|
- this.fileListShow = files.filter(item => {
|
|
|
- return item.periodId.includes(this.filterPeriod)
|
|
|
- })
|
|
|
- } else {
|
|
|
- this.fileListShow = files.filter(item => {
|
|
|
- return !item.periodId || !item.periodId.length
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
+ // let files = this.fileList[this.activeType] || []
|
|
|
+ // this.fileListShow = files.filter(item => {
|
|
|
+ // return !item.periodId || !item.periodId.length || item.periodId.includes(this.filterPeriod)
|
|
|
+ // })
|
|
|
+ this.fileList = {}
|
|
|
+ this.findFileList()
|
|
|
}
|
|
|
|
|
|
},
|