feat(plan): 添加学生学案历史查询及展示功能
- 新增FindStudentPlanHistoryReqVO和FindStudentPlanHistoryListRspVO数据对象 - 将LessonPlansDO及StudentLessonPlansDO中日期类型由Date改为LocalDateTime - LessonPlansServiceImpl中创建时间使用LocalDateTime.now() - StudentLessonPlansService及实现类添加按学生ID查询学案历史接口 - StudentLessonPlansDOMapper及XML添加按学生ID查询学案历史SQL映射 - StudentLessonPlansController新增/history接口返回学生学案历史列表 - 前端student.vue新增学案历史图表PlanHistoryChart组件展示学案历史数据 - 新增PlanHistoryChart.vue组件,实现基于echarts的学案历史折线图 - studentLessonPlans.js新增findStudentPlanHistory接口调用后端学案历史数据接口
This commit is contained in:
@@ -27,6 +27,10 @@
|
||||
<div class="text-md font-semibold mb-3">学生考试记录</div>
|
||||
<ExamHistoryChart :data="history" />
|
||||
</div>
|
||||
<div class="bg-white dark:bg-gray-800 rounded-lg shadow p-6">
|
||||
<div class="text-md font-semibold mb-3">学生学案记录</div>
|
||||
<PlanHistoryChart :student-id="route.params.id" />
|
||||
</div>
|
||||
</div>
|
||||
</el-main>
|
||||
|
||||
@@ -41,6 +45,7 @@ import { useRoute } from 'vue-router'
|
||||
import { getStudentDetail } from '@/api/student'
|
||||
import { getStudentExamHistory } from '@/api/exam'
|
||||
import ExamHistoryChart from '@/layouts/components/student/ExamHistoryChart.vue'
|
||||
import PlanHistoryChart from '@/layouts/components/student/PlanHistoryChart.vue'
|
||||
|
||||
const loading = ref(false)
|
||||
const detail = ref(null)
|
||||
|
||||
Reference in New Issue
Block a user