1、教学楼添加批量删除功能;

2、教学楼导入代号从excel获取,不要自己生成
This commit is contained in:
2026-09-16 09:07:47 +08:00
parent d9b10a3f05
commit b30e39f91a
7 changed files with 336 additions and 35 deletions
+15 -1
View File
@@ -17,7 +17,7 @@ export function addBuild(data) {
}
/**
* 删除教学楼(后端仅提供单条删除,参数为 id
* 删除教学楼(参数为 id,已绑定教学场地时后端会拒绝
* POST /build/delete
*/
export function deleteBuild(id) {
@@ -28,6 +28,20 @@ export function deleteBuild(id) {
})
}
/**
* 批量删除教学楼
* POST /build/batchDelete
* 已绑定教学场地的教学楼会跳过不删,返回 { deleteCount, skipCount, skipList, message }
* @param ids 教学楼ID数组
*/
export function batchDeleteBuild(ids) {
return request({
url: '/build/batchDelete',
method: 'post',
data: ids
})
}
/**
* 更新教学楼
* POST /build/update