|
@@ -102,6 +102,11 @@
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
<selectTeachingClassDialog :courseDetail="courseDetail" :userId="userid" ref="selectTeachingClassDialogRef" @success="selectClassSuccess" @changeClassList="changeClassList"/>
|
|
<selectTeachingClassDialog :courseDetail="courseDetail" :userId="userid" ref="selectTeachingClassDialogRef" @success="selectClassSuccess" @changeClassList="changeClassList"/>
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 消息提示组件 -->
|
|
|
|
|
+ <messageInstruction ref="messageInstructionRef"></messageInstruction>
|
|
|
|
|
+ <!-- 确认提示组件 -->
|
|
|
|
|
+ <confirmInstruction ref="confirmInstructionRef"></confirmInstruction>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -109,11 +114,15 @@
|
|
|
import { myMixin } from '../../mixins/mixin';
|
|
import { myMixin } from '../../mixins/mixin';
|
|
|
import selectTeachingClassDialog from "../dialog/selectTeachingClassDialog2.vue";
|
|
import selectTeachingClassDialog from "../dialog/selectTeachingClassDialog2.vue";
|
|
|
|
|
|
|
|
|
|
+import messageInstruction from '../components/messageInstruction.vue';
|
|
|
|
|
+import confirmInstruction from '../components/confirmInstruction.vue';
|
|
|
export default {
|
|
export default {
|
|
|
|
|
+ mixins: [myMixin],
|
|
|
components: {
|
|
components: {
|
|
|
|
|
+ messageInstruction,
|
|
|
|
|
+ confirmInstruction,
|
|
|
selectTeachingClassDialog
|
|
selectTeachingClassDialog
|
|
|
},
|
|
},
|
|
|
- mixins: [myMixin],
|
|
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
id: this.$route.query.courseId,
|
|
id: this.$route.query.courseId,
|
|
@@ -250,25 +259,43 @@ export default {
|
|
|
this.$message.warning(this.lang.ssRecordingTimeAtLeast5Seconds);
|
|
this.$message.warning(this.lang.ssRecordingTimeAtLeast5Seconds);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- this.$confirm(this.lang.ssStopRecordingNotice, this.lang.ssStopRecordingConfirm, {
|
|
|
|
|
- confirmButtonText: this.lang.ssConfirm,
|
|
|
|
|
- cancelButtonText: this.lang.ssCancel,
|
|
|
|
|
- confirmButtonClass: "pptEasyClassConfirmButtonText",
|
|
|
|
|
- cancelButtonClass: "pptEasyClassCancelButtonText"
|
|
|
|
|
- }).then(() => {
|
|
|
|
|
- console.log("确定")
|
|
|
|
|
- // this.$message({
|
|
|
|
|
- // dangerouslyUseHTMLString: true,
|
|
|
|
|
- // customClass:"pptEasyClassMessage",
|
|
|
|
|
- // message: '已停止录制 <p style="color:#3AB855;text-decoration: underline;cursor: pointer;float:right;margin-left:10px" target="_blank">查看结果</p>'
|
|
|
|
|
- // });
|
|
|
|
|
- this.onFinishRecordWithMicrosoft().then(() => {
|
|
|
|
|
- resolve(true)
|
|
|
|
|
- });
|
|
|
|
|
- }).catch(() => {
|
|
|
|
|
- console.log("取消")
|
|
|
|
|
- resolve(false)
|
|
|
|
|
- });
|
|
|
|
|
|
|
+
|
|
|
|
|
+ this.$refs.confirmInstructionRef.open({
|
|
|
|
|
+ title: this.lang.ssStopRecordingConfirm,
|
|
|
|
|
+ message: this.lang.ssStopRecordingNotice,
|
|
|
|
|
+ cancelText: this.lang.ssCancel,
|
|
|
|
|
+ submitText: this.lang.ssConfirm,
|
|
|
|
|
+ submitCallback: () => {
|
|
|
|
|
+ console.log("确定")
|
|
|
|
|
+ this.onFinishRecordWithMicrosoft().then(() => {
|
|
|
|
|
+ resolve(true)
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ cancelCallback: () => {
|
|
|
|
|
+ console.log("取消")
|
|
|
|
|
+ resolve(false)
|
|
|
|
|
+ },
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+ // this.$confirm(this.lang.ssStopRecordingNotice, this.lang.ssStopRecordingConfirm, {
|
|
|
|
|
+ // confirmButtonText: this.lang.ssConfirm,
|
|
|
|
|
+ // cancelButtonText: this.lang.ssCancel,
|
|
|
|
|
+ // confirmButtonClass: "pptEasyClassConfirmButtonText",
|
|
|
|
|
+ // cancelButtonClass: "pptEasyClassCancelButtonText"
|
|
|
|
|
+ // }).then(() => {
|
|
|
|
|
+ // console.log("确定")
|
|
|
|
|
+ // // this.$message({
|
|
|
|
|
+ // // dangerouslyUseHTMLString: true,
|
|
|
|
|
+ // // customClass:"pptEasyClassMessage",
|
|
|
|
|
+ // // message: '已停止录制 <p style="color:#3AB855;text-decoration: underline;cursor: pointer;float:right;margin-left:10px" target="_blank">查看结果</p>'
|
|
|
|
|
+ // // });
|
|
|
|
|
+ // this.onFinishRecordWithMicrosoft().then(() => {
|
|
|
|
|
+ // resolve(true)
|
|
|
|
|
+ // });
|
|
|
|
|
+ // }).catch(() => {
|
|
|
|
|
+ // console.log("取消")
|
|
|
|
|
+ // resolve(false)
|
|
|
|
|
+ // });
|
|
|
|
|
|
|
|
} else {
|
|
} else {
|
|
|
const now = new Date();
|
|
const now = new Date();
|
|
@@ -556,12 +583,7 @@ export default {
|
|
|
_pageWindow.focus()
|
|
_pageWindow.focus()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- this.$message({
|
|
|
|
|
- dangerouslyUseHTMLString: true,
|
|
|
|
|
- customClass: "pptEasyClassMessage",
|
|
|
|
|
- duration: 3000,
|
|
|
|
|
- message: `${this.lang.ssStoppedRecording} <p style="color:#3AB855;text-decoration: underline;cursor: pointer;float:right;margin-left:10px" target="_blank" onclick="(${openPageWindow.toString()})()">${this.lang.ssViewRecordingResult}</p>`
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ this.$refs.messageInstructionRef.pptMessage(`${this.lang.ssStoppedRecording} <p style="color:#3AB855;text-decoration: underline;cursor: pointer;float:right;margin-left:10px" target="_blank" onClick="(${openPageWindow.toString()})()">${this.lang.ssViewRecordingResult}</p>`)
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
addPPTClass(file) {
|
|
addPPTClass(file) {
|
|
@@ -724,32 +746,71 @@ export default {
|
|
|
if (this.recordedForm.status == 1) {
|
|
if (this.recordedForm.status == 1) {
|
|
|
this.toggleRecording().then((flag) => {
|
|
this.toggleRecording().then((flag) => {
|
|
|
if (flag) {
|
|
if (flag) {
|
|
|
- this.$confirm(this.lang.ssEndClassConfirm, this.lang.ssPrompt, {
|
|
|
|
|
- confirmButtonText: this.lang.ssConfirm,
|
|
|
|
|
- cancelButtonText: this.lang.ssCancel,
|
|
|
|
|
- type: 'warning'
|
|
|
|
|
- }).then(() => {
|
|
|
|
|
- this.$refs.ppt.contentWindow.PPTistStudent.forceLogout();
|
|
|
|
|
- this.$message.success(this.lang.ssStudentLoggedOut)
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- this.back()
|
|
|
|
|
- }, 1000)
|
|
|
|
|
- }).catch(() => { });
|
|
|
|
|
|
|
+
|
|
|
|
|
+ this.$refs.confirmInstructionRef.open({
|
|
|
|
|
+ title: this.lang.ssPrompt,
|
|
|
|
|
+ message: this.lang.ssEndClassConfirm,
|
|
|
|
|
+ cancelText: this.lang.ssCancel,
|
|
|
|
|
+ submitText: this.lang.ssConfirm,
|
|
|
|
|
+ submitCallback: () => {
|
|
|
|
|
+ this.$refs.ppt.contentWindow.PPTistStudent.forceLogout();
|
|
|
|
|
+ this.$refs.messageInstructionRef.pptMessage(this.lang.ssStudentLoggedOut)
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ this.tcid2 = ""
|
|
|
|
|
+ this.refreshCourse()
|
|
|
|
|
+ }, 1000)
|
|
|
|
|
+ },
|
|
|
|
|
+ cancelCallback: () => {
|
|
|
|
|
+ console.log("取消")
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ // this.$confirm(this.lang.ssEndClassConfirm, this.lang.ssPrompt, {
|
|
|
|
|
+ // confirmButtonText: this.lang.ssConfirm,
|
|
|
|
|
+ // cancelButtonText: this.lang.ssCancel,
|
|
|
|
|
+ // type: 'warning'
|
|
|
|
|
+ // }).then(() => {
|
|
|
|
|
+ // this.$refs.ppt.contentWindow.PPTistStudent.forceLogout();
|
|
|
|
|
+ // this.$refs.messageInstructionRef.pptMessage(this.lang.ssStudentLoggedOut)
|
|
|
|
|
+ // setTimeout(() => {
|
|
|
|
|
+ // this.tcid2 = ""
|
|
|
|
|
+ // this.refreshCourse()
|
|
|
|
|
+ // }, 1000)
|
|
|
|
|
+ // }).catch(() => { });
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
} else {
|
|
} else {
|
|
|
- this.$confirm(this.lang.ssEndClassConfirm, this.lang.ssPrompt, {
|
|
|
|
|
- confirmButtonText: this.lang.ssConfirm,
|
|
|
|
|
- cancelButtonText: this.lang.ssCancel,
|
|
|
|
|
- type: 'warning'
|
|
|
|
|
- }).then(() => {
|
|
|
|
|
- this.$refs.ppt.contentWindow.PPTistStudent.forceLogout();
|
|
|
|
|
- this.$message.success(this.lang.ssStudentLoggedOut)
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- this.back()
|
|
|
|
|
- }, 1000)
|
|
|
|
|
- }).catch(() => { });
|
|
|
|
|
|
|
+ // this.$confirm(this.lang.ssEndClassConfirm, this.lang.ssPrompt, {
|
|
|
|
|
+ // confirmButtonText: this.lang.ssConfirm,
|
|
|
|
|
+ // cancelButtonText: this.lang.ssCancel,
|
|
|
|
|
+ // type: 'warning'
|
|
|
|
|
+ // }).then(() => {
|
|
|
|
|
+ // this.$refs.ppt.contentWindow.PPTistStudent.forceLogout();
|
|
|
|
|
+ // this.$refs.messageInstructionRef.pptMessage(this.lang.ssStudentLoggedOut)
|
|
|
|
|
+ // setTimeout(() => {
|
|
|
|
|
+ // this.tcid2 = ""
|
|
|
|
|
+ // this.refreshCourse()
|
|
|
|
|
+ // }, 1000)
|
|
|
|
|
+ // }).catch(() => { });
|
|
|
|
|
+ this.$refs.confirmInstructionRef.open({
|
|
|
|
|
+ title: this.lang.ssPrompt,
|
|
|
|
|
+ message: this.lang.ssEndClassConfirm,
|
|
|
|
|
+ cancelText: this.lang.ssCancel,
|
|
|
|
|
+ submitText: this.lang.ssConfirm,
|
|
|
|
|
+ submitCallback: () => {
|
|
|
|
|
+ this.$refs.ppt.contentWindow.PPTistStudent.forceLogout();
|
|
|
|
|
+ this.$refs.messageInstructionRef.pptMessage(this.lang.ssStudentLoggedOut)
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ this.tcid2 = ""
|
|
|
|
|
+ this.refreshCourse()
|
|
|
|
|
+ }, 1000)
|
|
|
|
|
+ },
|
|
|
|
|
+ cancelCallback: () => {
|
|
|
|
|
+ console.log("取消")
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
},
|
|
},
|