Browse Source

fix: 修复选择班级弹窗关闭时未同步关闭PPT检查弹窗的问题

在选择班级弹窗关闭时,未将父组件的pptCheckDialog设置为false,导致PPT检查弹窗可能残留显示。同时在PPT相关组件中,将弹窗显示判断条件修改为使用pptCheckDialog,新增该数据属性并在合适时机设置其值,确保弹窗状态同步。
lsc 2 weeks ago
parent
commit
575f48b0c4

+ 1 - 0
src/components/dialog/selectTeachingClassDialog2.vue

@@ -108,6 +108,7 @@ export default {
 			this.show = true;
 		},
 		close() {
+			this.$parent.pptCheckDialog = false
 			this.show = false;
 			this.init();
 		},

+ 4 - 1
src/components/pptEasyClass/index.vue

@@ -108,7 +108,7 @@
       <div class="pec_content">
         <iframe allow="camera *; microphone *;display-capture;midi;encrypted-media;clipboard-write;clipboard-read"
           webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen="" frameborder="no" border="0" :src="iframeSrc"
-          v-if="showIframe && !showObserveDialog" style="width: 100%; height: 100%; border: none" ref="ppt"></iframe>
+          v-if="showIframe && !pptCheckDialog" style="width: 100%; height: 100%; border: none" ref="ppt"></iframe>
       </div>
     </div>
 
@@ -259,6 +259,7 @@ export default {
       dataBoardDebounce: null,
       isTimeOutPan: false,
       pptJSON: {},
+      pptCheckDialog: false,
     };
   },
   computed: {
@@ -308,6 +309,7 @@ export default {
         this.getCourseDetail();
       }
       // this.gotoCourse(classId);
+      this.pptCheckDialog = false
       this.$refs.selectTeachingClassDialogRef.close();
       this.setoTime("1");
     },
@@ -757,6 +759,7 @@ export default {
           this.setPptIframe()
           this.classList = res.data[2]
           if(!this.tcid2 && this.tType == '1' && this.noLogin != 2 && this.noLogin != 3){
+            this.pptCheckDialog = true
             this.$refs.selectTeachingClassDialogRef.open({classList:this.classList})
           }
           this.pageLoading = false;