|
@@ -209,13 +209,19 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
afterClass() {
|
|
afterClass() {
|
|
- this.$message.warning('下课功能暂未开放')
|
|
|
|
|
|
+ this.$confirm('确定下课吗,会让所有正在上课的学生全部退出登录?', '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ }).then(() => {
|
|
|
|
+ this.$refs.ppt.contentWindow.PPTistStudent.forceLogout();
|
|
|
|
+ }).catch(() => {});
|
|
},
|
|
},
|
|
onFreeBrowseChange(value) {
|
|
onFreeBrowseChange(value) {
|
|
this.freeBrowse = value;
|
|
this.freeBrowse = value;
|
|
console.log('自由浏览模式已切换为1:', this.freeBrowse);
|
|
console.log('自由浏览模式已切换为1:', this.freeBrowse);
|
|
this.$refs.ppt.contentWindow.PPTistStudent.toggleFollowMode()
|
|
this.$refs.ppt.contentWindow.PPTistStudent.toggleFollowMode()
|
|
- }
|
|
|
|
|
|
+ },
|
|
},
|
|
},
|
|
destroyed() {
|
|
destroyed() {
|
|
if (this.courseDetail.userid == this.userid && this.tcid2 && this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840') {
|
|
if (this.courseDetail.userid == this.userid && this.tcid2 && this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840') {
|