|
@@ -116,8 +116,8 @@
|
|
|
<div
|
|
|
style="
|
|
|
padding: 20px;
|
|
|
- line-height: 35px;
|
|
|
- max-height: 80px;
|
|
|
+ line-height: 30px;
|
|
|
+ max-height: 105px;
|
|
|
overflow: auto;
|
|
|
"
|
|
|
v-if="
|
|
@@ -315,8 +315,8 @@
|
|
|
<div
|
|
|
style="
|
|
|
padding: 20px;
|
|
|
- line-height: 35px;
|
|
|
- max-height: 90px;
|
|
|
+ line-height: 30px;
|
|
|
+ max-height: 105px;
|
|
|
overflow: auto;
|
|
|
"
|
|
|
v-if="
|
|
@@ -693,11 +693,22 @@
|
|
|
v-if="tType && tType == 1 && tool.tool.indexOf(16) != -1"
|
|
|
class="worksBox"
|
|
|
>
|
|
|
- <div class="worksBTitle">作业提交情况</div>
|
|
|
- <div style="padding-top: 15px; font-size: 18px">
|
|
|
+ <div
|
|
|
+ class="worksBTitle"
|
|
|
+ v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ >
|
|
|
+ 作业提交情况
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ style="padding-top: 15px; font-size: 18px"
|
|
|
+ v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ >
|
|
|
作业预览
|
|
|
</div>
|
|
|
- <div class="worksDetailBox">
|
|
|
+ <div
|
|
|
+ class="worksDetailBox"
|
|
|
+ v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ >
|
|
|
<div
|
|
|
class="works"
|
|
|
v-for="(w, wIndex) in worksStudent[toolIndex]"
|
|
@@ -739,11 +750,22 @@
|
|
|
v-if="tType && tType == 1 && tool.tool.indexOf(4) != -1"
|
|
|
class="worksBox"
|
|
|
>
|
|
|
- <div class="worksBTitle">作业提交情况</div>
|
|
|
- <div style="padding-top: 15px; font-size: 18px">
|
|
|
+ <div
|
|
|
+ class="worksBTitle"
|
|
|
+ v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ >
|
|
|
+ 作业提交情况
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ style="padding-top: 15px; font-size: 18px"
|
|
|
+ v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ >
|
|
|
作业预览
|
|
|
</div>
|
|
|
- <div class="worksDetailBox">
|
|
|
+ <div
|
|
|
+ class="worksDetailBox"
|
|
|
+ v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ >
|
|
|
<div
|
|
|
class="works"
|
|
|
v-for="(w, wIndex) in worksStudent[toolIndex]"
|
|
@@ -786,11 +808,22 @@
|
|
|
v-if="tType && tType == 1 && tool.tool.indexOf(15) != -1"
|
|
|
class="worksBox"
|
|
|
>
|
|
|
- <div class="worksBTitle">作业提交情况</div>
|
|
|
- <div style="padding-top: 15px; font-size: 18px">
|
|
|
+ <div
|
|
|
+ class="worksBTitle"
|
|
|
+ v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ >
|
|
|
+ 作业提交情况
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ style="padding-top: 15px; font-size: 18px"
|
|
|
+ v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ >
|
|
|
作业预览
|
|
|
</div>
|
|
|
- <div class="worksDetailBox">
|
|
|
+ <div
|
|
|
+ class="worksDetailBox"
|
|
|
+ v-if="worksStudent[toolIndex].length > 0"
|
|
|
+ >
|
|
|
<div
|
|
|
class="works"
|
|
|
v-for="(w, wIndex) in worksStudent[toolIndex]"
|
|
@@ -1194,7 +1227,7 @@
|
|
|
position: relative;
|
|
|
"
|
|
|
>
|
|
|
- <div class="queTop">
|
|
|
+ <div class="queTop" style="padding: 20px 0 20px 0">
|
|
|
<div class="question">
|
|
|
<img src="../assets/icon/question.png" alt />
|
|
|
</div>
|
|
@@ -2208,28 +2241,37 @@ export default {
|
|
|
"*"
|
|
|
);
|
|
|
} else if (t == 4) {
|
|
|
- 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;
|
|
|
+ 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.dialogVisible5 = true;
|
|
|
+
|
|
|
// window.parent.postMessage({ tools: "4" }, "*");
|
|
|
} else if (t == 5) {
|
|
|
if (this.scoreCount > 0) {
|
|
@@ -2278,14 +2320,16 @@ export default {
|
|
|
"*"
|
|
|
);
|
|
|
} else if (t == 16) {
|
|
|
- if (this.workCount > 0) {
|
|
|
- this.updateCount(this.workCount, t);
|
|
|
- } else {
|
|
|
- this.workCount++;
|
|
|
- a = this.workCount;
|
|
|
- this.toolsCount(a, t);
|
|
|
+ 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;
|
|
|
}
|
|
|
- this.dialogVisible = true;
|
|
|
} else if (t == 8) {
|
|
|
if (this.libraryCount > 0) {
|
|
|
this.updateCount(this.libraryCount, t);
|
|
@@ -2323,21 +2367,22 @@ export default {
|
|
|
}
|
|
|
this.timeDialogVisible = true;
|
|
|
} else if (t == 15) {
|
|
|
- this.answerQ = "";
|
|
|
- this.questionAnswer = "";
|
|
|
- if (this.answerCount > 0) {
|
|
|
- this.updateCount(this.answerCount, t);
|
|
|
- } else {
|
|
|
- this.answerCount++;
|
|
|
- a = this.answerCount;
|
|
|
- this.toolsCount(a, t);
|
|
|
+ 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.chapInfo.chapterInfo[0].taskJson[index].toolChoose[
|
|
|
- i
|
|
|
- ].answerQ
|
|
|
- ? this.chapInfo.chapterInfo[0].taskJson[index].toolChoose[i].answerQ
|
|
|
- : "";
|
|
|
- this.answerDialogVisible = true;
|
|
|
}
|
|
|
},
|
|
|
toolsCount(a, t) {
|
|
@@ -2570,9 +2615,11 @@ export default {
|
|
|
width: 100%;
|
|
|
margin: 0px 12px;
|
|
|
background: rgb(247, 247, 247);
|
|
|
- padding: 15px 0px 0px 20px;
|
|
|
- height: 80px;
|
|
|
+ padding: 20px;
|
|
|
+ line-height: 30px;
|
|
|
+ max-height: 105px;
|
|
|
overflow: auto;
|
|
|
+ height: 70px;
|
|
|
}
|
|
|
|
|
|
.file {
|
|
@@ -3436,4 +3483,8 @@ export default {
|
|
|
padding: 5px;
|
|
|
text-overflow: ellipsis;
|
|
|
}
|
|
|
+
|
|
|
+.noWorksName:hover {
|
|
|
+ background: #e7e7e7 !important;
|
|
|
+}
|
|
|
</style>
|