feat(exam): 添加学生考试历史结果查看功能
- 新增接口获取指定学生的历史考试结果列表 - 数据库层新增根据学生ID查询历史考试记录的查询方法 - 服务层新增获取学生历史考试结果列表的实现 - 前端api新增调用学生考试历史接口的方法 - 学生详情页增加考试历史记录图表展示板块 - 新增考试历史折线图组件,展示正确词数和错误词数的时间变化 - 使用echarts实现折线图并支持点击显示详情 - 更新项目依赖,新增echarts库用于图表展示
This commit is contained in:
@@ -55,6 +55,12 @@ export function generateExamWords(data) {
|
||||
});
|
||||
}
|
||||
|
||||
export function getStudentExamHistory(studentId) {
|
||||
return axios.post('/exam/words/student/history', {
|
||||
studentId: studentId
|
||||
})
|
||||
}
|
||||
|
||||
const resolveBlob = (res, fileName) => {
|
||||
// 创建 Blob 对象,可以指定 type,也可以让浏览器自动推断
|
||||
const blob = new Blob([res], { type: 'application/octet-stream' });
|
||||
|
||||
Reference in New Issue
Block a user