提交修改
This commit is contained in:
1 parent
df38590dbf
commit
b0375f801c
18 files changed
+3625
-285
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { DormBedStudentVO, DormBedStudentForm, DormBedStudentQuery } from '@/api/xg/xgss/dormBedStudent/dormBedStudent/types';
|
||||
import { DormBedStudentVO, DormBedStudentForm, DormBedStudentQuery, DormBuildingTreeVO } from '@/api/xg/xgss/dormBedStudent/dormBedStudent/types';
|
||||
|
||||
/**
|
||||
* 查询床位学生分配关系列表
|
||||
@@ -72,3 +72,14 @@ export const batchRecallDormBeds = (data: { bedIds: Array<string | number> }) =>
|
||||
data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取当前用户二级学院的宿舍楼树形结构
|
||||
* 校区-宿舍区-宿舍楼三级结构,校区和宿舍区不可选,只有宿舍楼可以选择
|
||||
*/
|
||||
export const getCurrentUserCollegeDormTree = (): AxiosPromise<DormBuildingTreeVO[]> => {
|
||||
return request({
|
||||
url: '/dormBedStudent/dormBedStudent/currentUserCollegeDormTree',
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
@@ -223,3 +223,43 @@ export interface DormBedStudentQuery extends PageQuery {
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* 宿舍楼树形结构VO
|
||||
*/
|
||||
export interface DormBuildingTreeVO {
|
||||
/**
|
||||
* 节点ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 节点名称
|
||||
*/
|
||||
label: string;
|
||||
|
||||
/**
|
||||
* 节点类型 (campus:校区, area:宿舍区, building:宿舍楼)
|
||||
*/
|
||||
type: string;
|
||||
|
||||
/**
|
||||
* 是否禁用节点(校区和宿舍区节点禁用点击)
|
||||
*/
|
||||
disabled?: boolean;
|
||||
|
||||
/**
|
||||
* 宿舍楼层数(仅宿舍楼节点有此字段)
|
||||
*/
|
||||
buildingFloors?: number;
|
||||
|
||||
/**
|
||||
* 宿舍楼类型(1男生楼 2女生楼 3混合楼)(仅宿舍楼节点有此字段)
|
||||
*/
|
||||
buildingType?: string;
|
||||
|
||||
/**
|
||||
* 子节点
|
||||
*/
|
||||
children?: DormBuildingTreeVO[];
|
||||
}
|
||||
@@ -207,6 +207,14 @@ export function getStudentTree(secondaryCollegeId: number = 101): AxiosPromise<R
|
||||
});
|
||||
}
|
||||
|
||||
// 获取当前用户所在学院的学生信息树
|
||||
export function getCurrentUserStudentTree(): AxiosPromise<R<XgStudentTreeVO[]>> {
|
||||
return request({
|
||||
url: '/studentMsg/studentMsg/getCurrentUserStudentTree',
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
// 学生状态修改
|
||||
export function changeStudentStatus(studentId: string | number, status: string): AxiosPromise<R<any>> {
|
||||
// 实际使用时连接后端接口
|
||||
|
||||
Reference in new issue
Block a user