Bladeren bron

筛选分类条件修改

xiaohaizhao 1 jaar geleden
bovenliggende
commit
ff9a9cc2ef
2 gewijzigde bestanden met toevoegingen van 3 en 7 verwijderingen
  1. 2 6
      packageA/course/index.vue
  2. 1 1
      packageA/exam/index.vue

+ 2 - 6
packageA/course/index.vue

@@ -89,12 +89,8 @@ export default {
         },
         getList(init = false) {
             if (this.paging(this.content, init)) return;
-            this.content.where.sat_courseware_classids = [
-                [
-                    this.crumbs[1].parentid,
-                    this.crumbs[2].parentid,
-                ].filter(v => v)
-            ]
+            let ids = this.crumbs.map(v => v.parentid).filter(v => v);
+            this.content.where.sat_courseware_classids = ids.length ? [[ids[ids.length - 1]]] : []
             this.$Http.basic({
                 "id": 20240318101802,
                 content: this.content

+ 1 - 1
packageA/exam/index.vue

@@ -119,7 +119,7 @@ export default {
         getList(init = false) {
             if (this.paging(this.content, init)) return;
             let ids = this.crumbs.map(v => v.parentid).filter(v => v);
-            this.content.where.sat_courseware_classids = ids.length ? [ids] : []
+            this.content.where.sat_courseware_classids = ids.length ? [[ids[ids.length - 1]]] : []
             this.$Http.basic({
                 "id": 20240326133302,
                 content: this.content