|
@@ -3379,9 +3379,6 @@ export default {
|
|
|
askCount: 1,
|
|
|
askTitle: "",
|
|
|
askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
|
|
|
- sentenceList: [
|
|
|
- { sentenceTitle: "", addSentence: [], rightAnswer: [] },
|
|
|
- ],
|
|
|
},
|
|
|
],
|
|
|
isShowTools: false,
|
|
@@ -4282,9 +4279,6 @@ export default {
|
|
|
askCount: 1,
|
|
|
askTitle: "",
|
|
|
askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
|
|
|
- sentenceList: [
|
|
|
- { sentenceTitle: "", addSentence: [], rightAnswer: [] },
|
|
|
- ],
|
|
|
},
|
|
|
],
|
|
|
isShowTools: false,
|
|
@@ -4321,7 +4315,6 @@ export default {
|
|
|
askCount: 1,
|
|
|
askTitle: "",
|
|
|
askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
|
|
|
- sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
|
|
|
});
|
|
|
},
|
|
|
addTaskBorder() {
|
|
@@ -4338,9 +4331,6 @@ export default {
|
|
|
askCount: 1,
|
|
|
askTitle: "",
|
|
|
askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
|
|
|
- sentenceList: [
|
|
|
- { sentenceTitle: "", addSentence: [], rightAnswer: [] },
|
|
|
- ],
|
|
|
},
|
|
|
],
|
|
|
isShowTools: false,
|
|
@@ -4887,13 +4877,6 @@ export default {
|
|
|
askJson: [
|
|
|
{ askstitle: "", askItem: 1, checkList: [] },
|
|
|
],
|
|
|
- sentenceList: [
|
|
|
- {
|
|
|
- sentenceTitle: "",
|
|
|
- addSentence: [],
|
|
|
- rightAnswer: [],
|
|
|
- },
|
|
|
- ],
|
|
|
},
|
|
|
],
|
|
|
isShowTools: false,
|
|
@@ -5062,6 +5045,23 @@ export default {
|
|
|
}
|
|
|
|
|
|
this.dialogVisibleChoice = true;
|
|
|
+ } else if (i == 47) {
|
|
|
+ if (
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
|
|
|
+ .toolChoose[toolIndex].sentenceList
|
|
|
+ ) {
|
|
|
+ this.sentenceList = JSON.parse(
|
|
|
+ JSON.stringify(
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
|
|
|
+ itemTaskIndex
|
|
|
+ ].toolChoose[toolIndex].sentenceList
|
|
|
+ )
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ var sentenceList = [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }]
|
|
|
+ this.sentenceList = sentenceList;
|
|
|
+ }
|
|
|
+ this.dialogVisibleSentence = true;
|
|
|
} else if (i == 15) {
|
|
|
this.answerQ = this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
|
|
|
itemTaskIndex
|
|
@@ -5116,18 +5116,6 @@ export default {
|
|
|
: { url: "", select: [], answer: [] };
|
|
|
this.selectSteps = 1;
|
|
|
this.dialogVisibleSelect = true;
|
|
|
- } else if (i == 47) {
|
|
|
- this.sentenceList = this.unitJson[this.unitIndex].chapterInfo[0]
|
|
|
- .taskJson[itemTaskIndex].toolChoose[toolIndex].sentenceList
|
|
|
- ? JSON.parse(
|
|
|
- JSON.stringify(
|
|
|
- this.unitJson[this.unitIndex].chapterInfo[0].taskJson[
|
|
|
- itemTaskIndex
|
|
|
- ].toolChoose[toolIndex].sentenceList
|
|
|
- )
|
|
|
- )
|
|
|
- : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
|
|
|
- this.dialogVisibleSentence = true;
|
|
|
}
|
|
|
},
|
|
|
chapAddTools(i) {
|
|
@@ -5232,6 +5220,17 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
+ if (i == 47) {
|
|
|
+ if (
|
|
|
+ !this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
|
|
|
+ .toolChoose[toolIndex].sentenceList ||
|
|
|
+ this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
|
|
|
+ .toolChoose[toolIndex].sentenceList[0].rightAnswer == 0
|
|
|
+ ) {
|
|
|
+ this.openTools(itemTaskIndex, 47, toolIndex);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
if (i == 15) {
|
|
|
if (
|
|
|
!this.unitJson[this.unitIndex].chapterInfo[0].taskJson[itemTaskIndex]
|
|
@@ -5284,15 +5283,7 @@ 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
|
|
@@ -6125,7 +6116,6 @@ export default {
|
|
|
rightAnswer: [],
|
|
|
});
|
|
|
},
|
|
|
- // sentenceList: [{ addSentence: [], rightAnswer: [] }],
|
|
|
addSen(i) {
|
|
|
this.sentenceList[i].addSentence.push(this.sentenceList[i].sentenceTitle);
|
|
|
// this.isPushTitleList.push(this.sentenceTitle);
|
|
@@ -6135,15 +6125,9 @@ export default {
|
|
|
if (this.sentenceList[i].rightAnswer.indexOf(s) == -1) {
|
|
|
this.sentenceList[i].rightAnswer.push(s);
|
|
|
}
|
|
|
- // this.sentenceList[0].addSentence.splice(i, 1);
|
|
|
},
|
|
|
returnCard(r, i, j) {
|
|
|
this.sentenceList[i].rightAnswer.splice(j, 1);
|
|
|
- // for (var j = 0; j < this.isPushTitleList.length; j++) {
|
|
|
- // if (this.isPushTitleList[j] == r) {
|
|
|
- // this.sentenceList[0].addSentence.splice(j, 0, r);
|
|
|
- // }
|
|
|
- // }
|
|
|
},
|
|
|
addSentenceTool() {
|
|
|
for (var i = 0; i < this.sentenceList.length; i++) {
|