diff --git a/src/mock/index.js b/src/mock/index.js index 4c2dbda..f048589 100644 --- a/src/mock/index.js +++ b/src/mock/index.js @@ -245,194 +245,225 @@ Mock.mock( data: { "name": "@ctitle", "id|+1": 11, + // "questionList": [ + // { + // "examQuestionId|+1": 0, + // "questionId|+1": 1, + // "questionTitle": "@cname", + // "questionType|1-4": 1, + // "score|1-2": 1, + // "partScore|0.5-1": 0.5, + // "answerOptions": "A,B,C,D", + // "correctAnswer|1": ["A", "B", "C", "D"], + // "subQuestions": [ + // { + // "questionType": 2, + // "score": 1, + // "partScore": 0, + // "selectNum": 4, + // "answerOptions": "A,B,C,D", + // "correctAnswer|1": ["A", "B", "C", "D"], + // "screenshot": "./1.html", + // "knowledge": "数与式#有理数#正数和负数,数与式#有理数#有理数" + // }, + // { + // "questionType": 2, + // "score": 1, + // "partScore": 0, + // "selectNum": 4, + // "answerOptions": "A,B,C,D", + // "correctAnswer|1": ["A", "B", "C", "D"], + // "screenshot": "./1.html", + // "knowledge": "数与式#有理数#正数和负数" + // }, + // { + // "questionType": 2, + // "score": 1, + // "partScore": 0, + // "selectNum": 4, + // "answerOptions": "A,B,C,D", + // "correctAnswer|1": ["A", "B", "C", "D"], + // "screenshot": "./1.html", + // }, + // { + // "questionType": 2, + // "score": 1, + // "partScore": 0, + // "selectNum": 4, + // "answerOptions": "A,B,C,D", + // "correctAnswer|1": ["A", "B", "C", "D"], + // "screenshot": "./1.html", + // }, + // { + // "questionType": 2, + // "score": 1, + // "partScore": 0, + // "selectNum": 4, + // "answerOptions": "A,B,C,D", + // "correctAnswer|1": ["A", "B", "C", "D"], + // "screenshot": "./1.html", + // }, + // { + // "questionType": 3, + // "score": 1, + // "partScore": 0, + // "selectNum": 4, + // "answerOptions": "A,B,C,D", + // "correctAnswer|1": ["A", "B", "C", "D"], + // "screenshot": "./1.html", + // }, + // ] + // }, + // { + // "examQuestionId|+1": 0, + // "questionId|+1": 1, + // "questionTitle": "@cname", + // "questionType|1-4": 1, + // "score|1-2": 1, + // "partScore|0.5-1": 0.5, + // "answerOptions": "A,B,C,D", + // "correctAnswer|1": ["A", "B", "C", "D"], + // "subQuestions": [ + // { + // "questionType": 2, + // "score": 1, + // "partScore": 0, + // "selectNum": 4, + // "answerOptions": "A,B,C,D", + // "correctAnswer|1": ["A", "B", "C", "D"], + // "screenshot": "./1.html", + // }, + // { + // "questionType": 2, + // "score": 1, + // "partScore": 0, + // "selectNum": 4, + // "answerOptions": "A,B,C,D", + // "correctAnswer|1": ["A", "B", "C", "D"], + // "screenshot": "./1.html", + // }, + // { + // "questionType": 2, + // "score": 1, + // "partScore": 0, + // "selectNum": 4, + // "answerOptions": "A,B,C,D", + // "correctAnswer|1": ["A", "B", "C", "D"], + // "screenshot": "./1.html", + // }, + // { + // "questionType": 2, + // "score": 1, + // "partScore": 0, + // "selectNum": 4, + // "answerOptions": "A,B,C,D", + // "correctAnswer|1": ["A", "B", "C", "D"], + // "screenshot": "./1.html", + // }, + // { + // "questionType": 2, + // "score": 1, + // "partScore": 0, + // "selectNum": 4, + // "answerOptions": "A,B,C,D", + // "correctAnswer|1": ["A", "B", "C", "D"], + // "screenshot": "./1.html", + // }, + // { + // "questionType": 3, + // "score": 1, + // "partScore": 0, + // "selectNum": 4, + // "answerOptions": "A,B,C,D", + // "correctAnswer|1": ["A", "B", "C", "D"], + // "screenshot": "./1.html", + // }, + // { + // "questionType": 2, + // "score": 1, + // "partScore": 0, + // "selectNum": 4, + // "answerOptions": "A,B,C,D", + // "correctAnswer|1": ["A", "B", "C", "D"], + // "screenshot": "./1.html", + // }, + // { + // "questionType": 2, + // "score": 1, + // "partScore": 0, + // "selectNum": 4, + // "answerOptions": "A,B,C,D", + // "correctAnswer|1": ["A", "B", "C", "D"], + // "screenshot": "./1.html", + // }, + // { + // "questionType": 2, + // "score": 1, + // "partScore": 0, + // "selectNum": 4, + // "answerOptions": "A,B,C,D", + // "correctAnswer|1": ["A", "B", "C", "D"], + // "screenshot": "./1.html", + // }, + // { + // "questionType": 2, + // "score": 1, + // "partScore": 0, + // "selectNum": 4, + // "answerOptions": "A,B,C,D", + // "correctAnswer|1": ["A", "B", "C", "D"], + // "screenshot": "./1.html", + // }, + // { + // "questionType": 2, + // "score": 1, + // "partScore": 0, + // "selectNum": 4, + // "answerOptions": "A,B,C,D", + // "correctAnswer|1": ["A", "B", "C", "D"], + // "screenshot": "./1.html", + // }, + // { + // "questionType": 2, + // "score": 1, + // "partScore": 0, + // "selectNum": 4, + // "answerOptions": "A,B,C,D", + // "correctAnswer|1": ["A", "B", "C", "D"], + // "screenshot": "./1.html", + // } + // ] + // }, + // ], "questionList": [ { - "examQuestionId|+1": 0, - "questionId|+1": 1, - "questionTitle": "@cname", - "questionType|1-4": 1, - "score|1-2": 1, - "partScore|0.5-1": 0.5, + "questionType": 2, + "score": 1, + "partScore": 0, + "selectNum": 4, "answerOptions": "A,B,C,D", "correctAnswer|1": ["A", "B", "C", "D"], - "subQuestions": [ - { - "questionType": 2, - "score": 1, - "partScore": 0, - "selectNum": 4, - "answerOptions": "A,B,C,D", - "correctAnswer|1": ["A", "B", "C", "D"], - "screenshot": "./1.html", - "knowledge": "数与式#有理数#正数和负数,数与式#有理数#有理数" - }, - { - "questionType": 2, - "score": 1, - "partScore": 0, - "selectNum": 4, - "answerOptions": "A,B,C,D", - "correctAnswer|1": ["A", "B", "C", "D"], - "screenshot": "./1.html", - "knowledge": "数与式#有理数#正数和负数" - }, - { - "questionType": 2, - "score": 1, - "partScore": 0, - "selectNum": 4, - "answerOptions": "A,B,C,D", - "correctAnswer|1": ["A", "B", "C", "D"], - "screenshot": "./1.html", - }, - { - "questionType": 2, - "score": 1, - "partScore": 0, - "selectNum": 4, - "answerOptions": "A,B,C,D", - "correctAnswer|1": ["A", "B", "C", "D"], - "screenshot": "./1.html", - }, - { - "questionType": 2, - "score": 1, - "partScore": 0, - "selectNum": 4, - "answerOptions": "A,B,C,D", - "correctAnswer|1": ["A", "B", "C", "D"], - "screenshot": "./1.html", - }, - { - "questionType": 3, - "score": 1, - "partScore": 0, - "selectNum": 4, - "answerOptions": "A,B,C,D", - "correctAnswer|1": ["A", "B", "C", "D"], - "screenshot": "./1.html", - }, - ] + "screenshot": "./1.html", + "knowledge": "数与式#有理数#正数和负数,数与式#有理数#有理数" }, { - "examQuestionId|+1": 0, - "questionId|+1": 1, - "questionTitle": "@cname", - "questionType|1-4": 1, - "score|1-2": 1, - "partScore|0.5-1": 0.5, + "questionType": 2, + "score": 1, + "partScore": 0, + "selectNum": 4, "answerOptions": "A,B,C,D", "correctAnswer|1": ["A", "B", "C", "D"], - "subQuestions": [ - { - "questionType": 2, - "score": 1, - "partScore": 0, - "selectNum": 4, - "answerOptions": "A,B,C,D", - "correctAnswer|1": ["A", "B", "C", "D"], - "screenshot": "./1.html", - }, - { - "questionType": 2, - "score": 1, - "partScore": 0, - "selectNum": 4, - "answerOptions": "A,B,C,D", - "correctAnswer|1": ["A", "B", "C", "D"], - "screenshot": "./1.html", - }, - { - "questionType": 2, - "score": 1, - "partScore": 0, - "selectNum": 4, - "answerOptions": "A,B,C,D", - "correctAnswer|1": ["A", "B", "C", "D"], - "screenshot": "./1.html", - }, - { - "questionType": 2, - "score": 1, - "partScore": 0, - "selectNum": 4, - "answerOptions": "A,B,C,D", - "correctAnswer|1": ["A", "B", "C", "D"], - "screenshot": "./1.html", - }, - { - "questionType": 2, - "score": 1, - "partScore": 0, - "selectNum": 4, - "answerOptions": "A,B,C,D", - "correctAnswer|1": ["A", "B", "C", "D"], - "screenshot": "./1.html", - }, - { - "questionType": 3, - "score": 1, - "partScore": 0, - "selectNum": 4, - "answerOptions": "A,B,C,D", - "correctAnswer|1": ["A", "B", "C", "D"], - "screenshot": "./1.html", - }, - { - "questionType": 2, - "score": 1, - "partScore": 0, - "selectNum": 4, - "answerOptions": "A,B,C,D", - "correctAnswer|1": ["A", "B", "C", "D"], - "screenshot": "./1.html", - }, - { - "questionType": 2, - "score": 1, - "partScore": 0, - "selectNum": 4, - "answerOptions": "A,B,C,D", - "correctAnswer|1": ["A", "B", "C", "D"], - "screenshot": "./1.html", - }, - { - "questionType": 2, - "score": 1, - "partScore": 0, - "selectNum": 4, - "answerOptions": "A,B,C,D", - "correctAnswer|1": ["A", "B", "C", "D"], - "screenshot": "./1.html", - }, - { - "questionType": 2, - "score": 1, - "partScore": 0, - "selectNum": 4, - "answerOptions": "A,B,C,D", - "correctAnswer|1": ["A", "B", "C", "D"], - "screenshot": "./1.html", - }, - { - "questionType": 2, - "score": 1, - "partScore": 0, - "selectNum": 4, - "answerOptions": "A,B,C,D", - "correctAnswer|1": ["A", "B", "C", "D"], - "screenshot": "./1.html", - }, - { - "questionType": 2, - "score": 1, - "partScore": 0, - "selectNum": 4, - "answerOptions": "A,B,C,D", - "correctAnswer|1": ["A", "B", "C", "D"], - "screenshot": "./1.html", - } - ] + "screenshot": "./1.html", + "knowledge": "数与式#有理数#正数和负数" + }, + { + "questionType": 2, + "score": 1, + "partScore": 0, + "selectNum": 4, + "answerOptions": "A,B,C,D", + "correctAnswer|1": ["A", "B", "C", "D"], + "screenshot": "./1.html", }, ] } diff --git a/src/views/examinationPaper/add.vue b/src/views/examinationPaper/add.vue index a0b1d4c..df66b55 100644 --- a/src/views/examinationPaper/add.vue +++ b/src/views/examinationPaper/add.vue @@ -15,7 +15,7 @@