wuzhen update

This commit is contained in:
wuzhen committed 2025-08-02 20:54:37 +08:00
commit 9ea52837de
34 files changed
+6949 -1393

No files matched your search

+16 -4
View File
@@ -8,7 +8,10 @@ export function listHallReservation(query: HallReservationQuery) {
return request<TableDataInfo<HallReservationVO>>({
url: '/hq/hallReservation/list',
method: 'get',
params: query
params: query,
headers: {
isEncrypt: 'true'
}
});
}
@@ -16,7 +19,10 @@ export function listHallReservation(query: HallReservationQuery) {
export function getHallReservation(id: string | number) {
return request<R<HallReservationVO>>({
url: '/hq/hallReservation/' + id,
method: 'get'
method: 'get',
headers: {
isEncrypt: 'true'
}
});
}
@@ -25,7 +31,10 @@ export function auditHallReservation(data: HallReservationAuditForm) {
return request<R<any>>({
url: '/hq/hallReservation/audit',
method: 'put',
data: data
data: data,
headers: {
isEncrypt: 'true'
}
});
}
@@ -34,6 +43,9 @@ export function checkTimeConflict(data: TimeCheckParams) {
return request<R<TimeCheckResult>>({
url: '/hq/hallReservation/checkTimeConflict',
method: 'post',
data: data
data: data,
headers: {
isEncrypt: 'true'
}
});
}
+20 -5
View File
@@ -12,7 +12,10 @@ export const listHallInfo = (query?: HallInfoQuery): AxiosPromise<HallInfoVO[]>
return request({
url: '/hq/hallInfo/list',
method: 'get',
params: query
params: query,
headers: {
isEncrypt: 'true'
}
});
};
@@ -23,7 +26,10 @@ export const listHallInfo = (query?: HallInfoQuery): AxiosPromise<HallInfoVO[]>
export const getHallInfo = (id: string | number): AxiosPromise<HallInfoVO> => {
return request({
url: '/hq/hallInfo/' + id,
method: 'get'
method: 'get',
headers: {
isEncrypt: 'true'
}
});
};
@@ -35,7 +41,10 @@ export const addHallInfo = (data: HallInfoForm) => {
return request({
url: '/hq/hallInfo',
method: 'post',
data: data
data: data,
headers: {
isEncrypt: 'true'
}
});
};
@@ -47,7 +56,10 @@ export const updateHallInfo = (data: HallInfoForm) => {
return request({
url: '/hq/hallInfo',
method: 'put',
data: data
data: data,
headers: {
isEncrypt: 'true'
}
});
};
@@ -58,6 +70,9 @@ export const updateHallInfo = (data: HallInfoForm) => {
export const delHallInfo = (id: string | number | Array<string | number>) => {
return request({
url: '/hq/hallInfo/' + id,
method: 'delete'
method: 'delete',
headers: {
isEncrypt: 'true'
}
});
};
+20 -5
View File
@@ -12,7 +12,10 @@ export const listHallReservation = (query?: HallReservationQuery): AxiosPromise<
return request({
url: '/hq/hallReservation/list',
method: 'get',
params: query
params: query,
headers: {
isEncrypt: 'true'
}
});
};
@@ -23,7 +26,10 @@ export const listHallReservation = (query?: HallReservationQuery): AxiosPromise<
export const getHallReservation = (id: string | number): AxiosPromise<HallReservationVO> => {
return request({
url: '/hq/hallReservation/' + id,
method: 'get'
method: 'get',
headers: {
isEncrypt: 'true'
}
});
};
@@ -35,7 +41,10 @@ export const addHallReservation = (data: HallReservationForm) => {
return request({
url: '/hq/hallReservation',
method: 'post',
data: data
data: data,
headers: {
isEncrypt: 'true'
}
});
};
@@ -47,7 +56,10 @@ export const updateHallReservation = (data: HallReservationForm) => {
return request({
url: '/hq/hallReservation',
method: 'put',
data: data
data: data,
headers: {
isEncrypt: 'true'
}
});
};
@@ -58,6 +70,9 @@ export const updateHallReservation = (data: HallReservationForm) => {
export const delHallReservation = (id: string | number | Array<string | number>) => {
return request({
url: '/hq/hallReservation/' + id,
method: 'delete'
method: 'delete',
headers: {
isEncrypt: 'true'
}
});
};
+5
View File
@@ -59,6 +59,11 @@ export interface SysRegionVO {
*/
deleted: number;
/**
* 子节点列表(用于树形结构)
*/
children?: SysRegionVO[];
}
export interface SysRegionForm extends BaseEntity {
+61
View File
@@ -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
};
+187
View File
@@ -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;
}