|
@@ -697,6 +697,7 @@
|
|
|
class="worksBTitle"
|
|
|
v-if="worksStudent[toolIndex].length > 0"
|
|
|
>
|
|
|
+ <div class="greenBox"></div>
|
|
|
作业提交情况
|
|
|
</div>
|
|
|
<div
|
|
@@ -754,6 +755,7 @@
|
|
|
class="worksBTitle"
|
|
|
v-if="worksStudent[toolIndex].length > 0"
|
|
|
>
|
|
|
+ <div class="greenBox"></div>
|
|
|
作业提交情况
|
|
|
</div>
|
|
|
<div
|
|
@@ -812,6 +814,7 @@
|
|
|
class="worksBTitle"
|
|
|
v-if="worksStudent[toolIndex].length > 0"
|
|
|
>
|
|
|
+ <div class="greenBox"></div>
|
|
|
作业提交情况
|
|
|
</div>
|
|
|
<div
|
|
@@ -864,6 +867,242 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div
|
|
|
+ v-if="tType && tType == 1 && tool.tool.indexOf(1) != -1"
|
|
|
+ class="worksBox"
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ class="worksBTitle"
|
|
|
+ v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ >
|
|
|
+ <div class="greenBox"></div>
|
|
|
+ 作业提交情况
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ style="padding-top: 15px; font-size: 18px"
|
|
|
+ v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ >
|
|
|
+ 作业预览
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ class="worksDetailBox"
|
|
|
+ v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ class="works"
|
|
|
+ v-for="(w, wIndex) in worksStudent[toolIndex]"
|
|
|
+ :key="wIndex"
|
|
|
+ >
|
|
|
+ <!-- @click="previewImg(w.works)" -->
|
|
|
+ <div class="workImg">
|
|
|
+ <img
|
|
|
+ :src="w.works"
|
|
|
+ @click="previewImg(w.works)"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <div class="worksName">
|
|
|
+ 姓名:<span>{{ w.sName }}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ padding-top: 15px;
|
|
|
+ padding-bottom: 15px;
|
|
|
+ border-bottom: 1px solid #eeeeee;
|
|
|
+ font-size: 18px;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ 未提交
|
|
|
+ </div>
|
|
|
+ <div class="noWorksS">
|
|
|
+ <div
|
|
|
+ v-for="(s, sIndex) in noWorksS[toolIndex]"
|
|
|
+ :key="sIndex"
|
|
|
+ class="noWorksName"
|
|
|
+ >
|
|
|
+ {{ s.student }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ v-if="tType && tType == 1 && tool.tool.indexOf(3) != -1"
|
|
|
+ class="worksBox"
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ class="worksBTitle"
|
|
|
+ v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ >
|
|
|
+ <div class="greenBox"></div>
|
|
|
+ 作业提交情况
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ style="padding-top: 15px; font-size: 18px"
|
|
|
+ v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ >
|
|
|
+ 作业预览
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ class="worksDetailBox"
|
|
|
+ v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ class="works"
|
|
|
+ v-for="(w, wIndex) in worksStudent[toolIndex]"
|
|
|
+ :key="wIndex"
|
|
|
+ >
|
|
|
+ <!-- @click="previewImg(w.works)" -->
|
|
|
+ <div class="workImg">
|
|
|
+ <img
|
|
|
+ :src="w.works"
|
|
|
+ @click="previewImg(w.works)"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <div class="worksName">
|
|
|
+ 姓名:<span>{{ w.sName }}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ padding-top: 15px;
|
|
|
+ padding-bottom: 15px;
|
|
|
+ border-bottom: 1px solid #eeeeee;
|
|
|
+ font-size: 18px;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ 未提交
|
|
|
+ </div>
|
|
|
+ <div class="noWorksS">
|
|
|
+ <div
|
|
|
+ v-for="(s, sIndex) in noWorksS[toolIndex]"
|
|
|
+ :key="sIndex"
|
|
|
+ class="noWorksName"
|
|
|
+ >
|
|
|
+ {{ s.student }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ v-if="tType && tType == 1 && tool.tool.indexOf(6) != -1"
|
|
|
+ class="worksBox"
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ class="worksBTitle"
|
|
|
+ v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ >
|
|
|
+ <div class="greenBox"></div>
|
|
|
+ 作业提交情况
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ style="padding-top: 15px; font-size: 18px"
|
|
|
+ v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ >
|
|
|
+ 作业预览
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ class="worksDetailBox"
|
|
|
+ v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ class="works"
|
|
|
+ v-for="(w, wIndex) in worksStudent[toolIndex]"
|
|
|
+ :key="wIndex"
|
|
|
+ >
|
|
|
+ <!-- @click="previewImg(w.works)" -->
|
|
|
+ <div class="workImg">
|
|
|
+ <img
|
|
|
+ :src="w.works"
|
|
|
+ @click="previewImg(w.works)"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <div class="worksName">
|
|
|
+ 姓名:<span>{{ w.sName }}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ padding-top: 15px;
|
|
|
+ padding-bottom: 15px;
|
|
|
+ border-bottom: 1px solid #eeeeee;
|
|
|
+ font-size: 18px;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ 未提交
|
|
|
+ </div>
|
|
|
+ <div class="noWorksS">
|
|
|
+ <div
|
|
|
+ v-for="(s, sIndex) in noWorksS[toolIndex]"
|
|
|
+ :key="sIndex"
|
|
|
+ class="noWorksName"
|
|
|
+ >
|
|
|
+ {{ s.student }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ v-if="tType && tType == 1 && tool.tool.indexOf(7) != -1"
|
|
|
+ class="worksBox"
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ class="worksBTitle"
|
|
|
+ v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ >
|
|
|
+ <div class="greenBox"></div>
|
|
|
+ 作业提交情况
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ style="padding-top: 15px; font-size: 18px"
|
|
|
+ v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ >
|
|
|
+ 作业预览
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ class="worksDetailBox"
|
|
|
+ v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ class="works"
|
|
|
+ v-for="(w, wIndex) in worksStudent[toolIndex]"
|
|
|
+ :key="wIndex"
|
|
|
+ >
|
|
|
+ <!-- @click="previewImg(w.works)" -->
|
|
|
+ <div class="workImg">
|
|
|
+ <img
|
|
|
+ :src="w.works"
|
|
|
+ @click="previewImg(w.works)"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <div class="worksName">
|
|
|
+ 姓名:<span>{{ w.sName }}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ padding-top: 15px;
|
|
|
+ padding-bottom: 15px;
|
|
|
+ border-bottom: 1px solid #eeeeee;
|
|
|
+ font-size: 18px;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ 未提交
|
|
|
+ </div>
|
|
|
+ <div class="noWorksS">
|
|
|
+ <div
|
|
|
+ v-for="(s, sIndex) in noWorksS[toolIndex]"
|
|
|
+ :key="sIndex"
|
|
|
+ class="noWorksName"
|
|
|
+ >
|
|
|
+ {{ s.student }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<!-- <div class="upload_toolBtn" @click="addImg($event)">
|
|
|
上传文件
|
|
@@ -2241,36 +2480,28 @@ export default {
|
|
|
"*"
|
|
|
);
|
|
|
} else if (t == 4) {
|
|
|
- if (this.tType == 2) {
|
|
|
- this.radio = [];
|
|
|
- this.isAnswer = false;
|
|
|
- if (this.askCount > 0) {
|
|
|
- this.updateCount(this.askCount, t);
|
|
|
- } else {
|
|
|
- this.askCount++;
|
|
|
- a = this.askCount;
|
|
|
- this.toolsCount(a, t);
|
|
|
- }
|
|
|
- if (!this.dialogVisible2) {
|
|
|
- this.askJson.askJson =
|
|
|
- this.chapInfo.chapterInfo[0].taskJson[index].toolChoose[
|
|
|
- i
|
|
|
- ].askJson;
|
|
|
- this.askJson.askTitle =
|
|
|
- this.chapInfo.chapterInfo[0].taskJson[index].toolChoose[
|
|
|
- i
|
|
|
- ].askTitle;
|
|
|
- this.askJson.askCount =
|
|
|
- this.chapInfo.chapterInfo[0].taskJson[index].toolChoose[
|
|
|
- i
|
|
|
- ].askCount;
|
|
|
- } else {
|
|
|
- this.askJson.askJson = this.chapTools.askJson.askJson;
|
|
|
- this.askJson.askTitle = this.chapTools.askJson.askTitle;
|
|
|
- this.askJson.askCount = this.chapTools.askJson.askCount;
|
|
|
- }
|
|
|
- this.dialogVisible5 = true;
|
|
|
+ this.radio = [];
|
|
|
+ this.isAnswer = false;
|
|
|
+ if (this.askCount > 0) {
|
|
|
+ this.updateCount(this.askCount, t);
|
|
|
+ } else {
|
|
|
+ this.askCount++;
|
|
|
+ a = this.askCount;
|
|
|
+ this.toolsCount(a, t);
|
|
|
+ }
|
|
|
+ if (!this.dialogVisible2) {
|
|
|
+ this.askJson.askJson =
|
|
|
+ this.chapInfo.chapterInfo[0].taskJson[index].toolChoose[i].askJson;
|
|
|
+ this.askJson.askTitle =
|
|
|
+ this.chapInfo.chapterInfo[0].taskJson[index].toolChoose[i].askTitle;
|
|
|
+ this.askJson.askCount =
|
|
|
+ this.chapInfo.chapterInfo[0].taskJson[index].toolChoose[i].askCount;
|
|
|
+ } else {
|
|
|
+ this.askJson.askJson = this.chapTools.askJson.askJson;
|
|
|
+ this.askJson.askTitle = this.chapTools.askJson.askTitle;
|
|
|
+ this.askJson.askCount = this.chapTools.askJson.askCount;
|
|
|
}
|
|
|
+ this.dialogVisible5 = true;
|
|
|
|
|
|
// window.parent.postMessage({ tools: "4" }, "*");
|
|
|
} else if (t == 5) {
|
|
@@ -2320,16 +2551,14 @@ export default {
|
|
|
"*"
|
|
|
);
|
|
|
} else if (t == 16) {
|
|
|
- if (this.tType == 2) {
|
|
|
- if (this.workCount > 0) {
|
|
|
- this.updateCount(this.workCount, t);
|
|
|
- } else {
|
|
|
- this.workCount++;
|
|
|
- a = this.workCount;
|
|
|
- this.toolsCount(a, t);
|
|
|
- }
|
|
|
- this.dialogVisible = true;
|
|
|
+ if (this.workCount > 0) {
|
|
|
+ this.updateCount(this.workCount, t);
|
|
|
+ } else {
|
|
|
+ this.workCount++;
|
|
|
+ a = this.workCount;
|
|
|
+ this.toolsCount(a, t);
|
|
|
}
|
|
|
+ this.dialogVisible = true;
|
|
|
} else if (t == 8) {
|
|
|
if (this.libraryCount > 0) {
|
|
|
this.updateCount(this.libraryCount, t);
|
|
@@ -2367,22 +2596,21 @@ export default {
|
|
|
}
|
|
|
this.timeDialogVisible = true;
|
|
|
} else if (t == 15) {
|
|
|
- if (this.tType == 2) {
|
|
|
- this.answerQ = "";
|
|
|
- this.questionAnswer = "";
|
|
|
- if (this.answerCount > 0) {
|
|
|
- this.updateCount(this.answerCount, t);
|
|
|
- } else {
|
|
|
- this.answerCount++;
|
|
|
- a = this.answerCount;
|
|
|
- this.toolsCount(a, t);
|
|
|
- }
|
|
|
- this.answerQ = this.chapInfo.chapterInfo[0].taskJson[index]
|
|
|
- .toolChoose[i].answerQ
|
|
|
- ? this.chapInfo.chapterInfo[0].taskJson[index].toolChoose[i].answerQ
|
|
|
- : "";
|
|
|
- this.answerDialogVisible = true;
|
|
|
+ this.answerQ = "";
|
|
|
+ this.questionAnswer = "";
|
|
|
+ if (this.answerCount > 0) {
|
|
|
+ this.updateCount(this.answerCount, t);
|
|
|
+ } else {
|
|
|
+ this.answerCount++;
|
|
|
+ a = this.answerCount;
|
|
|
+ this.toolsCount(a, t);
|
|
|
}
|
|
|
+ this.answerQ = this.chapInfo.chapterInfo[0].taskJson[index].toolChoose[
|
|
|
+ i
|
|
|
+ ].answerQ
|
|
|
+ ? this.chapInfo.chapterInfo[0].taskJson[index].toolChoose[i].answerQ
|
|
|
+ : "";
|
|
|
+ this.answerDialogVisible = true;
|
|
|
}
|
|
|
},
|
|
|
toolsCount(a, t) {
|
|
@@ -3431,6 +3659,14 @@ export default {
|
|
|
font-size: 20px;
|
|
|
padding-bottom: 15px;
|
|
|
border-bottom: 1px solid #eeeeee;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+}
|
|
|
+.greenBox {
|
|
|
+ width: 5px;
|
|
|
+ height: 30px;
|
|
|
+ background: #41c4a4;
|
|
|
+ margin-right: 5px;
|
|
|
}
|
|
|
.worksDetailBox {
|
|
|
display: flex;
|