|
@@ -116,18 +116,6 @@ export default {
|
|
|
) {
|
|
|
initQuestion(question.questionUnitList[j]);
|
|
|
}
|
|
|
- // 对子题进行排序
|
|
|
- // if (question.questionUnitList && question.questionUnitList.length > 0) {
|
|
|
- // question.questionUnitList.sort(function(a, b) {
|
|
|
- // if (a.quesNumber > b.quesNumber) {
|
|
|
- // return 1;
|
|
|
- // } else if (a.quesNumber < b.quesNumber) {
|
|
|
- // return -1;
|
|
|
- // } else {
|
|
|
- // return 0;
|
|
|
- // }
|
|
|
- // });
|
|
|
- // }
|
|
|
this.parentQuestionBody = question.body;
|
|
|
} else {
|
|
|
this.parentQuestionBody = null;
|
|
@@ -140,15 +128,15 @@ export default {
|
|
|
question.questionUnitList[this.examQuestion.subNumber - 1];
|
|
|
},
|
|
|
async toggleSign() {
|
|
|
- await this.$http.post(
|
|
|
- "/api/ecs_oe_student/examQuestion/submitQuestionAnswer",
|
|
|
- [
|
|
|
- {
|
|
|
- order: this.examQuestion.order,
|
|
|
- isSign: !this.examQuestion.isSign
|
|
|
- }
|
|
|
- ]
|
|
|
- );
|
|
|
+ // await this.$http.post(
|
|
|
+ // "/api/ecs_oe_student/examQuestion/submitQuestionAnswer",
|
|
|
+ // [
|
|
|
+ // {
|
|
|
+ // order: this.examQuestion.order,
|
|
|
+ // isSign: !this.examQuestion.isSign
|
|
|
+ // }
|
|
|
+ // ]
|
|
|
+ // );
|
|
|
this.updateExamQuestion({
|
|
|
order: this.$route.params.order,
|
|
|
isSign: !this.examQuestion.isSign
|