Selaa lähdekoodia

修复新建直播间分部关联合作单位异常

1
mo 3 vuotta sitten
vanhempi
commit
5259e1a7cf
1 muutettua tiedostoa jossa 5 lisäystä ja 4 poistoa
  1. 5 4
      src/views/liveClassManager/newLiveClass.vue

+ 5 - 4
src/views/liveClassManager/newLiveClass.vue

@@ -394,6 +394,7 @@ export default {
       // console.log()
       this.form = { ...this.$route.query, organIds: [], schoolIds: [],teamIds:[] };
       this.form.roomConfig = JSON.parse(this.$route.query.roomConfig);
+
       if (this.$route.query.popularizeOrgIds) {
         this.form.organIds = this.$route.query.popularizeOrgIds
           .split(",")
@@ -401,7 +402,7 @@ export default {
             return item * 1;
           });
       }
-
+               this.changeSection(this.form.organIds);
       if (this.$route.query.popularizeSchoolIds) {
         this.form.schoolIds = this.$route.query.popularizeSchoolIds
           .split(",")
@@ -417,7 +418,7 @@ export default {
       }
 
       // this.form.popularizeType = "SCHOOL";
-      this.changeSection(this.form.organIds);
+
       this.remoteMethod(this.$route.query.speakerName);
 
       this.checkList.push(this.form.preTemplate * 1);
@@ -549,10 +550,10 @@ export default {
       this.$set(this.form, "teamIds", []);
     },
     async changeSection(val) {
-      if (!this.isinit) {
+      // if (!this.isinit) {
         this.form.schoolIds = [];
         this.form.teamIds = [];
-      }
+      // }
       if (this.form.popularizeType == "SCHOOL" || (val && val.length > 0)) {
         let organId = val.join(",");
         try {