|
@@ -3226,7 +3226,7 @@
|
|
|
:key="rIndex"
|
|
|
class="cardCss"
|
|
|
>
|
|
|
- <div class="isCard" @click="returnCard(r, stIndex, rIndex)">
|
|
|
+ <div class="isCard1" @click="returnCard(r, stIndex, rIndex)">
|
|
|
<el-tooltip
|
|
|
class="item"
|
|
|
effect="light"
|
|
@@ -5281,6 +5281,15 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
+ if (i == 47) {
|
|
|
+ if (
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
|
|
|
+ .toolChoose[toolIndex].sentenceList[0].rightAnswer.length == 0
|
|
|
+ ) {
|
|
|
+ this.openTools(itemTaskIndex, 47, toolIndex);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
if (
|
|
|
this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
|
|
|
.toolChoose[toolIndex].tool.length > 0
|
|
@@ -5315,16 +5324,6 @@ export default {
|
|
|
itemTaskIndex
|
|
|
].toolChoose[toolIndex].tool.push(i);
|
|
|
}
|
|
|
-
|
|
|
- if (i == 47) {
|
|
|
- this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
|
|
|
- itemTaskIndex
|
|
|
- ].toolChoose[toolIndex].tool = [];
|
|
|
- this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
|
|
|
- itemTaskIndex
|
|
|
- ].toolChoose[toolIndex].tool.push(i);
|
|
|
- }
|
|
|
-
|
|
|
this.$forceUpdate();
|
|
|
},
|
|
|
addAskList() {
|
|
@@ -6130,7 +6129,7 @@ export default {
|
|
|
this.sentenceList[i].sentenceTitle = "";
|
|
|
},
|
|
|
setRightAnswer(s, i, j) {
|
|
|
- if(this.sentenceList[i].rightAnswer.indexOf(s) == -1){
|
|
|
+ if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
|
|
|
this.sentenceList[i].rightAnswer.push(s);
|
|
|
}
|
|
|
// this.sentenceList[0].addSentence.splice(i, 1);
|
|
@@ -6144,6 +6143,19 @@ export default {
|
|
|
// }
|
|
|
},
|
|
|
addSentenceTool() {
|
|
|
+ for (var i = 0; i < this.sentenceList.length; i++) {
|
|
|
+ if (this.sentenceList[i].rightAnswer.length == 0) {
|
|
|
+ this.$message.error("请将信息填写完整!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ this.sentenceList[i].addSentence.length !=
|
|
|
+ this.sentenceList[i].rightAnswer.length
|
|
|
+ ) {
|
|
|
+ this.$message.error("请将信息填写完整!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
|
|
|
this.taskCount
|
|
|
].toolChoose[this.toolIndex].sentenceList = this.sentenceList;
|
|
@@ -6151,6 +6163,12 @@ export default {
|
|
|
{ sentenceTitle: "", addSentence: [], rightAnswer: [] },
|
|
|
];
|
|
|
this.dialogVisibleSentence = false;
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
|
|
|
+ itemTaskIndex
|
|
|
+ ].toolChoose[toolIndex].tool = [];
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
|
|
|
+ itemTaskIndex
|
|
|
+ ].toolChoose[toolIndex].tool.push(i);
|
|
|
},
|
|
|
},
|
|
|
beforeDestroy() {
|
|
@@ -8486,16 +8504,19 @@ ol {
|
|
|
align-items: center;
|
|
|
align-content: center;
|
|
|
}
|
|
|
-.isCard {
|
|
|
+.isCard,.isCard1 {
|
|
|
width: 130px;
|
|
|
height: 60px;
|
|
|
text-align: center;
|
|
|
line-height: 60px;
|
|
|
font-size: 20px;
|
|
|
cursor: pointer;
|
|
|
- background-image: url(/static/img/titleBorder.453cad3.png);
|
|
|
+ background-image: url("../../assets/icon/conSentences/titleBorder.png");
|
|
|
background-size: cover;
|
|
|
}
|
|
|
+.isCard1{
|
|
|
+ background-image: url("../../assets/icon/conSentences/answerBorder.png");
|
|
|
+}
|
|
|
.isCard > div {
|
|
|
white-space: nowrap;
|
|
|
overflow: hidden;
|