瀏覽代碼

🐞fix: 关闭较慢

wolyshaw 4 年之前
父節點
當前提交
c7e2aa1692
共有 2 個文件被更改,包括 16 次插入17 次删除
  1. 10 15
      src/views/teamDetail/componentCourse/resetClass.vue
  2. 6 2
      src/views/teamDetail/teamCourseList.vue

+ 10 - 15
src/views/teamDetail/componentCourse/resetClass.vue

@@ -1,9 +1,5 @@
 <template>
   <div>
-    <el-dialog title="课程调整"
-               destroy-on-close
-               width="400px"
-               :visible.sync="courseVisible">
       <el-form :model="maskForm"
                class="maskForm"
                ref="maskForm"
@@ -83,7 +79,6 @@
         <el-button type="primary"
                    @click="submitResetClass">确 定</el-button>
       </div>
-    </el-dialog>
   </div>
 </template>
 <script>
@@ -177,15 +172,15 @@ export default {
   },
 
   watch: {
-    show (val) {
-      console.log(val)
-      this.courseVisible = val;
-    },
-    courseVisible (val) {
-      if (!val) {
-        this.$emit("closeReset");
-      }
-    },
+    // show (val) {
+    //   console.log(val)
+    //   this.courseVisible = val;
+    // },
+    // courseVisible (val) {
+    //   if (!val) {
+    //     this.$emit("closeReset");
+    //   }
+    // },
     item: {
       immediate: true,
       deep: true,
@@ -243,4 +238,4 @@ export default {
 }
 </script>
 <style lang="scss">
-</style>
+</style>

+ 6 - 2
src/views/teamDetail/teamCourseList.vue

@@ -350,10 +350,14 @@
         </el-tab-pane>
       </el-tabs>
     </el-dialog>
-    <resetClass :show="show"
+    <el-dialog
+      :visible.sync="show"
+    >
+      <resetClass :show="show"
                 @closeReset='closeReset'
                 @getList='getList'
                 :item='activeRow' />
+    </el-dialog>
   </div>
 </template>
 <script>
@@ -688,4 +692,4 @@ export default {
 .exportBtn {
   background: #13817a;
 }
-</style>
+</style>