import Mock from "mockjs"
Mock.mock(
"/api_html/teaching/paperList", {
info: "success",
status: 0,
data: {
myCount: 5,
gradeCount: 8,
archivedTotal: 6,
total: 30,
list: [
{
"sectionName": "小学",
"gradeName": "三年级",
"id": 107,
"tenantId": 9,
"regionId": 0,
"schoolId": 34,
"classId": 696,
"thirdId": "",
"section": 1,
"grade": 3,
"subjectName": "语文",
"title": "X102_语文_课时 4",
"startTime": "2023-04-18 17:43:50",
"endTime": "2023-04-18 17:47:06",
"calculateStatus": 1,
"duration": 196,
"status": 0,
"consumingDuration": 3140,
"classPersonNum": 11,
"answeredNum": 1,
"unansweredNum": 20,
"questionNum": 1,
"answerNum": 1,
"totalAnswersNum": 1,
"totalCorrectAnswersNum": 1,
"participationRate": 9.09,
"classCorrectRate": 9.09,
"answerCorrectRate": 100,
"levelConfig": "{\"failed\":0.6,\"pass\":0.8,\"good\":0.9}",
"passedNum": 1,
"passedRate": 9.09,
"excellenNum": 1,
"excellenRate": 9.09,
"goodNum": 0,
"goodRate": 0,
"passNum": 0,
"passRate": 0,
"failedNum": 0,
"failedRate": 0,
"latestCalculateTime": "2023-04-19 14:08:35",
"createdTime": "2023-04-19 14:08:35",
"modifiedTime": "2023-04-19 14:08:35",
"deleteFlag": 0
},
{
"sectionName": "小学",
"gradeName": "二年级",
"id": 106,
"tenantId": 9,
"regionId": 0,
"schoolId": 34,
"classId": 696,
"thirdId": "",
"section": 1,
"grade": 2,
"subjectName": "语文",
"title": "X102_语文_课时 2",
"startTime": "2023-04-18 15:58:27",
"endTime": "2023-04-18 16:01:28",
"calculateStatus": 1,
"duration": 182,
"status": 0,
"consumingDuration": 2640,
"classPersonNum": 11,
"answeredNum": 1,
"unansweredNum": 18,
"questionNum": 1,
"answerNum": 1,
"totalAnswersNum": 1,
"totalCorrectAnswersNum": 1,
"participationRate": 9.09,
"classCorrectRate": 9.09,
"answerCorrectRate": 100,
"levelConfig": "{\"failed\":0.6,\"pass\":0.8,\"good\":0.9}",
"passedNum": 1,
"passedRate": 9.09,
"excellenNum": 1,
"excellenRate": 9.09,
"goodNum": 0,
"goodRate": 0,
"passNum": 0,
"passRate": 0,
"failedNum": 0,
"failedRate": 0,
"latestCalculateTime": "2023-04-18 16:01:29",
"createdTime": "2023-04-18 16:01:28",
"modifiedTime": "2023-04-18 16:01:29",
"deleteFlag": 0
},
{
"sectionName": "小学",
"gradeName": "二年级",
"id": 105,
"tenantId": 9,
"regionId": 0,
"schoolId": 34,
"classId": 696,
"thirdId": "",
"section": 1,
"grade": 2,
"subjectName": "语文",
"title": "X102_语文_课时 1",
"startTime": "2023-04-18 15:16:11",
"endTime": "2023-04-18 15:21:37",
"calculateStatus": 1,
"duration": 326,
"status": 0,
"consumingDuration": 76880,
"classPersonNum": 11,
"answeredNum": 3,
"unansweredNum": 16,
"questionNum": 1,
"answerNum": 1,
"totalAnswersNum": 3,
"totalCorrectAnswersNum": 2,
"participationRate": 27.27,
"classCorrectRate": 18.18,
"answerCorrectRate": 66.67,
"levelConfig": "{\"failed\":0.6,\"pass\":0.8,\"good\":0.9}",
"passedNum": 2,
"passedRate": 18.18,
"excellenNum": 2,
"excellenRate": 18.18,
"goodNum": 0,
"goodRate": 0,
"passNum": 0,
"passRate": 0,
"failedNum": 1,
"failedRate": 9.09,
"latestCalculateTime": "2023-04-18 15:58:23",
"createdTime": "2023-04-18 15:58:23",
"modifiedTime": "2023-04-18 15:58:23",
"deleteFlag": 0
},
{
"sectionName": "小学",
"gradeName": "二年级",
"id": 103,
"tenantId": 9,
"regionId": 0,
"schoolId": 34,
"classId": 696,
"thirdId": "",
"section": 1,
"grade": 2,
"subjectName": "语文",
"title": "X102_语文_课时 1",
"startTime": "2023-04-18 14:20:16",
"endTime": "2023-04-18 14:57:09",
"calculateStatus": 1,
"duration": 2213,
"status": 0,
"consumingDuration": 229820,
"classPersonNum": 9,
"answeredNum": 1,
"unansweredNum": 16,
"questionNum": 4,
"answerNum": 4,
"totalAnswersNum": 4,
"totalCorrectAnswersNum": 4,
"participationRate": 11.11,
"classCorrectRate": 11.11,
"answerCorrectRate": 100,
"levelConfig": "{\"failed\":0.6,\"pass\":0.8,\"good\":0.9}",
"passedNum": 1,
"passedRate": 11.11,
"excellenNum": 1,
"excellenRate": 11.11,
"goodNum": 0,
"goodRate": 0,
"passNum": 0,
"passRate": 0,
"failedNum": 0,
"failedRate": 0,
"latestCalculateTime": "2023-04-18 15:02:33",
"createdTime": "2023-04-18 15:02:32",
"modifiedTime": "2023-04-18 15:02:33",
"deleteFlag": 0
},
{
"sectionName": "小学",
"gradeName": "一年级",
"id": 102,
"tenantId": 9,
"regionId": 0,
"schoolId": 34,
"classId": 696,
"thirdId": "",
"section": 1,
"grade": 1,
"subjectName": "语文",
"title": "X102_语文_课时 1",
"startTime": "2023-04-18 11:09:20",
"endTime": "2023-04-18 13:59:30",
"calculateStatus": 1,
"duration": 10210,
"status": 0,
"consumingDuration": 12380,
"classPersonNum": 9,
"answeredNum": 1,
"unansweredNum": 16,
"questionNum": 2,
"answerNum": 2,
"totalAnswersNum": 2,
"totalCorrectAnswersNum": 1,
"participationRate": 11.11,
"classCorrectRate": 5.56,
"answerCorrectRate": 50,
"levelConfig": "{\"failed\":0.6,\"pass\":0.8,\"good\":0.9}",
"passedNum": 0,
"passedRate": 0,
"excellenNum": 0,
"excellenRate": 0,
"goodNum": 0,
"goodRate": 0,
"passNum": 0,
"passRate": 0,
"failedNum": 1,
"failedRate": 11.11,
"latestCalculateTime": "2023-04-18 13:59:36",
"createdTime": "2023-04-18 13:59:35",
"modifiedTime": "2023-04-18 13:59:36",
"deleteFlag": 0
}
]
}
}
)
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',
},
]
}],
}
}
)