Jelajahi Sumber

优化学段筛选资源

liqk 4 tahun lalu
induk
melakukan
c1079df439
1 mengubah file dengan 6 tambahan dan 12 penghapusan
  1. 6 12
      TEAMModelOS/ClientApp/src/view/teachcontent/index.vue

+ 6 - 12
TEAMModelOS/ClientApp/src/view/teachcontent/index.vue

@@ -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()
         }
 
     },