feat(grade): 添加年级列表及分页功能
- 前端新增年级列表展示表格和分页组件,同时支持加载状态显示 - 新增 grade.js 接口调用,支持分页查询年级数据 - 后端新增 GradeController 提供分页查询接口 /grade/list - 实现 GradeService 新增分页查询和总数量统计方法 - 添加 GradeDOMapper 新增分页查询及计数 SQL 语句 - 定义请求与响应VO类用于年级分页查询接口数据传输 - 页面 onMounted 时同时请求班级列表和年级列表数据,提升数据展示完整性
This commit is contained in:
8
enlish-vue/src/api/grade.js
Normal file
8
enlish-vue/src/api/grade.js
Normal file
@@ -0,0 +1,8 @@
|
||||
import axios from "@/axios";
|
||||
|
||||
export function getGradeList(page, size) {
|
||||
return axios.post('/grade/list', {
|
||||
page: page,
|
||||
pageSize: size
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user