xuqiaoying 3 жил өмнө
parent
commit
86134518f1

+ 1 - 1
src/pages/bank-list/index.vue

@@ -292,7 +292,7 @@ export default {
       this.$request
         .businessList({ educationId: this.params.educationTypeId })
         .then((res) => {
-          this.businessList = res.rows;
+          this.businessList = res.rows.filter((item) => item.aliasName)
           this.projectId = this.businessList[0].projectId;
         });
     },

+ 1 - 1
src/pages/course-list/index.vue

@@ -303,7 +303,7 @@ export default {
       this.$request
         .businessList({ educationId: this.params.educationTypeId })
         .then((res) => {
-          this.businessList = res.rows;
+          this.businessList = res.rows.filter((item) => item.aliasName)
           this.projectId = this.businessList[0].projectId;
         });
     },

+ 7 - 6
src/pages/home/index.vue

@@ -1072,9 +1072,10 @@ export default {
       this.$request
         .businessList({ educationId })
         .then((res) => {
-          this.$set(this.slideList, index, res.rows);
-          if (res.rows.length >= 2) {
-            let newRows = res.rows.slice(0, 2);
+          let rows = res.rows.filter((item) => item.aliasName)
+          this.$set(this.slideList, index, rows);
+          if (rows.length >= 2) {
+            let newRows = rows.slice(0, 2);
             let length = 0;
             newRows.forEach((row) => {
               let str = row.projectName + "-" + row.businessName;
@@ -1082,12 +1083,12 @@ export default {
             });
 
             if (length >= 17) {
-              this.$set(this.typeList[index], "list", res.rows.slice(0, 1));
+              this.$set(this.typeList[index], "list", rows.slice(0, 1));
             } else {
-              this.$set(this.typeList[index], "list", res.rows.slice(0, 2));
+              this.$set(this.typeList[index], "list", rows.slice(0, 2));
             }
           } else {
-            this.$set(this.typeList[index], "list", res.rows);
+            this.$set(this.typeList[index], "list", rows);
           }
            console.log('this.typeList:',this.slideList, this.typeList)
         })

+ 1 - 1
src/pages/live-list/index.vue

@@ -292,7 +292,7 @@ export default {
       this.$request
         .businessList({ educationId: this.params.educationTypeId })
         .then((res) => {
-          this.businessList = res.rows;
+          this.businessList = res.rows.filter((item) => item.aliasName)
           this.projectId = this.businessList[0].projectId;
         });
     },