|
@@ -985,6 +985,10 @@
|
|
|
@click="addTools(tooC, toolIndex, taskCount)"
|
|
|
/>
|
|
|
<div style="margin: 5px 0">思维导图</div>
|
|
|
+ <div class="upload_toolBtn" v-if="tType==='1'" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
|
|
|
+ style="position: absolute;right: 33px;top: -30px;">
|
|
|
+ 投影
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div v-if="tooC == 6">
|
|
|
<img
|
|
@@ -16436,7 +16440,7 @@ export default {
|
|
|
}, 0)
|
|
|
})
|
|
|
}
|
|
|
- this.showType = 7;
|
|
|
+ // this.showType = 7;
|
|
|
this.isNoHomeWork = false;
|
|
|
(this.studyJuri = [
|
|
|
{
|
|
@@ -16772,7 +16776,7 @@ export default {
|
|
|
|
|
|
this.vChapterData = _chapterData;
|
|
|
} else {
|
|
|
- this.showType = 0;
|
|
|
+ // this.showType = 0;
|
|
|
var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
|
|
|
.chapterInfo[0].taskJson;
|
|
|
var b = [
|
|
@@ -16856,8 +16860,8 @@ export default {
|
|
|
_chapterData[taskCount].length &&
|
|
|
_chapterData[taskCount][0].type == 2
|
|
|
) {
|
|
|
- this.showType = 0;
|
|
|
- this.pptImgUrl1 = _chapterData[taskCount][0].url;
|
|
|
+ // this.showType = 0;
|
|
|
+ // this.pptImgUrl1 = _chapterData[taskCount][0].url;
|
|
|
} else {
|
|
|
if (_chapterData[taskCount].length > 0) {
|
|
|
let _url = _chapterData[taskCount][0].url;
|
|
@@ -16865,22 +16869,22 @@ export default {
|
|
|
_chapterData[taskCount][0].type == 8 ||
|
|
|
_chapterData[taskCount][0].type == 14
|
|
|
) {
|
|
|
- this.showType = 2;
|
|
|
+ // this.showType = 2;
|
|
|
if (
|
|
|
_url.indexOf("https://") == -1 &&
|
|
|
_url.indexOf("http://") == -1
|
|
|
) {
|
|
|
_url = "https://" + _url;
|
|
|
}
|
|
|
- this.pptImgUrl1 = _url;
|
|
|
+ // this.pptImgUrl1 = _url;
|
|
|
} else if (_chapterData[taskCount][0].type == 3) {
|
|
|
if (
|
|
|
_url
|
|
|
.split(".")
|
|
|
[_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
|
|
|
) {
|
|
|
- this.showType = 3;
|
|
|
- this.pptImgUrl1 = _url;
|
|
|
+ // this.showType = 3;
|
|
|
+ // this.pptImgUrl1 = _url;
|
|
|
} else if (
|
|
|
this.isAssetTypeAnImage(
|
|
|
_url
|
|
@@ -16888,17 +16892,17 @@ export default {
|
|
|
[_url.split(".").length - 1].toLocaleLowerCase()
|
|
|
)
|
|
|
) {
|
|
|
- this.showType = 4;
|
|
|
- this.pptImgUrl1 = _url;
|
|
|
+ // this.showType = 4;
|
|
|
+ // this.pptImgUrl1 = _url;
|
|
|
} else {
|
|
|
- this.showType = 2;
|
|
|
- this.pptImgUrl1 =
|
|
|
- "https://view.officeapps.live.com/op/view.aspx?src=" +
|
|
|
- encodeURIComponent(_url);
|
|
|
+ // this.showType = 2;
|
|
|
+ // this.pptImgUrl1 =
|
|
|
+ // "https://view.officeapps.live.com/op/view.aspx?src=" +
|
|
|
+ // encodeURIComponent(_url);
|
|
|
}
|
|
|
} else if (_chapterData[taskCount][0].type == 13) {
|
|
|
- this.showType = 4;
|
|
|
- this.pptImgUrl1 = _url;
|
|
|
+ // this.showType = 4;
|
|
|
+ // this.pptImgUrl1 = _url;
|
|
|
} else if (_chapterData[taskCount][0].type == 6) {
|
|
|
this.showType = 1;
|
|
|
this.text = this.textList[taskCount][0];
|
|
@@ -16911,10 +16915,10 @@ export default {
|
|
|
_chapterData[taskCount][0].type == 12
|
|
|
) {
|
|
|
this.isClickNav = "";
|
|
|
- this.showType = "";
|
|
|
+ // this.showType = "";
|
|
|
}
|
|
|
|
|
|
- this.vChapterData = _chapterData;
|
|
|
+ this.vChapterData = _chapterData;
|
|
|
this.$forceUpdate();
|
|
|
}
|
|
|
// else {
|
|
@@ -17610,7 +17614,7 @@ export default {
|
|
|
this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
|
|
|
},
|
|
|
lookText(i, t) {
|
|
|
- this.isClickNav = "";
|
|
|
+ this.isClickNav = "";
|
|
|
// this.text = this.textList[i][t];
|
|
|
this.text = this.vChapterData[i][t];
|
|
|
// this.dialogVisible1 = true;
|
|
@@ -20270,13 +20274,38 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ enterFullScreen() {
|
|
|
+ let element = document.documentElement;
|
|
|
+ if (element.requestFullscreen) {
|
|
|
+ element.requestFullscreen();
|
|
|
+ } else if (element.mozRequestFullScreen) { /* Firefox */
|
|
|
+ element.mozRequestFullScreen();
|
|
|
+ } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
|
|
|
+ element.webkitRequestFullscreen();
|
|
|
+ } else if (element.msRequestFullscreen) { /* IE/Edge */
|
|
|
+ element.msRequestFullscreen();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ exitFullScreen() {
|
|
|
+ if (document.exitFullscreen) {
|
|
|
+ document.exitFullscreen();
|
|
|
+ } else if (document.mozCancelFullScreen) { /* Firefox */
|
|
|
+ document.mozCancelFullScreen();
|
|
|
+ } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
|
|
|
+ document.webkitExitFullscreen();
|
|
|
+ } else if (document.msExitFullscreen) { /* IE/Edge */
|
|
|
+ document.msExitFullscreen();
|
|
|
+ }
|
|
|
+ },
|
|
|
confirmOpen(){
|
|
|
this.splitScreenData.isOpen = true;
|
|
|
this.splitScreenData.uid = this.confirmOpenDigData.uid;
|
|
|
this.splitScreenData.userId = this.confirmOpenDigData.userId;
|
|
|
this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
|
|
|
this.confirmOpenDig = false
|
|
|
-
|
|
|
+ if (!document.fullscreenElement) {
|
|
|
+ this.enterFullScreen();
|
|
|
+ }
|
|
|
this.$message.success("分屏模式已开启");
|
|
|
},
|
|
|
getSplitScreenData() {
|
|
@@ -20326,6 +20355,19 @@ export default {
|
|
|
this.splitScreenData.uid = "";
|
|
|
this.splitScreenData.behavior = null;
|
|
|
this.$message.error("已结束分屏模式");
|
|
|
+ this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
|
|
|
+ confirmButtonText: '确定', //确认按钮的文字
|
|
|
+ showCancelButton: false, //是否显示取消按钮
|
|
|
+ showClose: false, //是否显示关闭按钮
|
|
|
+ closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
|
|
|
+ type: "warning",
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ if (document.fullscreenElement) {
|
|
|
+ this.exitFullScreen();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
}
|
|
|
}
|
|
|
})
|