提交
This commit is contained in:
1 parent
5977a134ee
commit
4a6b28fe3e
16 files changed
+4970
-1310
No files matched your search
@@ -59,6 +59,11 @@ export interface SysRegionVO {
|
||||
*/
|
||||
deleted: number;
|
||||
|
||||
/**
|
||||
* 子节点列表(用于树形结构)
|
||||
*/
|
||||
children?: SysRegionVO[];
|
||||
|
||||
}
|
||||
|
||||
export interface SysRegionForm extends BaseEntity {
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import type { XgDeptTreeVO, R, TableDataInfo, XgStudentMsgAdvancedSearchQuery } from '@/api/xg/xsjcxx/stuRoster/types';
|
||||
|
||||
/**
|
||||
* 查询部门下拉树结构
|
||||
* @param deptId 部门ID
|
||||
*/
|
||||
export const XgDeptTreeSelect = (belongDeptId?: number): AxiosPromise<XgDeptTreeVO[]> => {
|
||||
return request({
|
||||
url: '/xgStudentManagerSource/studentManagerSource/currentUserAuthTree',
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
// 查询院系树结构
|
||||
export function deptTreeSelect(): AxiosPromise<R<any>> {
|
||||
return request({
|
||||
url: '/system/dept/treeselect',
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
// 查询学生花名册列表 - 使用高级搜索接口
|
||||
export function listStudentRoster(query?: XgStudentMsgAdvancedSearchQuery): AxiosPromise<R<TableDataInfo<any[]>>> {
|
||||
return request({
|
||||
url: '/studentMsg/studentMsg/advancedSearch',
|
||||
method: 'post',
|
||||
data: query
|
||||
});
|
||||
}
|
||||
|
||||
// 导出学生花名册
|
||||
export function exportStudentRoster(query?: any): AxiosPromise<any> {
|
||||
return request({
|
||||
url: '/studentMsg/studentMsg/export',
|
||||
method: 'get',
|
||||
params: query,
|
||||
responseType: 'blob'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取学生个人信息
|
||||
* @param userId 用户ID,可为空,为空时使用当前登录用户ID
|
||||
*/
|
||||
export function getStudentPersonalInfo(userId?: number): AxiosPromise<any> {
|
||||
return request({
|
||||
url: '/studentMsg/studentMsg/personalInfo',
|
||||
method: 'get',
|
||||
params: { userId }
|
||||
});
|
||||
}
|
||||
|
||||
export default {
|
||||
XgDeptTreeSelect,
|
||||
deptTreeSelect,
|
||||
listStudentRoster,
|
||||
exportStudentRoster,
|
||||
getStudentPersonalInfo
|
||||
};
|
||||
@@ -0,0 +1,187 @@
|
||||
// 部门树节点类型
|
||||
export interface XgDeptTreeVO {
|
||||
id: number;
|
||||
label: string;
|
||||
children?: XgDeptTreeVO[];
|
||||
disabled?: boolean;
|
||||
}
|
||||
|
||||
// 通用响应类型
|
||||
export interface R<T = any> {
|
||||
code: number;
|
||||
msg: string;
|
||||
data: T;
|
||||
}
|
||||
|
||||
// 分页数据信息
|
||||
export interface TableDataInfo<T = any> {
|
||||
total: number;
|
||||
rows: T;
|
||||
}
|
||||
|
||||
// 学生花名册查询参数
|
||||
export interface StudentRosterQuery {
|
||||
pageNum?: number;
|
||||
pageSize?: number;
|
||||
studentNo?: string;
|
||||
name?: string;
|
||||
phone?: string;
|
||||
studentStatus?: string;
|
||||
deptIds?: number[];
|
||||
}
|
||||
|
||||
// 学生花名册数据
|
||||
export interface StudentRosterVO {
|
||||
studentId: number;
|
||||
studentNo: string;
|
||||
studentName: string;
|
||||
nickName?: string;
|
||||
sex: string;
|
||||
age?: number;
|
||||
phonenumber: string;
|
||||
email?: string;
|
||||
idCard: string;
|
||||
deptId: number;
|
||||
deptName: string;
|
||||
majorId?: number;
|
||||
majorName?: string;
|
||||
classId?: number;
|
||||
className?: string;
|
||||
address?: string;
|
||||
studentStatus: string;
|
||||
createTime: string;
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
// 学生信息高级搜索查询参数
|
||||
export interface XgStudentMsgAdvancedSearchQuery {
|
||||
// 基础信息检索
|
||||
studentNo?: string;
|
||||
name?: string;
|
||||
idCard?: string;
|
||||
phone?: string;
|
||||
email?: string;
|
||||
gender?: string[];
|
||||
nationality?: string[];
|
||||
politicalStatus?: string[];
|
||||
birthDateStart?: string;
|
||||
birthDateEnd?: string;
|
||||
nameEnglish?: string;
|
||||
formerName?: string;
|
||||
nativePlace?: string[];
|
||||
hukouLocation?: string;
|
||||
homeAddress?: string;
|
||||
currentAddress?: string;
|
||||
qq?: string;
|
||||
wechat?: string;
|
||||
maritalStatus?: string[];
|
||||
religion?: string;
|
||||
householdRegisterType?: string[];
|
||||
educationLevel?: string[];
|
||||
|
||||
// 学籍信息检索
|
||||
studentStatus?: string[];
|
||||
enrollmentYearStart?: number;
|
||||
enrollmentYearEnd?: number;
|
||||
enrollmentDateStart?: string;
|
||||
enrollmentDateEnd?: string;
|
||||
admissionCategory?: string[];
|
||||
|
||||
// 学院专业班级检索
|
||||
collegeName?: string;
|
||||
majorName?: string;
|
||||
className?: string;
|
||||
grade?: string[];
|
||||
gradeMin?: string;
|
||||
gradeMax?: string;
|
||||
counselorName?: string;
|
||||
classTeacherName?: string;
|
||||
|
||||
// 家庭信息检索
|
||||
fatherName?: string;
|
||||
motherName?: string;
|
||||
guardianName?: string;
|
||||
familyIncomeMin?: number;
|
||||
familyIncomeMax?: number;
|
||||
perCapitaIncomeMin?: number;
|
||||
perCapitaIncomeMax?: number;
|
||||
familyEconomicStatus?: string[];
|
||||
familyMembersMin?: number;
|
||||
familyMembersMax?: number;
|
||||
|
||||
// 特殊身份检索
|
||||
isPoorStudent?: string[];
|
||||
isMinority?: string[];
|
||||
isDisabled?: string[];
|
||||
isOrphan?: string[];
|
||||
isLeftBehindChild?: string[];
|
||||
isSingleChild?: string[];
|
||||
isLowIncome?: string[];
|
||||
hasLoan?: string[];
|
||||
loanAmountMin?: number;
|
||||
loanAmountMax?: number;
|
||||
|
||||
// 身体状况检索
|
||||
heightMin?: number;
|
||||
heightMax?: number;
|
||||
weightMin?: number;
|
||||
weightMax?: number;
|
||||
bloodType?: string[];
|
||||
healthStatus?: string;
|
||||
disabilityType?: string[];
|
||||
disabilityLevel?: string;
|
||||
|
||||
// 住宿信息检索
|
||||
isBoarder?: string[];
|
||||
dormitoryBuilding?: string[];
|
||||
dormitoryRoom?: string;
|
||||
|
||||
// 家庭详细信息检索
|
||||
fatherPhone?: string;
|
||||
fatherWorkUnit?: string;
|
||||
motherPhone?: string;
|
||||
motherWorkUnit?: string;
|
||||
guardianPhone?: string;
|
||||
guardianRelation?: string;
|
||||
incomeSource?: string;
|
||||
emergencyContactName?: string;
|
||||
emergencyContactPhone?: string;
|
||||
emergencyContactRelation?: string;
|
||||
|
||||
// 扩展信息检索
|
||||
specialties?: string;
|
||||
awards?: string;
|
||||
violations?: string;
|
||||
socialActivities?: string;
|
||||
|
||||
// 健康详细信息检索
|
||||
specialCondition?: string;
|
||||
medicalHistory?: string;
|
||||
allergies?: string;
|
||||
|
||||
// 其他信息检索
|
||||
sourceRegion?: string[];
|
||||
graduateSchool?: string;
|
||||
trainingType?: string[];
|
||||
academicLevel?: string[];
|
||||
schoolSystemMin?: number;
|
||||
schoolSystemMax?: number;
|
||||
infoStatus?: string;
|
||||
dataSource?: string;
|
||||
isComplete?: number;
|
||||
completionRateMin?: number;
|
||||
completionRateMax?: number;
|
||||
|
||||
// 时间范围检索
|
||||
createTimeStart?: string;
|
||||
createTimeEnd?: string;
|
||||
updateTimeStart?: string;
|
||||
updateTimeEnd?: string;
|
||||
|
||||
// 部门树节点
|
||||
deptIds?: number[];
|
||||
|
||||
// 分页参数
|
||||
pageNum?: number;
|
||||
pageSize?: number;
|
||||
}
|
||||
Reference in new issue
Block a user