浏览代码

优化学段筛选资源

liqk 4 年之前
父节点
当前提交
c1079df439
共有 1 个文件被更改,包括 6 次插入12 次删除
  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()
         }
 
     },