|
@@ -116,25 +116,33 @@
|
|
|
<span
|
|
|
@click="isChooseActive(1)"
|
|
|
:class="typeC.indexOf(1) != -1 ? 'isChoose' : ''"
|
|
|
- v-if="tools[ppage - 1].choice && tools[ppage - 1].choice > 0"
|
|
|
+ v-if="
|
|
|
+ tools[ppage - 1].choice && tools[ppage - 1].choice > 0
|
|
|
+ "
|
|
|
>A</span
|
|
|
>
|
|
|
<span
|
|
|
@click="isChooseActive(2)"
|
|
|
:class="typeC.indexOf(2) != -1 ? 'isChoose' : ''"
|
|
|
- v-if="tools[ppage - 1].choice && tools[ppage - 1].choice > 1"
|
|
|
+ v-if="
|
|
|
+ tools[ppage - 1].choice && tools[ppage - 1].choice > 1
|
|
|
+ "
|
|
|
>B</span
|
|
|
>
|
|
|
<span
|
|
|
@click="isChooseActive(3)"
|
|
|
:class="typeC.indexOf(3) != -1 ? 'isChoose' : ''"
|
|
|
- v-if="tools[ppage - 1].choice && tools[ppage - 1].choice > 2"
|
|
|
+ v-if="
|
|
|
+ tools[ppage - 1].choice && tools[ppage - 1].choice > 2
|
|
|
+ "
|
|
|
>C</span
|
|
|
>
|
|
|
<span
|
|
|
@click="isChooseActive(4)"
|
|
|
:class="typeC.indexOf(4) != -1 ? 'isChoose' : ''"
|
|
|
- v-if="tools[ppage - 1].choice && tools[ppage - 1].choice > 3"
|
|
|
+ v-if="
|
|
|
+ tools[ppage - 1].choice && tools[ppage - 1].choice > 3
|
|
|
+ "
|
|
|
>D</span
|
|
|
>
|
|
|
</div>
|
|
@@ -172,7 +180,10 @@
|
|
|
"
|
|
|
>
|
|
|
<div
|
|
|
- v-if="tools[ppage - 1].tools && tools[ppage - 1].tools.indexOf(1) != -1"
|
|
|
+ v-if="
|
|
|
+ tools[ppage - 1].tools &&
|
|
|
+ tools[ppage - 1].tools.indexOf(1) != -1
|
|
|
+ "
|
|
|
@click="checkTools(1)"
|
|
|
class="toolCss"
|
|
|
>
|
|
@@ -182,17 +193,26 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div
|
|
|
- v-if="tools[ppage - 1].tools && tools[ppage - 1].tools.indexOf(3) != -1"
|
|
|
+ v-if="
|
|
|
+ tools[ppage - 1].tools &&
|
|
|
+ tools[ppage - 1].tools.indexOf(3) != -1
|
|
|
+ "
|
|
|
@click="checkTools(3)"
|
|
|
class="toolCss"
|
|
|
>
|
|
|
<div class="toolImg">
|
|
|
- <img src="../assets/icon/secondToolList/mindMapping.png" alt />
|
|
|
+ <img
|
|
|
+ src="../assets/icon/secondToolList/mindMapping.png"
|
|
|
+ alt
|
|
|
+ />
|
|
|
<div>思维导图</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div
|
|
|
- v-if="tools[ppage - 1].tools && tools[ppage - 1].tools.indexOf(28) != -1"
|
|
|
+ v-if="
|
|
|
+ tools[ppage - 1].tools &&
|
|
|
+ tools[ppage - 1].tools.indexOf(28) != -1
|
|
|
+ "
|
|
|
@click="checkTools(28)"
|
|
|
class="toolCss"
|
|
|
>
|
|
@@ -202,7 +222,10 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div
|
|
|
- v-if="tools[ppage - 1].tools && tools[ppage - 1].tools.indexOf(4) != -1"
|
|
|
+ v-if="
|
|
|
+ tools[ppage - 1].tools &&
|
|
|
+ tools[ppage - 1].tools.indexOf(4) != -1
|
|
|
+ "
|
|
|
@click="checkTools(4)"
|
|
|
class="toolCss"
|
|
|
>
|
|
@@ -212,7 +235,10 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div
|
|
|
- v-if="tools[ppage - 1].tools && tools[ppage - 1].tools.indexOf(6) != -1"
|
|
|
+ v-if="
|
|
|
+ tools[ppage - 1].tools &&
|
|
|
+ tools[ppage - 1].tools.indexOf(6) != -1
|
|
|
+ "
|
|
|
@click="checkTools(6)"
|
|
|
class="toolCss"
|
|
|
>
|
|
@@ -222,17 +248,26 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div
|
|
|
- v-if="tools[ppage - 1].tools && tools[ppage - 1].tools.indexOf(7) != -1"
|
|
|
+ v-if="
|
|
|
+ tools[ppage - 1].tools &&
|
|
|
+ tools[ppage - 1].tools.indexOf(7) != -1
|
|
|
+ "
|
|
|
@click="checkTools(7)"
|
|
|
class="toolCss"
|
|
|
>
|
|
|
<div class="toolImg">
|
|
|
- <img src="../assets/icon/secondToolList/mindNetwork.png" alt />
|
|
|
+ <img
|
|
|
+ src="../assets/icon/secondToolList/mindNetwork.png"
|
|
|
+ alt
|
|
|
+ />
|
|
|
<div>思维网格</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div
|
|
|
- v-if="tools[ppage - 1].tools && tools[ppage - 1].tools.indexOf(16) != -1"
|
|
|
+ v-if="
|
|
|
+ tools[ppage - 1].tools &&
|
|
|
+ tools[ppage - 1].tools.indexOf(16) != -1
|
|
|
+ "
|
|
|
@click="addImg($event)"
|
|
|
class="toolCss"
|
|
|
>
|
|
@@ -250,7 +285,10 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div
|
|
|
- v-if="tools[ppage - 1].tools && tools[ppage - 1].tools.indexOf(29) != -1"
|
|
|
+ v-if="
|
|
|
+ tools[ppage - 1].tools &&
|
|
|
+ tools[ppage - 1].tools.indexOf(29) != -1
|
|
|
+ "
|
|
|
@click="addImg($event)"
|
|
|
class="toolCss"
|
|
|
>
|
|
@@ -280,7 +318,11 @@
|
|
|
<div class="tools_title">
|
|
|
<span>电子白板</span>
|
|
|
<div>
|
|
|
- <img src="../assets/full.png" class="full" @click="fullTools" />
|
|
|
+ <img
|
|
|
+ src="../assets/full.png"
|
|
|
+ class="full"
|
|
|
+ @click="fullTools"
|
|
|
+ />
|
|
|
</div>
|
|
|
</div>
|
|
|
<iframe
|
|
@@ -296,7 +338,11 @@
|
|
|
<div class="tools_title">
|
|
|
<span>思维导图</span>
|
|
|
<div>
|
|
|
- <img src="../assets/full.png" class="full" @click="fullTools" />
|
|
|
+ <img
|
|
|
+ src="../assets/full.png"
|
|
|
+ class="full"
|
|
|
+ @click="fullTools"
|
|
|
+ />
|
|
|
</div>
|
|
|
</div>
|
|
|
<iframe
|
|
@@ -312,7 +358,11 @@
|
|
|
<div class="tools_title">
|
|
|
<span>翻译</span>
|
|
|
<div>
|
|
|
- <img src="../assets/full.png" class="full" @click="fullTools" />
|
|
|
+ <img
|
|
|
+ src="../assets/full.png"
|
|
|
+ class="full"
|
|
|
+ @click="fullTools"
|
|
|
+ />
|
|
|
</div>
|
|
|
</div>
|
|
|
<iframe
|
|
@@ -328,7 +378,11 @@
|
|
|
<div class="tools_title">
|
|
|
<span>协同文档</span>
|
|
|
<div>
|
|
|
- <img src="../assets/full.png" class="full" @click="fullTools" />
|
|
|
+ <img
|
|
|
+ src="../assets/full.png"
|
|
|
+ class="full"
|
|
|
+ @click="fullTools"
|
|
|
+ />
|
|
|
</div>
|
|
|
</div>
|
|
|
<iframe
|
|
@@ -343,7 +397,11 @@
|
|
|
<div class="tools_title">
|
|
|
<span>思维网格</span>
|
|
|
<div>
|
|
|
- <img src="../assets/full.png" class="full" @click="fullTools" />
|
|
|
+ <img
|
|
|
+ src="../assets/full.png"
|
|
|
+ class="full"
|
|
|
+ @click="fullTools"
|
|
|
+ />
|
|
|
</div>
|
|
|
</div>
|
|
|
<iframe
|
|
@@ -390,7 +448,9 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="nextStepBox">
|
|
|
- <div class="nextStepOne" @click="(isBlock = 4), (full = false)">返回</div>
|
|
|
+ <div class="nextStepOne" @click="(isBlock = 4), (full = false)">
|
|
|
+ 返回
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div
|
|
|
class="nextStepOne"
|
|
@@ -426,7 +486,11 @@
|
|
|
style="padding: 0 0 0 25px"
|
|
|
>
|
|
|
<div>
|
|
|
- <div class="score_box" v-for="(ra,raIndex) in rateArray" :key="raIndex">
|
|
|
+ <div
|
|
|
+ class="score_box"
|
|
|
+ v-for="(ra, raIndex) in tools[ppage - 1].rateArray"
|
|
|
+ :key="raIndex"
|
|
|
+ >
|
|
|
<span>{{ ra }} </span>
|
|
|
<el-rate v-model="rateList[raIndex]"></el-rate>
|
|
|
</div>
|
|
@@ -434,7 +498,12 @@
|
|
|
<span
|
|
|
slot="footer"
|
|
|
class="dialog-footer sztFooter"
|
|
|
- style="padding: 0 0 30px 0px; position: absolute; right: 20px; bottom: 0"
|
|
|
+ style="
|
|
|
+ padding: 0 0 30px 0px;
|
|
|
+ position: absolute;
|
|
|
+ right: 20px;
|
|
|
+ bottom: 0;
|
|
|
+ "
|
|
|
>
|
|
|
<!-- <el-button @click="isBlock = 0">取消</el-button> -->
|
|
|
<el-button type="primary" @click="addWork(6)">确定</el-button>
|
|
@@ -451,7 +520,9 @@
|
|
|
>
|
|
|
<div>
|
|
|
<div v-for="(tk, tIndex) in 7" :key="tIndex" class="tkCss">
|
|
|
- <div style="margin-right: 10px; font-size: 18px">{{ tIndex + 1 }}、</div>
|
|
|
+ <div style="margin-right: 10px; font-size: 18px">
|
|
|
+ {{ tIndex + 1 }}、
|
|
|
+ </div>
|
|
|
<el-select v-model="tkAnswer[tIndex]" placeholder="请选择答案">
|
|
|
<el-option
|
|
|
v-for="(tkA, tkAIndex) in tkAnswerBox"
|
|
@@ -473,13 +544,22 @@
|
|
|
<span
|
|
|
slot="footer"
|
|
|
class="dialog-footer sztFooter"
|
|
|
- style="padding: 0 0 30px 0px; position: absolute; right: 20px; bottom: 0"
|
|
|
+ style="
|
|
|
+ padding: 0 0 30px 0px;
|
|
|
+ position: absolute;
|
|
|
+ right: 20px;
|
|
|
+ bottom: 0;
|
|
|
+ "
|
|
|
>
|
|
|
<!-- <el-button @click="isBlock = 0">取消</el-button> -->
|
|
|
<el-button type="primary" @click="addWork(5)">提交</el-button>
|
|
|
</span>
|
|
|
</div>
|
|
|
- <div class="answerBox" v-if="isBlock == 5" style="padding: 10px 0 0 25px">
|
|
|
+ <div
|
|
|
+ class="answerBox"
|
|
|
+ v-if="isBlock == 5"
|
|
|
+ style="padding: 10px 0 0 25px"
|
|
|
+ >
|
|
|
<div style="color: #d1d1d1; font-size: 24px">课堂实践</div>
|
|
|
<div
|
|
|
style="
|
|
@@ -506,13 +586,21 @@
|
|
|
v-if="tools[ppage - 1].file && tools[ppage - 1].file.length"
|
|
|
class="fileBox"
|
|
|
>
|
|
|
- <div class="fileListCss" v-for="(v, vIndex) in videoList" :key="vIndex">
|
|
|
+ <div
|
|
|
+ class="fileListCss"
|
|
|
+ v-for="(v, vIndex) in videoList"
|
|
|
+ :key="vIndex"
|
|
|
+ >
|
|
|
<div class="fileCss" @click="playVideo(v.src, vIndex)">
|
|
|
<img src="../assets/uploadMp4.png" alt />
|
|
|
</div>
|
|
|
<div>{{ v.name }}</div>
|
|
|
</div>
|
|
|
- <div class="fileListCss" v-for="(f, fIndex) in fileList" :key="fIndex">
|
|
|
+ <div
|
|
|
+ class="fileListCss"
|
|
|
+ v-for="(f, fIndex) in fileList"
|
|
|
+ :key="fIndex"
|
|
|
+ >
|
|
|
<div class="fileCss" @click="openFile(f.src)">
|
|
|
<img src="../assets/file.png" alt />
|
|
|
</div>
|
|
@@ -557,7 +645,11 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="answerBox" :class="{ fullStyle: full }" v-if="isBlock == 9">
|
|
|
+ <div
|
|
|
+ class="answerBox"
|
|
|
+ :class="{ fullStyle: full }"
|
|
|
+ v-if="isBlock == 9"
|
|
|
+ >
|
|
|
<div style="height: 70%; width: 100%">
|
|
|
<div class="wheel">
|
|
|
<div style="height: 100%">
|
|
@@ -612,7 +704,9 @@
|
|
|
</div>
|
|
|
<div v-if="proVisible" class="mask">
|
|
|
<div class="progressBox">
|
|
|
- <div class="lbox"><img src="../assets/loading.gif" />上传中,请稍后</div>
|
|
|
+ <div class="lbox">
|
|
|
+ <img src="../assets/loading.gif" />上传中,请稍后
|
|
|
+ </div>
|
|
|
<el-progress
|
|
|
:text-inside="true"
|
|
|
:stroke-width="20"
|
|
@@ -744,17 +838,16 @@ export default {
|
|
|
file: [
|
|
|
{
|
|
|
name: "视频1.mp4",
|
|
|
- src:
|
|
|
- "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%AA%92%E4%BD%9311661413782505.mp4",
|
|
|
+ src: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%AA%92%E4%BD%9311661413782505.mp4",
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
"", //问答题
|
|
|
- { tools: [9],choice:3 },
|
|
|
- { tools: [9],choice:3 }, //协同文档
|
|
|
- { tools: [9],choice:3 }, //思维导图
|
|
|
- { tools: [9],choice:3 },
|
|
|
- { tools: [9],choice:3 },
|
|
|
+ { tools: [9], choice: 3 },
|
|
|
+ { tools: [9], choice: 3 }, //协同文档
|
|
|
+ { tools: [9], choice: 3 }, //思维导图
|
|
|
+ { tools: [9], choice: 3 },
|
|
|
+ { tools: [9], choice: 3 },
|
|
|
{ tools: [12] },
|
|
|
{
|
|
|
tools: [27],
|
|
@@ -772,15 +865,22 @@ export default {
|
|
|
file: [
|
|
|
{
|
|
|
name: "视频2.mp4",
|
|
|
- src:
|
|
|
- "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%AA%92%E4%BD%9321661413797366.mp4",
|
|
|
+ src: "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%AA%92%E4%BD%9321661413797366.mp4",
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
{ tools: [9] },
|
|
|
{ tools: [3, 28] },
|
|
|
{ tools: [16] },
|
|
|
- { tools: [14] },
|
|
|
+ {
|
|
|
+ tools: [14],
|
|
|
+ rateArray: [
|
|
|
+ "聚焦主题",
|
|
|
+ "有开头结尾",
|
|
|
+ "语言正确,流畅",
|
|
|
+ "书写规范,美观",
|
|
|
+ ],
|
|
|
+ },
|
|
|
"",
|
|
|
"",
|
|
|
{ tools: [29] },
|
|
@@ -788,12 +888,6 @@ export default {
|
|
|
"",
|
|
|
//1、电子白板 2、便签 3、思维导图 4、问卷调查 5、量规评分 6、协同文档 7、思维网格 8、素材库 9、选择题 10、倒计时 11、问答题 12、选人回答 13、分小组 14、老师对提交作业进行评价 15、问答 16、作业提交 17、学习资料 18、训练平台 19、目标管理 20、课程设计 21、编程平台 22、AI体验 23、python 24、AI平台
|
|
|
],
|
|
|
- rateArray:[
|
|
|
- "聚焦主题",
|
|
|
- "有开头结尾",
|
|
|
- "语言正确,流畅",
|
|
|
- "书写规范,美观",
|
|
|
- ],
|
|
|
rateList: [],
|
|
|
tkAnswerBox: [
|
|
|
"Feelings",
|
|
@@ -878,11 +972,14 @@ export default {
|
|
|
},
|
|
|
//uuid生成
|
|
|
guid() {
|
|
|
- return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
|
|
|
- var r = (Math.random() * 16) | 0,
|
|
|
- v = c == "x" ? r : (r & 0x3) | 0x8;
|
|
|
- return v.toString(16);
|
|
|
- });
|
|
|
+ return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
|
|
|
+ /[xy]/g,
|
|
|
+ function (c) {
|
|
|
+ var r = (Math.random() * 16) | 0,
|
|
|
+ v = c == "x" ? r : (r & 0x3) | 0x8;
|
|
|
+ return v.toString(16);
|
|
|
+ }
|
|
|
+ );
|
|
|
},
|
|
|
time() {
|
|
|
if (!this.now) {
|
|
@@ -1316,12 +1413,16 @@ export default {
|
|
|
for (var i = 0; i < b.length; i++) {
|
|
|
if (
|
|
|
a.indexOf(
|
|
|
- b[i].src.split(".")[b[i].src.split(".").length - 1].toLocaleUpperCase()
|
|
|
+ b[i].src
|
|
|
+ .split(".")
|
|
|
+ [b[i].src.split(".").length - 1].toLocaleUpperCase()
|
|
|
) != -1
|
|
|
) {
|
|
|
this.fileList.push(b[i]);
|
|
|
} else if (
|
|
|
- b[i].src.split(".")[b[i].src.split(".").length - 1].toLocaleUpperCase() == "MP3"
|
|
|
+ b[i].src
|
|
|
+ .split(".")
|
|
|
+ [b[i].src.split(".").length - 1].toLocaleUpperCase() == "MP3"
|
|
|
) {
|
|
|
this.videoList2.push(b[i]);
|
|
|
} else {
|
|
@@ -1369,7 +1470,10 @@ export default {
|
|
|
// this.isBlock = 3;
|
|
|
} else {
|
|
|
this.isBlock = 0;
|
|
|
- if (this.tools[page - 1].tools && this.tools[page - 1].tools.indexOf(9) != -1) {
|
|
|
+ if (
|
|
|
+ this.tools[page - 1].tools &&
|
|
|
+ this.tools[page - 1].tools.indexOf(9) != -1
|
|
|
+ ) {
|
|
|
this.isBlock = 1;
|
|
|
}
|
|
|
// if (this.ppage > 3) {
|
|
@@ -1380,7 +1484,8 @@ export default {
|
|
|
this.toolCount = 0;
|
|
|
if (
|
|
|
this.tools[page - 1].tools &&
|
|
|
- (this.tools[page - 1].tools[0] == 14 || this.tools[page - 1].tools[0] == 12)
|
|
|
+ (this.tools[page - 1].tools[0] == 14 ||
|
|
|
+ this.tools[page - 1].tools[0] == 12)
|
|
|
) {
|
|
|
this.isBlock = 0;
|
|
|
}
|
|
@@ -1392,7 +1497,10 @@ export default {
|
|
|
) {
|
|
|
this.isBlock = 4;
|
|
|
}
|
|
|
- if (this.tools[page - 1].tools && this.tools[page - 1].tools.length > 1) {
|
|
|
+ if (
|
|
|
+ this.tools[page - 1].tools &&
|
|
|
+ this.tools[page - 1].tools.length > 1
|
|
|
+ ) {
|
|
|
this.isBlock = 4;
|
|
|
}
|
|
|
if (this.tools[page - 1].tools && !this.tools[page - 1].tools.length) {
|
|
@@ -1430,7 +1538,10 @@ export default {
|
|
|
this.isBlock = 8;
|
|
|
}
|
|
|
|
|
|
- if (this.tools[this.ppage - 1].file && this.tools[this.ppage - 1].file.length) {
|
|
|
+ if (
|
|
|
+ this.tools[this.ppage - 1].file &&
|
|
|
+ this.tools[this.ppage - 1].file.length
|
|
|
+ ) {
|
|
|
} else {
|
|
|
this.videoBlock = 0;
|
|
|
}
|
|
@@ -1510,17 +1621,25 @@ export default {
|
|
|
"https://pbl.cocorobo.cn/pbl-student-table/dist/js/aws-sdk-2.235.1.min.js";
|
|
|
const script3 = document.createElement("script");
|
|
|
script3.type = "text/javascript";
|
|
|
- script3.src = "https://html2canvas.hertzen.com/dist/js/html2canvas.min.js";
|
|
|
+ script3.src =
|
|
|
+ "https://html2canvas.hertzen.com/dist/js/html2canvas.min.js";
|
|
|
const script4 = document.createElement("script");
|
|
|
script4.type = "text/javascript";
|
|
|
- script4.src = "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu.js";
|
|
|
+ script4.src =
|
|
|
+ "https://pbl.cocorobo.cn/pbl-student-table/dist/js/jietu.js";
|
|
|
|
|
|
if (_this.toolCount == 1) {
|
|
|
_this.$refs.whiteBoard.onload = () => {
|
|
|
- _this.$refs.whiteBoard.contentWindow.document.body.appendChild(script1);
|
|
|
- _this.$refs.whiteBoard.contentWindow.document.body.appendChild(script2);
|
|
|
+ _this.$refs.whiteBoard.contentWindow.document.body.appendChild(
|
|
|
+ script1
|
|
|
+ );
|
|
|
+ _this.$refs.whiteBoard.contentWindow.document.body.appendChild(
|
|
|
+ script2
|
|
|
+ );
|
|
|
// _this.$refs.whiteBoard.contentWindow.document.body.appendChild(script3);
|
|
|
- _this.$refs.whiteBoard.contentWindow.document.body.appendChild(script4);
|
|
|
+ _this.$refs.whiteBoard.contentWindow.document.body.appendChild(
|
|
|
+ script4
|
|
|
+ );
|
|
|
};
|
|
|
} else if (_this.toolCount == 3) {
|
|
|
_this.$refs.mind.onload = () => {
|