feat(class): 添加班级删除功能
- 在班级列表表格中新增“操作”列,添加删除按钮 - 实现删除班级的接口调用逻辑 - 删除成功后刷新班级列表 - 删除当前选中班级时清空选中状态 - 添加成功和失败的用户提示信息
This commit is contained in:
@@ -5,4 +5,17 @@ export function getClassList(page, size) {
|
||||
page: page,
|
||||
pageSize: size
|
||||
})
|
||||
}
|
||||
|
||||
export function addClass(name, gradeId) {
|
||||
return axios.post('/class/add', {
|
||||
title: name,
|
||||
gradeId: gradeId
|
||||
})
|
||||
}
|
||||
|
||||
export function deleteClass(id) {
|
||||
return axios.post('/class/delete', {
|
||||
id: id
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user