|
@@ -221,7 +221,7 @@
|
|
|
>
|
|
|
<iframe
|
|
|
style="width: 100%; height: 100%; border: none"
|
|
|
- :src="pptImgUrl"
|
|
|
+ :src="pptImgUrl1"
|
|
|
></iframe>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -1396,6 +1396,20 @@
|
|
|
height="600"
|
|
|
></iframe>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog
|
|
|
+ title="文件预览"
|
|
|
+ :visible.sync="dialogVisible6"
|
|
|
+ width="50%"
|
|
|
+ :before-close="handleClose"
|
|
|
+ class="dialog_diy"
|
|
|
+ >
|
|
|
+ <iframe
|
|
|
+ :src="pptImgUrl1"
|
|
|
+ frameborder="0"
|
|
|
+ width="100%"
|
|
|
+ height="600"
|
|
|
+ ></iframe>
|
|
|
+ </el-dialog>
|
|
|
<el-dialog
|
|
|
title="提示"
|
|
|
:visible.sync="dialogVisible4"
|
|
@@ -1485,6 +1499,7 @@ export default {
|
|
|
tType: this.$route.query.tType,
|
|
|
courseType: this.$route.query.type,
|
|
|
pptImgUrl: "",
|
|
|
+ pptImgUrl1: "",
|
|
|
type: 1,
|
|
|
vedio: [],
|
|
|
text: [],
|
|
@@ -1566,6 +1581,7 @@ export default {
|
|
|
dialogVisible1: false,
|
|
|
dialogVisible2: false,
|
|
|
dialogVisible3: false,
|
|
|
+ dialogVisible6:false,
|
|
|
dialogVisible4: false,
|
|
|
isNoHomeWork: false,
|
|
|
dialogVisible5: false,
|
|
@@ -2241,7 +2257,7 @@ export default {
|
|
|
].chapterData[0].type == 3
|
|
|
) {
|
|
|
this.showType = 2;
|
|
|
- this.pptImgUrl =
|
|
|
+ this.pptImgUrl1 =
|
|
|
"https://view.officeapps.live.com/op/view.aspx?src=" +
|
|
|
this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
this.taskCount
|
|
@@ -2361,8 +2377,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
downFile(f, i) {
|
|
|
- console.log(f);
|
|
|
- this.pptImgUrl = "";
|
|
|
+ this.pptImgUrl1 = "";
|
|
|
var a = ["PPT", "PPTX", "PDF", "XLSX", "XLS", "DOC", "DOCX"];
|
|
|
console.log(
|
|
|
a.indexOf(
|
|
@@ -2374,7 +2389,7 @@ export default {
|
|
|
f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
|
|
|
) != -1
|
|
|
) {
|
|
|
- this.pptImgUrl =
|
|
|
+ this.pptImgUrl1 =
|
|
|
"https://view.officeapps.live.com/op/view.aspx?src=" + f.url;
|
|
|
// this.dialogVisible3 = true;
|
|
|
this.showType = 2;
|