import Mock from "mockjs"
Mock.mock(
"/api_html/common/paper/paperShareCount", {
info: "success",
status: 0,
data: {
myCount: 24,
grade: 30
}
}
)
Mock.mock(
"/api_html/common/paper/upload", {
info: "success",
status: 0,
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",
}
]
},
]
}
}
)
Mock.mock(
"/api_html/teaching/examReportList", {
info: "success",
status: 0,
data: {
"list|2": [
{
"id": "@id",
subjectName: '语文',
className: '2班',
classId: "3215",
"title": "@cTitle",
"score|80-100": 85,
"answeredNum|45-50": 48,
classPersonNum: 50,
"examStartTime": '@date',
answerNum: 0,
recordStatus: 2,
classList: [{
classId: "@id",
className: "@cname",
}, {
classId: "@id",
className: "@cname",
}]
},
{
"id": "@id",
subjectName: '数学',
className: '2班',
classId: "3215",
"title": "@cTitle",
"score|80-100": 85,
"answeredNum|45-50": 48,
classPersonNum: 50,
"examStartTime": '@date',
answerNum: 0,
recordStatus: 2,
classList: [{
classId: "@id",
className: "@cname",
}, {
classId: "@id",
className: "@cname",
}]
},
{
"id": "@id",
subjectName: '英语',
className: '2班',
classId: "3215",
"title": "@cTitle",
"score|80-100": 85,
"answeredNum|45-50": 48,
classPersonNum: 50,
"examStartTime": '@date',
answerNum: 0,
recordStatus: 2,
classList: [{
classId: "@id",
className: "@cname",
}, {
classId: "@id",
className: "@cname",
}]
}
]
}
}
)
Mock.mock(
"/api_html/teaching/phaseExamReport", {
info: "success",
status: 0,
data: {
"list|5": [
{
"studentId": "@id",
"studentName": '@cname',
"studentCode": '@id',
"shortNumber": "@id",
"title": "@cTitle",
"examList": [
{
"title": "结石分气在织织",
"score": 80,
"classRank|+1": 1,
"participationRate|+1": 80,
"correctRate|+1": 82,
"answerCorrectRate|+1": 85,
},
{
"title": "第业适声",
"score": 81,
"classRank|+1": 1,
"participationRate|+1": 81,
"correctRate|+1": 88,
"answerCorrectRate|+1": 90,
},
{
"title": "把住六",
"score": 82,
"classRank|+1": 1,
"participationRate|+1": 82,
"correctRate|+1": 91,
"answerCorrectRate|+1": 95,
},
{
"title": "取严酸百列县",
"score": 83,
"classRank|+1": 1,
"participationRate|+1": 85,
"correctRate|+1": 90,
"answerCorrectRate|+1": 93,
},
{
"title": "三原上光",
"score": 84,
"classRank|+1": 1,
"participationRate|+1": 83,
"correctRate|+1": 93,
"answerCorrectRate|+1": 96,
}
]
}
]
}
}
)
Mock.mock(
"/api_html/teaching/examMultiClassReport", {
info: "success",
status: 0,
data: {
"classes": [],
"students": [],
}
}
)
Mock.mock(
"/api_html/teaching/listStudentsAndQuestions", {
info: "success",
status: 0,
data: {
"students": [{
"studentId": "@id",
"studentName": "@cname",
"questionList": [
{
"examQuestionId|+1": 0,
"questionId|+1": 1,
"questionTitle": "@cname",
"questionType|1-4": 1,
"score|1-2": 1,
"subQuestions": [
{
id: 1,
"questionType": 2,
"score": 1,
},
{
id: 2,
"questionType": 2,
"score": 2,
},
{
id: 3,
"questionType": 2,
"score": 1,
},
{
id: 4,
"questionType": 2,
"score": 1,
},
{
id: 5,
"questionType": 2,
"score": 1,
},
{
id: 6,
"questionType": 3,
"score": 1,
},
]
},
{
"examQuestionId|+1": 0,
"questionId|+1": 1,
"questionTitle": "@cname",
"questionType|1-4": 1,
"score|1-2": 1,
"subQuestions": [
{
id: 7,
"questionType": 2,
"score": 2,
},
{
id: 8,
"questionType": 2,
"score": 3,
},
{
id: 9,
"questionType": 2,
"score": 1,
},
{
id: 10,
"questionType": 2,
"score": 1,
},
{
id: 11,
"questionType": 2,
"score": 1,
},
{
id: 12,
"questionType": 3,
"score": 1,
},
{
id: 13,
"questionType": 2,
"score": 1,
},
{
id: 14,
"questionType": 2,
"score": 1,
},
{
id: 15,
"questionType": 2,
"score": 1,
},
{
id: 16,
"questionType": 2,
"score": 1,
}
]
},
]
}, {
"studentId": "@id",
"studentName": "@cname",
"questionList": [
{
"examQuestionId|+1": 0,
"questionId|+1": 1,
"questionTitle": "@cname",
"questionType|1-4": 1,
"score|1-2": 1,
"subQuestions": [
{
id: 1,
"questionType": 2,
"score": 1,
},
{
id: 2,
"questionType": 2,
"score": 2,
},
{
id: 3,
"questionType": 2,
"score": 1,
},
{
id: 4,
"questionType": 2,
"score": 1,
},
{
id: 5,
"questionType": 2,
"score": 1,
},
{
id: 6,
"questionType": 3,
"score": 1,
},
]
},
{
"examQuestionId|+1": 0,
"questionId|+1": 1,
"questionTitle": "@cname",
"questionType|1-4": 1,
"score|1-2": 1,
"subQuestions": [
{
id: 7,
"questionType": 2,
"score": 2,
},
{
id: 8,
"questionType": 2,
"score": 3,
},
{
id: 9,
"questionType": 2,
"score": 1,
},
{
id: 10,
"questionType": 2,
"score": 1,
},
{
id: 11,
"questionType": 2,
"score": 1,
},
{
id: 12,
"questionType": 3,
"score": 1,
},
{
id: 13,
"questionType": 2,
"score": 1,
},
{
id: 14,
"questionType": 2,
"score": 1,
},
{
id: 15,
"questionType": 2,
"score": 1,
},
{
id: 16,
"questionType": 2,
"score": 1,
}
]
},
]
}, {
"studentId": "@id",
"studentName": "@cname",
"questionList": [
{
"examQuestionId|+1": 0,
"questionId|+1": 1,
"questionTitle": "@cname",
"questionType|1-4": 1,
"score|1-2": 1,
"subQuestions": [
{
id: 1,
"questionType": 2,
"score": 1,
},
{
id: 2,
"questionType": 2,
"score": 2,
},
{
id: 3,
"questionType": 2,
"score": 1,
},
{
id: 4,
"questionType": 2,
"score": 1,
},
{
id: 5,
"questionType": 2,
"score": 1,
},
{
id: 6,
"questionType": 3,
"score": 1,
},
]
},
{
"examQuestionId|+1": 0,
"questionId|+1": 1,
"questionTitle": "@cname",
"questionType|1-4": 1,
"score|1-2": 1,
"subQuestions": [
{
id: 7,
"questionType": 2,
"score": 2,
},
{
id: 8,
"questionType": 2,
"score": 3,
},
{
id: 9,
"questionType": 2,
"score": 1,
},
{
id: 10,
"questionType": 2,
"score": 1,
},
{
id: 11,
"questionType": 2,
"score": 1,
},
{
id: 12,
"questionType": 3,
"score": 1,
},
{
id: 13,
"questionType": 2,
"score": 1,
},
{
id: 14,
"questionType": 2,
"score": 1,
},
{
id: 15,
"questionType": 2,
"score": 1,
},
{
id: 16,
"questionType": 2,
"score": 1,
}
]
},
]
}],
}
}
)
Mock.mock(
"/api_html/class/manager/phaseExamReport", {
info: "success",
status: 0,
data: {
"list": [{
"studentId": "@id",
"studentName": "@cname",
"dataList": [
{
"subjectName": "数学",
"examCount": '5',
"participationCount": '5',
"classRank": '1',
"score": '100',
"participationRate":'88',
"correctRate":'90',
},
{
"subjectName": "英语",
"examCount": '5',
"participationCount": '5',
"classRank": '2',
"score": '100',
"participationRate":'70',
"correctRate":'76',
},
{
"subjectName": "语文",
"examCount": '5',
"participationCount": '5',
"classRank": '2',
"score": '100',
"participationRate":'99',
"correctRate":'100',
},
]
}],
}
}
)