提交修改
This commit is contained in:
1 parent
ae8cddff00
commit
3468e1c88a
5 files changed
+120
-14
No files matched your search
@@ -113,10 +113,7 @@ export const getClassTeacherDormTree = (classId?: string | number): AxiosPromise
|
||||
* 获取班主任管理班级的房间床位详情(带学生信息)
|
||||
* @param buildingId 宿舍楼ID,为空则查询所有楼栋
|
||||
*/
|
||||
export const getClassTeacherBedDetails = (
|
||||
buildingId?: string | number,
|
||||
classId?: string | number
|
||||
): AxiosPromise<any[]> => {
|
||||
export const getClassTeacherBedDetails = (buildingId?: string | number, classId?: string | number): AxiosPromise<any[]> => {
|
||||
return request({
|
||||
url: '/dormBedStudent/dormBedStudent/getClassTeacherBedDetails',
|
||||
method: 'get',
|
||||
@@ -163,11 +160,14 @@ export const classTeacherStudentNoAllocation = (buildingId?: string | number, cl
|
||||
* 班主任选择性分配床位(弹窗模式)
|
||||
* @param allocationParams 分配参数 {bedIds: number[], studentIds: number[], allocationType: 'random' | 'studentNo'}
|
||||
*/
|
||||
export const classTeacherSelectiveAllocation = (allocationParams: {
|
||||
bedIds: Array<string | number>;
|
||||
studentIds: Array<string | number>;
|
||||
allocationType: 'random' | 'studentNo';
|
||||
}, classId?: string | number) => {
|
||||
export const classTeacherSelectiveAllocation = (
|
||||
allocationParams: {
|
||||
bedIds: Array<string | number>;
|
||||
studentIds: Array<string | number>;
|
||||
allocationType: 'random' | 'studentNo';
|
||||
},
|
||||
classId?: string | number
|
||||
) => {
|
||||
return request({
|
||||
url: '/dormBedStudent/dormBedStudent/classTeacherSelectiveAllocation',
|
||||
method: 'post',
|
||||
@@ -187,3 +187,17 @@ export const classTeacherRecallBeds = (buildingId?: string | number, classId?: s
|
||||
params: { buildingId, classId }
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 班主任收回选中床位
|
||||
* @param bedIds 床位ID数组
|
||||
* @param classId 班级ID,可为空
|
||||
*/
|
||||
export const classTeacherRecallSelectedBeds = (bedIds: number[], classId?: string | number) => {
|
||||
return request({
|
||||
url: '/dormBedStudent/dormBedStudent/classTeacherRecallSelectedBeds',
|
||||
method: 'post',
|
||||
data: bedIds,
|
||||
params: { classId }
|
||||
});
|
||||
};
|
||||
Reference in new issue
Block a user