谢杰标 2 年之前
父节点
当前提交
db129b1033

+ 1 - 0
src/views/Marketing/goods/commodityManageMent/teacher/selectCourse.vue

@@ -80,6 +80,7 @@
           type="primary"
           :disabled="activeLists.length === 0"
           @click="submitTab"
+          v-throttle
           >确 定</el-button
         >
       </span>

+ 13 - 2
src/views/education/classManageMent/studentMenu/index.vue

@@ -120,6 +120,7 @@
         placeholder="学员手机号码"
       ></el-input>
       <el-button type="primary" @click="search(3)">搜索</el-button>
+      <el-button @click="resetForm">重置</el-button>
     </div>
     <table-list
       ref="tableList"
@@ -661,7 +662,7 @@ export default {
         rowKey: "id",
         gftsStatus: false,
         gfUserStatus: false,
-        xssbStatus:false,
+        xssbStatus: false,
         backFatherBtn: {
           status: false,
           title: "未定义",
@@ -889,6 +890,16 @@ export default {
     this.search();
   },
   methods: {
+    resetForm() {
+      this.formData = {
+        studyCountMore: "",
+        gradeId: this.$route.query.id,
+        status: "0,1",
+        pageSize: 10,
+        pageNum: 1,
+      };
+      this.search(3)
+    },
     changeClass(row) {
       this.dialogVisibleClass = true;
       this.tabClassStudentInfo = row;
@@ -941,7 +952,7 @@ export default {
             } else {
               this.navText.gfUserStatus = false;
             }
-            this.navText.xssbStatus = res.data.includes(2)
+            this.navText.xssbStatus = res.data.includes(2);
             resolve();
           });
       });

+ 9 - 0
src/views/resource/videoManagement/festival/add/index.vue

@@ -392,6 +392,7 @@
       :visible.sync="diavos"
       width="840px"
       @opened="isOkBf"
+      @close="closePlayer"
       :show-close="false"
       :close-on-click-modal="false"
     >
@@ -702,6 +703,11 @@ export default {
     isOkBf() {
       this.loadPlayerScript(this.loadPlayer);
     },
+    closePlayer() {
+      if (this.player) {
+        this.player.destroy();
+      }
+    },
     /**
      * @param {String} 直播预览
      */
@@ -1131,6 +1137,9 @@ export default {
       });
     },
   },
+  destroyed() {
+    this.closePlayer()
+  },
 };
 </script>
 

+ 9 - 0
src/views/resource/videoManagement/festival/edit/index.vue

@@ -368,6 +368,7 @@
       :visible.sync="diavos"
       width="840px"
       @opened="isOkBf"
+      @close="closePlayer"
       :show-close="false"
       :close-on-click-modal="false"
     >
@@ -688,6 +689,11 @@ export default {
     isOkBf() {
       this.loadPlayerScript(this.loadPlayer);
     },
+    closePlayer() {
+      if (this.player) {
+        this.player.destroy();
+      }
+    },
     /**
      * @param {String} 直播预览
      */
@@ -1201,6 +1207,9 @@ export default {
       });
     },
   },
+  destroyed() {
+    this.closePlayer()
+  },
 };
 </script>