|
@@ -621,7 +621,7 @@
|
|
|
>
|
|
|
<div v-if="tooC == 1">
|
|
|
<img
|
|
|
- @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
+ @click="addTools(tooC, toolIndex,jdIndex, rwIndex)"
|
|
|
src="../assets/icon/secondToolList/whiteBoard.png"
|
|
|
alt
|
|
|
/>
|
|
@@ -633,7 +633,7 @@
|
|
|
</div>
|
|
|
<div v-if="tooC == 3">
|
|
|
<img
|
|
|
- @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
+ @click="addTools(tooC, toolIndex,jdIndex, rwIndex)"
|
|
|
src="../assets/icon/secondToolList/mindMapping.png"
|
|
|
alt
|
|
|
/>
|
|
@@ -646,7 +646,7 @@
|
|
|
</div>
|
|
|
<div v-if="tooC == 6">
|
|
|
<img
|
|
|
- @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
+ @click="addTools(tooC, toolIndex,jdIndex, rwIndex)"
|
|
|
src="../assets/icon/secondToolList/doc.png"
|
|
|
alt
|
|
|
/>
|
|
@@ -659,7 +659,7 @@
|
|
|
</div>
|
|
|
<div v-if="tooC == 7">
|
|
|
<img
|
|
|
- @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
+ @click="addTools(tooC, toolIndex,jdIndex, rwIndex)"
|
|
|
src="../assets/icon/secondToolList/mindNetwork.png"
|
|
|
alt
|
|
|
/>
|
|
@@ -686,7 +686,7 @@
|
|
|
</div>
|
|
|
<div v-if="tooC == 2">
|
|
|
<img
|
|
|
- @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
+ @click="addTools(tooC, toolIndex,jdIndex, rwIndex)"
|
|
|
src="../assets/icon/secondToolList/note.png"
|
|
|
alt
|
|
|
/>
|
|
@@ -713,7 +713,7 @@
|
|
|
</div>
|
|
|
<div v-if="tooC == 32">
|
|
|
<img
|
|
|
- @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
+ @click="addTools(tooC, toolIndex,jdIndex, rwIndex)"
|
|
|
src="../assets/icon/thirdToolList/code.png"
|
|
|
alt
|
|
|
/>
|
|
@@ -725,7 +725,7 @@
|
|
|
</div>
|
|
|
<div v-if="tooC == 31">
|
|
|
<img
|
|
|
- @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
+ @click="addTools(tooC, toolIndex,jdIndex, rwIndex)"
|
|
|
src="../assets/icon/secondToolList/networkPanel.png"
|
|
|
alt
|
|
|
/>
|
|
@@ -737,7 +737,7 @@
|
|
|
</div>
|
|
|
<div v-if="tooC == 28">
|
|
|
<img
|
|
|
- @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
+ @click="addTools(tooC, toolIndex,jdIndex, rwIndex)"
|
|
|
src="../assets/icon/secondToolList/translation.png"
|
|
|
alt
|
|
|
/>
|
|
@@ -749,7 +749,7 @@
|
|
|
</div>
|
|
|
<div v-if="tooC == 37">
|
|
|
<img
|
|
|
- @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
+ @click="addTools(tooC, toolIndex,jdIndex, rwIndex)"
|
|
|
src="../assets/icon/secondToolList/mohe.png"
|
|
|
alt
|
|
|
/>
|
|
@@ -761,7 +761,7 @@
|
|
|
</div>
|
|
|
<div v-if="tooC == 38">
|
|
|
<img
|
|
|
- @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
+ @click="addTools(tooC, toolIndex,jdIndex, rwIndex)"
|
|
|
src="../assets/icon/secondToolList/24game.png"
|
|
|
alt
|
|
|
/>
|
|
@@ -773,7 +773,7 @@
|
|
|
</div>
|
|
|
<div v-if="tooC == 39">
|
|
|
<img
|
|
|
- @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
+ @click="addTools(tooC, toolIndex,jdIndex, rwIndex)"
|
|
|
src="../assets/icon/secondToolList/GeoGebra.png"
|
|
|
alt
|
|
|
/>
|
|
@@ -784,8 +784,16 @@
|
|
|
<iframe src="//www.geogebra.org/calculator" class="iframeCss"></iframe> -->
|
|
|
</div>
|
|
|
<div v-if="tooC == 4">
|
|
|
- <div class="iframeName">选择题</div>
|
|
|
- <div>
|
|
|
+ <img
|
|
|
+ @click="addTools(tooC, toolIndex,jdIndex, rwIndex)"
|
|
|
+ src="../assets/icon/thirdToolList/ask.png"
|
|
|
+ alt
|
|
|
+ />
|
|
|
+ <div style="margin: 5px 0; padding-left: 8px">
|
|
|
+ 选择题
|
|
|
+ </div>
|
|
|
+ <!-- <div class="iframeName">选择题</div> -->
|
|
|
+ <!-- <div>
|
|
|
<div
|
|
|
class="a_add_title"
|
|
|
style="
|
|
@@ -849,7 +857,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
</div>
|
|
|
<!-- <div v-if="tooC == 5">
|
|
|
<img
|
|
@@ -861,7 +869,7 @@
|
|
|
</div> -->
|
|
|
<div v-if="tooC == 10">
|
|
|
<img
|
|
|
- @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
+ @click="addTools(tooC, toolIndex,jdIndex, rwIndex)"
|
|
|
src="../assets/icon/thirdToolList/time.png"
|
|
|
alt
|
|
|
/>
|
|
@@ -906,7 +914,7 @@
|
|
|
</div>
|
|
|
<div v-if="tooC == 26">
|
|
|
<img
|
|
|
- @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
+ @click="addTools(tooC, toolIndex,jdIndex, rwIndex)"
|
|
|
src="../assets/icon/thirdToolList/courseDesign.png"
|
|
|
alt
|
|
|
/>
|
|
@@ -919,7 +927,7 @@
|
|
|
</div>
|
|
|
<div v-if="tooC == 18">
|
|
|
<img
|
|
|
- @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
+ @click="addTools(tooC, toolIndex,jdIndex, rwIndex)"
|
|
|
src="../assets/icon/thirdToolList/trainPlatform.png"
|
|
|
alt
|
|
|
/>
|
|
@@ -931,7 +939,7 @@
|
|
|
</div>
|
|
|
<div v-if="tooC == 16">
|
|
|
<img
|
|
|
- @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
+ @click="addTools(tooC, toolIndex,jdIndex, rwIndex)"
|
|
|
src="../assets/icon/thirdToolList/work.png"
|
|
|
alt
|
|
|
/>
|
|
@@ -941,7 +949,7 @@
|
|
|
</div>
|
|
|
<div v-if="tooC == 21">
|
|
|
<img
|
|
|
- @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
+ @click="addTools(tooC, toolIndex,jdIndex, rwIndex)"
|
|
|
src="../assets/icon/fourthToolList/program.png"
|
|
|
alt
|
|
|
/>
|
|
@@ -953,7 +961,7 @@
|
|
|
</div>
|
|
|
<div v-if="tooC == 22">
|
|
|
<img
|
|
|
- @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
+ @click="addTools(tooC, toolIndex,jdIndex, rwIndex)"
|
|
|
src="../assets/icon/fourthToolList/AIprogram2.png"
|
|
|
alt
|
|
|
/>
|
|
@@ -965,7 +973,7 @@
|
|
|
</div>
|
|
|
<div v-if="tooC == 23">
|
|
|
<img
|
|
|
- @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
+ @click="addTools(tooC, toolIndex,jdIndex, rwIndex)"
|
|
|
src="../assets/icon/fourthToolList/Pythonprogram.png"
|
|
|
alt
|
|
|
/>
|
|
@@ -977,7 +985,7 @@
|
|
|
</div>
|
|
|
<div v-if="tooC == 24">
|
|
|
<img
|
|
|
- @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
+ @click="addTools(tooC, toolIndex,jdIndex, rwIndex)"
|
|
|
src="../assets/icon/fourthToolList/program.png"
|
|
|
alt
|
|
|
/>
|
|
@@ -989,7 +997,7 @@
|
|
|
</div>
|
|
|
<div v-if="tooC == 40">
|
|
|
<img
|
|
|
- @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
+ @click="addTools(tooC, toolIndex,jdIndex, rwIndex)"
|
|
|
src="../assets/icon/secondToolList/eval.png"
|
|
|
alt
|
|
|
/>
|
|
@@ -999,7 +1007,7 @@
|
|
|
</div>
|
|
|
<div v-if="tooC == 41">
|
|
|
<img
|
|
|
- @click="addTools(tooC, toolIndex, taskCount)"
|
|
|
+ @click="addTools(tooC, toolIndex,jdIndex, rwIndex)"
|
|
|
src="../assets/icon/thirdToolList/select.png"
|
|
|
alt
|
|
|
/>
|
|
@@ -1125,38 +1133,58 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div v-if="
|
|
|
- worksStudent[jdIndex] &&
|
|
|
- worksStudent[jdIndex][rwIndex] &&
|
|
|
- tType &&
|
|
|
- tType == 3 &&
|
|
|
- tool.tool.indexOf(4) != -1 && (tool.askJson[0].answer || tool.askJson[0].answer === 0)
|
|
|
- " class="xuan_right_box">
|
|
|
- <div class="tool_right_box" v-for="(item, index) in tool.askJson" :key="index">
|
|
|
+ <div
|
|
|
+ v-if="
|
|
|
+ worksStudent[jdIndex] &&
|
|
|
+ worksStudent[jdIndex][rwIndex] &&
|
|
|
+ tType &&
|
|
|
+ tType == 3 &&
|
|
|
+ tool.tool.indexOf(4) != -1 &&
|
|
|
+ (tool.askJson[0].answer || tool.askJson[0].answer === 0)
|
|
|
+ "
|
|
|
+ class="xuan_right_box"
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ class="tool_right_box"
|
|
|
+ v-for="(item, index) in tool.askJson"
|
|
|
+ :key="index"
|
|
|
+ >
|
|
|
<div>
|
|
|
<span>{{ index + 1 + "、" + item.askstitle }}</span>
|
|
|
</div>
|
|
|
- <div class="right_box_xuan" v-for="(item1, checkIndex) in item.askItem" :key="checkIndex"
|
|
|
- v-if=" item.answer == checkIndex">
|
|
|
+ <div
|
|
|
+ class="right_box_xuan"
|
|
|
+ v-for="(item1, checkIndex) in item.askItem"
|
|
|
+ :key="checkIndex"
|
|
|
+ v-if="item.answer == checkIndex"
|
|
|
+ >
|
|
|
<span>正确率</span>
|
|
|
<span>{{
|
|
|
- (checkJson[jdIndex][rwIndex][toolIndex][index].checkPerent[checkIndex]
|
|
|
- ? checkJson[jdIndex][rwIndex][toolIndex][index].checkPerent[checkIndex]
|
|
|
- : 0) +'%'
|
|
|
+ (checkJson[jdIndex][rwIndex][toolIndex][index]
|
|
|
+ .checkPerent[checkIndex]
|
|
|
+ ? checkJson[jdIndex][rwIndex][toolIndex][index]
|
|
|
+ .checkPerent[checkIndex]
|
|
|
+ : 0) + "%"
|
|
|
}}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div v-if="
|
|
|
- worksStudent[jdIndex] &&
|
|
|
- worksStudent[jdIndex][rwIndex] &&
|
|
|
- tType &&
|
|
|
- tType == 3 &&
|
|
|
- tool.tool.indexOf(4) != -1
|
|
|
- " class="worksBox">
|
|
|
- <div style="padding-top: 15px; font-size: 18px" v-if="
|
|
|
- worksStudent[jdIndex][rwIndex][toolIndex].length > 0
|
|
|
- ">
|
|
|
+ <div
|
|
|
+ v-if="
|
|
|
+ worksStudent[jdIndex] &&
|
|
|
+ worksStudent[jdIndex][rwIndex] &&
|
|
|
+ tType &&
|
|
|
+ tType == 3 &&
|
|
|
+ tool.tool.indexOf(4) != -1
|
|
|
+ "
|
|
|
+ class="worksBox"
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ style="padding-top: 15px; font-size: 18px"
|
|
|
+ v-if="
|
|
|
+ worksStudent[jdIndex][rwIndex][toolIndex].length > 0
|
|
|
+ "
|
|
|
+ >
|
|
|
作业预览
|
|
|
</div>
|
|
|
<div>
|
|
@@ -2373,7 +2401,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="pzListBox" v-else>暂无批注</div>
|
|
|
+ <div class="pzListBox" v-else style="padding-left: 10px">暂无批注</div>
|
|
|
<div class="addPz" @click="addPzDialog = true">添加批注</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -2677,6 +2705,72 @@
|
|
|
>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog
|
|
|
+ :title="noteName != '' ? noteName : '查看选择题'"
|
|
|
+ :visible.sync="dialogVisible5"
|
|
|
+ :append-to-body="true"
|
|
|
+ width="1000px"
|
|
|
+ :before-close="handleClose"
|
|
|
+ class="dialog_diy dialog_diy3"
|
|
|
+ >
|
|
|
+ <div>
|
|
|
+ <div
|
|
|
+ class="a_add_title"
|
|
|
+ style="
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <div style="margin-right: 20px; font-size: 20px">标题:</div>
|
|
|
+ <div style="font-size: 20px">{{ askJson.askTitle }}</div>
|
|
|
+ </div>
|
|
|
+ <div class="a_addBox">
|
|
|
+ <div style="font-size: 16px; color: #c7c7c7">题目内容</div>
|
|
|
+ <div
|
|
|
+ class="a_add_box"
|
|
|
+ v-for="(item1, index1) in askJson.askCount"
|
|
|
+ :key="index1"
|
|
|
+ >
|
|
|
+ <div class="a_add_head">
|
|
|
+ <div style="display: flex">
|
|
|
+ {{ index1 + 1 + "、" }}
|
|
|
+ <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
|
|
|
+ </div>
|
|
|
+ <img
|
|
|
+ v-if="askJson.askJson[index1].img"
|
|
|
+ :src="askJson.askJson[index1].img"
|
|
|
+ style="width: 100%; margin-top: 10px"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <div class="a_add_body">
|
|
|
+ <div class="a_add_input">
|
|
|
+ <el-radio-group v-model="radio[index1]">
|
|
|
+ <el-radio
|
|
|
+ v-for="(item2, checkIndex) in askJson.askJson[index1]
|
|
|
+ .checkList"
|
|
|
+ :key="checkIndex"
|
|
|
+ :label="checkIndex"
|
|
|
+ :disabled="isAnswer"
|
|
|
+ class="redioStyle"
|
|
|
+ ><span v-html="item2"></span
|
|
|
+ ></el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
|
|
|
+ >取 消</el-button
|
|
|
+ >
|
|
|
+ <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
|
|
|
+ >确 定</el-button
|
|
|
+ >
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
<el-dialog
|
|
|
title="查看详情"
|
|
|
:visible.sync="commentDialogVisible"
|
|
@@ -2830,16 +2924,22 @@
|
|
|
</div>
|
|
|
<div style="margin-top: 10px">
|
|
|
<div class="displayBox">
|
|
|
- <div style="
|
|
|
+ <div
|
|
|
+ style="
|
|
|
color: #556db4;
|
|
|
font-size: 14px;
|
|
|
font-weight: bold;
|
|
|
padding-bottom: 10px;
|
|
|
- ">
|
|
|
+ "
|
|
|
+ >
|
|
|
评价
|
|
|
</div>
|
|
|
<div class="easy_comment">
|
|
|
- <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 1)">
|
|
|
+ <div
|
|
|
+ v-for="(p, pIndex) in PlTextList"
|
|
|
+ :key="pIndex"
|
|
|
+ @click="fastText(p, 1)"
|
|
|
+ >
|
|
|
{{ p }}
|
|
|
</div>
|
|
|
</div>
|
|
@@ -2940,7 +3040,11 @@
|
|
|
<div v-if="e.detail">{{ e.detail }}</div>
|
|
|
</div>
|
|
|
<div class="easy_comment" v-if="isStar == false">
|
|
|
- <div v-for="(p, pIndex) in PlTextList" :key="pIndex" @click="fastText(p, 2)">
|
|
|
+ <div
|
|
|
+ v-for="(p, pIndex) in PlTextList"
|
|
|
+ :key="pIndex"
|
|
|
+ @click="fastText(p, 2)"
|
|
|
+ >
|
|
|
{{ p }}
|
|
|
</div>
|
|
|
</div>
|
|
@@ -3097,6 +3201,7 @@ export default {
|
|
|
studentEvalDialogVisible: false,
|
|
|
pzDialog: false,
|
|
|
addPzDialog: false,
|
|
|
+ chooseVisible: false,
|
|
|
videoDetail: {},
|
|
|
commentDetail: [],
|
|
|
rateJson: [],
|
|
@@ -3207,7 +3312,7 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
playerO: [],
|
|
|
- pzList:[],
|
|
|
+ pzList: [],
|
|
|
noneBtnImg: false,
|
|
|
proVisible: false,
|
|
|
progress: 0,
|
|
@@ -3490,7 +3595,7 @@ export default {
|
|
|
console.error(err);
|
|
|
});
|
|
|
},
|
|
|
- selectPz(){
|
|
|
+ selectPz() {
|
|
|
this.pzDialog = true;
|
|
|
let params = {
|
|
|
cid: this.id,
|
|
@@ -5044,17 +5149,18 @@ export default {
|
|
|
}
|
|
|
window.open(url);
|
|
|
},
|
|
|
- addTools(t, i, index) {
|
|
|
+ addTools(t, i, jdIndex,index) {
|
|
|
var a = 0;
|
|
|
- // this.taskCount = index;
|
|
|
+ this.courseType = jdIndex;
|
|
|
+ this.taskCount = index;
|
|
|
this.toolindex = i;
|
|
|
if (t == 1) {
|
|
|
if (this.wbCount > 0) {
|
|
|
- this.updateCount(this.wbCount, t);
|
|
|
+ this.updateCount(this.wbCount, t,jdIndex);
|
|
|
} else {
|
|
|
this.wbCount++;
|
|
|
a = this.wbCount;
|
|
|
- this.toolsCount(a, t);
|
|
|
+ this.toolsCount(a, t,jdIndex);
|
|
|
}
|
|
|
// window.parent.postMessage(
|
|
|
// {
|
|
@@ -5068,20 +5174,20 @@ export default {
|
|
|
// );
|
|
|
} else if (t == 2) {
|
|
|
if (this.wordCount > 0) {
|
|
|
- this.updateCount(this.wordCount, t);
|
|
|
+ this.updateCount(this.wordCount, t,jdIndex);
|
|
|
} else {
|
|
|
this.wordCount++;
|
|
|
a = this.wordCount;
|
|
|
- this.toolsCount(a, t);
|
|
|
+ this.toolsCount(a, t,jdIndex);
|
|
|
}
|
|
|
window.parent.postMessage({ tools: "2" }, "*");
|
|
|
} else if (t == 3) {
|
|
|
if (this.mindCount > 0) {
|
|
|
- this.updateCount(this.mindCount, t);
|
|
|
+ this.updateCount(this.mindCount, t,jdIndex);
|
|
|
} else {
|
|
|
this.mindCount++;
|
|
|
a = this.mindCount;
|
|
|
- this.toolsCount(a, t);
|
|
|
+ this.toolsCount(a, t,jdIndex,jdIndex);
|
|
|
}
|
|
|
window.parent.postMessage(
|
|
|
{
|
|
@@ -5098,23 +5204,23 @@ export default {
|
|
|
this.noteName = "";
|
|
|
this.isAnswer = false;
|
|
|
if (this.askCount > 0) {
|
|
|
- this.updateCount(this.askCount, t);
|
|
|
+ this.updateCount(this.askCount, t,jdIndex);
|
|
|
} else {
|
|
|
this.askCount++;
|
|
|
a = this.askCount;
|
|
|
- this.toolsCount(a, t);
|
|
|
+ this.toolsCount(a, t,jdIndex,jdIndex);
|
|
|
}
|
|
|
if (!this.dialogVisible2) {
|
|
|
this.askJson.askJson =
|
|
|
- this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
+ this.chapInfoList[jdIndex].chapterInfo[0].taskJson[
|
|
|
index
|
|
|
].toolChoose[i].askJson;
|
|
|
this.askJson.askTitle =
|
|
|
- this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
+ this.chapInfoList[jdIndex].chapterInfo[0].taskJson[
|
|
|
index
|
|
|
].toolChoose[i].askTitle;
|
|
|
this.askJson.askCount =
|
|
|
- this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
+ this.chapInfoList[jdIndex].chapterInfo[0].taskJson[
|
|
|
index
|
|
|
].toolChoose[i].askCount;
|
|
|
} else {
|
|
@@ -5127,27 +5233,27 @@ export default {
|
|
|
// window.parent.postMessage({ tools: "4" }, "*");
|
|
|
} else if (t == 5) {
|
|
|
if (this.scoreCount > 0) {
|
|
|
- this.updateCount(this.scoreCount, t);
|
|
|
+ this.updateCount(this.scoreCount, t,jdIndex);
|
|
|
} else {
|
|
|
this.scoreCount++;
|
|
|
a = this.scoreCount;
|
|
|
- this.toolsCount(a, t);
|
|
|
+ this.toolsCount(a, t,jdIndex);
|
|
|
}
|
|
|
this.dialogVisible4 = true;
|
|
|
// window.parent.postMessage({ tools: "5" }, "*");
|
|
|
} else if (t == 6) {
|
|
|
if (this.noteCount > 0) {
|
|
|
- this.updateCount(this.noteCount, t);
|
|
|
+ this.updateCount(this.noteCount, t,jdIndex);
|
|
|
} else {
|
|
|
this.noteCount++;
|
|
|
a = this.noteCount;
|
|
|
- this.toolsCount(a, t);
|
|
|
+ this.toolsCount(a, t,jdIndex);
|
|
|
}
|
|
|
window.parent.postMessage(
|
|
|
{
|
|
|
tools: "6",
|
|
|
cid: this.id,
|
|
|
- stage: this.courseType,
|
|
|
+ stage: jdIndex,
|
|
|
task: this.taskCount,
|
|
|
tool: i,
|
|
|
},
|
|
@@ -5155,17 +5261,17 @@ export default {
|
|
|
);
|
|
|
} else if (t == 7) {
|
|
|
if (this.mindNetWorkCount > 0) {
|
|
|
- this.updateCount(this.mindNetWorkCount, t);
|
|
|
+ this.updateCount(this.mindNetWorkCount, t,jdIndex);
|
|
|
} else {
|
|
|
this.mindNetWorkCount++;
|
|
|
a = this.mindNetWorkCount;
|
|
|
- this.toolsCount(a, t);
|
|
|
+ this.toolsCount(a, t,jdIndex);
|
|
|
}
|
|
|
window.parent.postMessage(
|
|
|
{
|
|
|
tools: "7",
|
|
|
cid: this.id,
|
|
|
- stage: this.courseType,
|
|
|
+ stage: jdIndex,
|
|
|
task: this.taskCount,
|
|
|
tool: i,
|
|
|
},
|
|
@@ -5173,62 +5279,62 @@ export default {
|
|
|
);
|
|
|
} else if (t == 16) {
|
|
|
if (this.workCount > 0) {
|
|
|
- this.updateCount(this.workCount, t);
|
|
|
+ this.updateCount(this.workCount, t,jdIndex);
|
|
|
} else {
|
|
|
this.workCount++;
|
|
|
a = this.workCount;
|
|
|
- this.toolsCount(a, t);
|
|
|
+ this.toolsCount(a, t,jdIndex);
|
|
|
}
|
|
|
this.dialogVisible = true;
|
|
|
} else if (t == 8) {
|
|
|
if (this.libraryCount > 0) {
|
|
|
- this.updateCount(this.libraryCount, t);
|
|
|
+ this.updateCount(this.libraryCount, t,jdIndex);
|
|
|
} else {
|
|
|
this.libraryCount++;
|
|
|
a = this.libraryCount;
|
|
|
- this.toolsCount(a, t);
|
|
|
+ this.toolsCount(a, t,jdIndex);
|
|
|
}
|
|
|
window.parent.postMessage({ tools: "8" }, "*");
|
|
|
} else if (t == 17) {
|
|
|
if (this.libraryCount > 0) {
|
|
|
- this.updateCount(this.libraryCount, t);
|
|
|
+ this.updateCount(this.libraryCount, t,jdIndex);
|
|
|
} else {
|
|
|
this.libraryCount++;
|
|
|
a = this.libraryCount;
|
|
|
- this.toolsCount(a, t);
|
|
|
+ this.toolsCount(a, t,jdIndex);
|
|
|
}
|
|
|
window.parent.postMessage({ tools: "17" }, "*");
|
|
|
} else if (t == 18) {
|
|
|
if (this.trainCount > 0) {
|
|
|
- this.updateCount(this.trainCount, t);
|
|
|
+ this.updateCount(this.trainCount, t,jdIndex);
|
|
|
} else {
|
|
|
this.trainCount++;
|
|
|
a = this.trainCount;
|
|
|
- this.toolsCount(a, t);
|
|
|
+ this.toolsCount(a, t,jdIndex);
|
|
|
}
|
|
|
window.parent.postMessage({ tools: "18" }, "*");
|
|
|
} else if (t == 10) {
|
|
|
if (this.timeCount > 0) {
|
|
|
- this.updateCount(this.timeCount, t);
|
|
|
+ this.updateCount(this.timeCount, t,jdIndex);
|
|
|
} else {
|
|
|
this.timeCount++;
|
|
|
a = this.timeCount;
|
|
|
- this.toolsCount(a, t);
|
|
|
+ this.toolsCount(a, t,jdIndex);
|
|
|
}
|
|
|
this.timeDialogVisible = true;
|
|
|
} else if (t == 15) {
|
|
|
this.answerQ = "";
|
|
|
this.questionAnswer = "";
|
|
|
if (this.answerCount > 0) {
|
|
|
- this.updateCount(this.answerCount, t);
|
|
|
+ this.updateCount(this.answerCount, t,jdIndex);
|
|
|
} else {
|
|
|
this.answerCount++;
|
|
|
a = this.answerCount;
|
|
|
- this.toolsCount(a, t);
|
|
|
+ this.toolsCount(a, t,jdIndex);
|
|
|
}
|
|
|
- this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
|
|
|
+ this.answerQ = this.chapInfoList[jdIndex].chapterInfo[0]
|
|
|
.taskJson[index].toolChoose[i].answerQ
|
|
|
- ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
|
|
|
+ ? this.chapInfoList[jdIndex].chapterInfo[0].taskJson[index]
|
|
|
.toolChoose[i].answerQ
|
|
|
: "";
|
|
|
this.answerDialogVisible = true;
|
|
@@ -5245,48 +5351,48 @@ export default {
|
|
|
{
|
|
|
tools: "26",
|
|
|
cid: this.id,
|
|
|
- stage: this.courseType,
|
|
|
- task: this.taskCount,
|
|
|
+ stage: jdIndex,
|
|
|
+ task: index,
|
|
|
tool: i,
|
|
|
},
|
|
|
"*"
|
|
|
);
|
|
|
} else if (t == 40) {
|
|
|
if (this.evalCount > 0) {
|
|
|
- this.updateCount(this.evalCount, t);
|
|
|
+ this.updateCount(this.evalCount, t,jdIndex);
|
|
|
} else {
|
|
|
this.evalCount++;
|
|
|
a = this.evalCount;
|
|
|
- this.toolsCount(a, t);
|
|
|
+ this.toolsCount(a, t,jdIndex);
|
|
|
}
|
|
|
- if (this.worksStudent[this.courseType][index][i].length) {
|
|
|
+ if (this.worksStudent[jdIndex][index][i].length) {
|
|
|
for (
|
|
|
var k = 0;
|
|
|
- k < this.worksStudent[this.courseType][index][i].length;
|
|
|
+ k < this.worksStudent[jdIndex][index][i].length;
|
|
|
k++
|
|
|
) {
|
|
|
if (
|
|
|
this.userid ==
|
|
|
- this.worksStudent[this.courseType][index][i][k].userid
|
|
|
+ this.worksStudent[jdIndex][index][i][k].userid
|
|
|
) {
|
|
|
this.eScore = JSON.parse(
|
|
|
- this.worksStudent[this.courseType][index][i][k].works
|
|
|
+ this.worksStudent[jdIndex][index][i][k].works
|
|
|
);
|
|
|
this.rateJson =
|
|
|
- this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
+ this.chapInfoList[jdIndex].chapterInfo[0].taskJson[
|
|
|
index
|
|
|
].toolChoose[i].rateJson;
|
|
|
break;
|
|
|
} else {
|
|
|
this.rateJson =
|
|
|
- this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
+ this.chapInfoList[jdIndex].chapterInfo[0].taskJson[
|
|
|
index
|
|
|
].toolChoose[i].rateJson;
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
this.rateJson =
|
|
|
- this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
+ this.chapInfoList[jdIndex].chapterInfo[0].taskJson[
|
|
|
index
|
|
|
].toolChoose[i].rateJson;
|
|
|
}
|
|
@@ -5294,28 +5400,28 @@ export default {
|
|
|
this.isStar = false;
|
|
|
this.studentEvalDialogVisible = true;
|
|
|
} else if (t == 41) {
|
|
|
- this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
|
|
|
+ this.selectJson = this.chapInfoList[jdIndex].chapterInfo[0]
|
|
|
.taskJson[index].toolChoose[i].selectJson
|
|
|
? JSON.parse(
|
|
|
JSON.stringify(
|
|
|
- this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
|
|
|
+ this.chapInfoList[jdIndex].chapterInfo[0].taskJson[
|
|
|
index
|
|
|
].toolChoose[i].selectJson
|
|
|
)
|
|
|
)
|
|
|
: { url: "", select: [], answer: [] };
|
|
|
- if (this.worksStudent[this.courseType][index][i].length) {
|
|
|
+ if (this.worksStudent[jdIndex][index][i].length) {
|
|
|
for (
|
|
|
var k = 0;
|
|
|
- k < this.worksStudent[this.courseType][index][i].length;
|
|
|
+ k < this.worksStudent[jdIndex][index][i].length;
|
|
|
k++
|
|
|
) {
|
|
|
if (
|
|
|
this.userid ==
|
|
|
- this.worksStudent[this.courseType][index][i][k].userid
|
|
|
+ this.worksStudent[jdIndex][index][i][k].userid
|
|
|
) {
|
|
|
var a =
|
|
|
- this.worksStudent[this.courseType][index][i][k].works.split(
|
|
|
+ this.worksStudent[jdIndex][index][i][k].works.split(
|
|
|
","
|
|
|
);
|
|
|
for (var ki = 0; ki < a.length; ki++) {
|
|
@@ -5323,7 +5429,7 @@ export default {
|
|
|
}
|
|
|
this.selectAnswer = {
|
|
|
answer: a,
|
|
|
- stu: this.worksStudent[this.courseType][index][i][k].sName,
|
|
|
+ stu: this.worksStudent[jdIndex][index][i][k].sName,
|
|
|
};
|
|
|
break;
|
|
|
} else {
|
|
@@ -5393,10 +5499,10 @@ export default {
|
|
|
].rateJson;
|
|
|
this.studentEvalDialogVisible = true;
|
|
|
},
|
|
|
- toolsCount(a, t) {
|
|
|
+ toolsCount(a, t,jdIndex) {
|
|
|
let params = {
|
|
|
cid: this.id,
|
|
|
- chid: this.courseType,
|
|
|
+ chid: jdIndex,
|
|
|
uid: this.userid,
|
|
|
tid: t,
|
|
|
count: a,
|
|
@@ -5410,11 +5516,11 @@ export default {
|
|
|
console.error(err);
|
|
|
});
|
|
|
},
|
|
|
- updateCount(c, t) {
|
|
|
+ updateCount(c, t,jdIndex) {
|
|
|
c++;
|
|
|
let params = {
|
|
|
cid: this.id,
|
|
|
- chid: this.courseType,
|
|
|
+ chid: jdIndex,
|
|
|
uid: this.userid,
|
|
|
tid: t,
|
|
|
count: c,
|
|
@@ -7639,7 +7745,8 @@ export default {
|
|
|
.easy_comment div:hover {
|
|
|
border: 1px solid #f7ba2a;
|
|
|
color: #c69217;
|
|
|
-}.xuan_right_box {
|
|
|
+}
|
|
|
+.xuan_right_box {
|
|
|
padding: 10px;
|
|
|
background: rgb(247, 247, 247);
|
|
|
margin: 10px 12px;
|
|
@@ -7651,7 +7758,7 @@ export default {
|
|
|
align-items: center;
|
|
|
}
|
|
|
|
|
|
-.tool_right_box+.tool_right_box {
|
|
|
+.tool_right_box + .tool_right_box {
|
|
|
margin-top: 10px;
|
|
|
}
|
|
|
|
|
@@ -7676,7 +7783,7 @@ export default {
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
.newDialogCss {
|
|
|
- position: absolute;
|
|
|
+ position: fixed;
|
|
|
right: 7%;
|
|
|
top: 19%;
|
|
|
width: 340px;
|
|
@@ -7707,7 +7814,7 @@ export default {
|
|
|
}
|
|
|
.pzBox {
|
|
|
height: 650px;
|
|
|
- background: #e4e4e4;
|
|
|
+ background: #ededed;
|
|
|
border-radius: 0 0 15px 15px;
|
|
|
}
|
|
|
.pzList {
|
|
@@ -7758,7 +7865,7 @@ export default {
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
.addDialogCss {
|
|
|
- position: absolute;
|
|
|
+ position: fixed;
|
|
|
right: 37%;
|
|
|
top: 30%;
|
|
|
width: 600px;
|
|
@@ -7779,7 +7886,7 @@ export default {
|
|
|
}
|
|
|
.addPzBox {
|
|
|
height: 450px;
|
|
|
- background: #e5e3e3;
|
|
|
+ background: #ededed;
|
|
|
}
|
|
|
.pzConText {
|
|
|
width: 95%;
|
|
@@ -7799,7 +7906,7 @@ export default {
|
|
|
margin: 15px auto 0;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
-.pzConText:focus-visible{
|
|
|
- border:none !important;
|
|
|
+.pzConText:focus-visible {
|
|
|
+ border: none !important;
|
|
|
}
|
|
|
</style>
|