This commit is contained in:
guochunsi
2025-12-31 17:40:01 +08:00
parent 6d94e91b70
commit 74c06bb8a0
713 changed files with 115034 additions and 46 deletions

View File

@@ -0,0 +1,77 @@
/*
* Copyright (c) 2018-2025, cyweb All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the pig4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
*/
import request from '/@/utils/request';
/**
* 获取列表
* @param query
*/
export const fetchList = (query?: any) => {
return request({
url: '/basic/appbanner/page',
method: 'get',
params: query,
});
};
/**
* 新增
* @param obj
*/
export const addObj = (obj: any) => {
return request({
url: '/basic/appbanner',
method: 'post',
data: obj,
});
};
/**
* 获取详情
* @param id
*/
export const getObj = (id: string | number) => {
return request({
url: `/basic/appbanner/${id}`,
method: 'get',
});
};
/**
* 删除
* @param id
*/
export const delObj = (id: string | number) => {
return request({
url: `/basic/appbanner/${id}`,
method: 'delete',
});
};
/**
* 更新
* @param obj
*/
export const putObj = (obj: any) => {
return request({
url: '/basic/appbanner',
method: 'put',
data: obj,
});
};

236
src/api/basic/basicclass.ts Normal file
View File

@@ -0,0 +1,236 @@
/*
* Copyright (c) 2018-2025, cyweb All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the pig4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
*/
import request from '/@/utils/request';
/**
* 获取列表
* @param query
*/
export const fetchList = (query?: any) => {
return request({
url: '/basic/basicclass/page',
method: 'get',
params: query,
});
};
/**
* 新增
* @param obj
*/
export const addObj = (obj: any) => {
return request({
url: '/basic/basicclass',
method: 'post',
data: obj,
});
};
/**
* 获取详情
* @param id
*/
export const getObj = (id: string | number) => {
return request({
url: `/basic/basicclass/${id}`,
method: 'get',
});
};
/**
* 删除
* @param id
*/
export const delObj = (id: string | number) => {
return request({
url: `/basic/basicclass/${id}`,
method: 'delete',
});
};
/**
* 更新
* @param obj
*/
export const putObj = (obj: any) => {
return request({
url: '/basic/basicclass',
method: 'put',
data: obj,
});
};
/**
* 批量更新规则
* @param obj
*/
export const putObjs = (obj: any) => {
return request({
url: '/basic/basicclass/batchUpdataRuleById',
method: 'post',
data: obj,
});
};
/**
* 根据信息查询所有班级
* @param query
*/
export const queryAllClassByInfo = (query: string | number) => {
return request({
url: `/basic/basicclass/queryAllClassByInfo/${query}`,
method: 'get',
});
};
/**
* 根据专业查询班级年级
* @param query
*/
export const queryClassGradeByMajor = (query: string | number) => {
return request({
url: `/basic/basicclass/queryClassGradeByMajor/${query}`,
method: 'get',
});
};
/**
* 根据班级编号获取班级信息
* @param obj
*/
export const getClassByClassNo = (obj: string | number) => {
return request({
url: `/basic/basicclass/queryClassInfoByCode/${obj}`,
method: 'get',
});
};
/**
* 获取专业名称列表
*/
export const getMajorNameList = () => {
return request({
url: '/basic/major/getMajorNameList',
method: 'get',
});
};
/**
* 获取二级学院列表
*/
export const getDeptList = () => {
return request({
url: '/basic/basicdept/getDeptList?secondFlag=1',
method: 'get',
});
};
/**
* 获取二级部门列表
*/
export const getDeptListByLevel2 = () => {
return request({
url: '/basic/basicdept/getDeptList?deptLevel=2',
method: 'get',
});
};
/**
* 查询所有年级列表
*/
export const queryAllGradeList = () => {
return request({
url: '/basic/basicclass/queryAllGradeList',
method: 'get',
});
};
/**
* 获取年级列表
*/
export const getGradeList = () => {
return request({
url: '/basic/basicclass/getGradeList',
method: 'get',
});
};
/**
* 根据部门代码查询班级
* @param id
*/
export const queryClassByDeptCode = (id: string | number) => {
return request({
url: `/basic/basicclass/queryClassByDeptCode/${id}`,
method: 'get',
});
};
/**
* 根据查询条件查询班级名称和编号
* @param query
*/
export const queryClassNameAndNoByQuery = (query: string | number) => {
return request({
url: `/basic/basicclass/queryClassNameAndNoByQuery/${query}`,
method: 'get',
});
};
/**
* 获取列表
*/
export const list = () => {
return request({
url: '/basic/basicclass/list',
method: 'get',
});
};
/**
* 查班级列表 - 班主任角色查自己班级
*/
export const getClassListByRole = () => {
return request({
url: '/basic/basicclass/listByRole',
method: 'get',
});
};
/**
* 查询所有非离校班级
*/
export const queryNoLeavelClass = () => {
return request({
url: '/basic/basicclass/queryNoLeavelClass',
method: 'get',
});
};
/**
* 获取班级流失情况
* @param query
*/
export const getClassLose = (query?: any) => {
return request({
url: '/basic/basicclass/getClassLose',
method: 'get',
params: query,
});
};

212
src/api/basic/basicdept.ts Normal file
View File

@@ -0,0 +1,212 @@
/*
* Copyright (c) 2018-2025, cyweb All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the pig4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
*/
import request from '/@/utils/request';
/**
* 获取树形列表
* @param query
*/
export const fetchTree = (query?: any) => {
return request({
url: '/basic/basicdept/tree',
method: 'get',
params: query,
});
};
/**
* 获取二级树形列表
* @param query
*/
export const fetchSecondTree = (query?: any) => {
return request({
url: '/basic/basicdept/secondTree',
method: 'get',
params: query,
});
};
/**
* 获取开放部门树形列表
* @param query
*/
export const fetchOpenDeptTree = (query?: any) => {
return request({
url: '/basic/basicdept/openDeptTree',
method: 'get',
params: query,
});
};
/**
* 获取级联选择器树形列表
* @param query
*/
export const treeForCascader = (query?: any) => {
return request({
url: '/basic/basicdept/treeForCascader',
method: 'get',
params: query,
});
};
/**
* 获取培训树形列表
* @param query
*/
export const treeForTrain = (query?: any) => {
return request({
url: '/basic/basicdept/treeForTrain',
method: 'get',
params: query,
});
};
/**
* 获取列表
* @param query
*/
export const fetchList = (query?: any) => {
return request({
url: '/basic/basicdept/page',
method: 'get',
params: query,
});
};
/**
* 新增
* @param obj
*/
export const addObj = (obj: any) => {
return request({
url: '/basic/basicdept',
method: 'post',
data: obj,
});
};
/**
* 获取详情
* @param id
*/
export const getObj = (id: string | number) => {
return request({
url: `/basic/basicdept/${id}`,
method: 'get',
});
};
/**
* 根据部门代码获取部门信息
* @param code
*/
export const getDeptByCode = (code: string | number) => {
return request({
url: `/basic/basicdept/deptcode/${code}`,
method: 'get',
});
};
/**
* 删除
* @param id
*/
export const delObj = (id: string | number) => {
return request({
url: `/basic/basicdept/${id}`,
method: 'delete',
});
};
/**
* 更新
* @param obj
*/
export const putObj = (obj: any) => {
return request({
url: '/basic/basicdept',
method: 'put',
data: obj,
});
};
/**
* 根据部门代码获取培训部门
* @param obj
*/
export const getTrainDeptByDeptCode = (obj: string | number) => {
return request({
url: `/basic/basicdept/getTrainDeptByDeptCode/${obj}`,
method: 'get',
});
};
/**
* 获取教务开课部门
*/
export const getTeachDept = () => {
return request({
url: '/basic/basicdept/getDeptList?teachFlag=1',
method: 'get',
});
};
/**
* 获取培训部门
*/
export const getTrainDept = () => {
return request({
url: '/basic/basicdept/getDeptList?trainFlag=1',
method: 'get',
});
};
/**
* 获取合同起草部门 - 二级部门
*/
export const getDeptListByLevelTwo = () => {
return request({
url: '/basic/basicdept/getDeptListByLevelTwo',
method: 'get',
});
};
/**
* 人事人员调动 - 二级联动查询子级部门列表
* @param deptCode
*/
export const getDeptListByParent = (deptCode: string | number) => {
return request({
url: `/basic/basicdept/getDeptListByParent/${deptCode}`,
method: 'get',
});
};
/**
* 获取带教师的部门列表
* @param query
*/
export const getDeptWithTeacher = (query?: any) => {
return request({
url: '/basic/basicdept/getDeptWithTeacher',
method: 'get',
params: query,
});
};

View File

@@ -0,0 +1,112 @@
/*
* Copyright (c) 2018-2025, cyweb All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the pig4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
*/
import request from '/@/utils/request';
/**
* 获取列表
* @param query
*/
export const fetchList = (query?: any) => {
return request({
url: '/basic/basicholiday/page',
method: 'get',
params: query,
});
};
/**
* 新增
* @param obj
*/
export const addObj = (obj: any) => {
return request({
url: '/basic/basicholiday',
method: 'post',
data: obj,
});
};
/**
* 制作假期
* @param obj
*/
export const makeHoliday = (obj: any) => {
return request({
url: '/basic/basicholiday/makeHoliday',
method: 'post',
data: obj,
});
};
/**
* 获取详情
* @param id
*/
export const getObj = (id: string | number) => {
return request({
url: `/basic/basicholiday/${id}`,
method: 'get',
});
};
/**
* 删除
* @param id
*/
export const delObj = (id: string | number) => {
return request({
url: `/basic/basicholiday/${id}`,
method: 'delete',
});
};
/**
* 更新
* @param obj
*/
export const putObj = (obj: any) => {
return request({
url: '/basic/basicholiday',
method: 'put',
data: obj,
});
};
/**
* 获取工作日
* @param schoolYear
*/
export const getWorkDay = (schoolYear: string | number) => {
return request({
url: `/basic/basicholiday/getWorkDay/${schoolYear}`,
method: 'get',
});
};
/**
* 获取假期日期列表
* @param query
*/
export const getHolidayDayList = (query?: any) => {
return request({
url: '/basic/basicholiday/getHolidayDayList',
method: 'get',
params: query,
});
};

View File

@@ -0,0 +1,77 @@
/*
* Copyright (c) 2018-2025, cyweb All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the pig4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
*/
import request from '/@/utils/request';
/**
* 获取列表
* @param query
*/
export const fetchList = (query?: any) => {
return request({
url: '/basic/basicidcardposition/page',
method: 'get',
params: query,
});
};
/**
* 新增
* @param obj
*/
export const addObj = (obj: any) => {
return request({
url: '/basic/basicidcardposition',
method: 'post',
data: obj,
});
};
/**
* 获取详情
* @param id
*/
export const getObj = (id: string | number) => {
return request({
url: `/basic/basicidcardposition/${id}`,
method: 'get',
});
};
/**
* 删除
* @param id
*/
export const delObj = (id: string | number) => {
return request({
url: `/basic/basicidcardposition/${id}`,
method: 'delete',
});
};
/**
* 更新
* @param obj
*/
export const putObj = (obj: any) => {
return request({
url: '/basic/basicidcardposition',
method: 'put',
data: obj,
});
};

View File

@@ -0,0 +1,97 @@
/*
* Copyright (c) 2018-2025, cyweb All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the pig4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
*/
import request from '/@/utils/request';
/**
* 获取列表
* @param query
*/
export const fetchList = (query?: any) => {
return request({
url: '/basic/basicnation/page',
method: 'get',
params: query,
});
};
/**
* 新增
* @param obj
*/
export const addObj = (obj: any) => {
return request({
url: '/basic/basicnation',
method: 'post',
data: obj,
});
};
/**
* 获取详情
* @param id
*/
export const getObj = (id: string | number) => {
return request({
url: `/basic/basicnation/${id}`,
method: 'get',
});
};
/**
* 删除
* @param id
*/
export const delObj = (id: string | number) => {
return request({
url: `/basic/basicnation/${id}`,
method: 'delete',
});
};
/**
* 更新
* @param obj
*/
export const putObj = (obj: any) => {
return request({
url: '/basic/basicnation',
method: 'put',
data: obj,
});
};
/**
* 获取民族列表
*/
export const getNationalList = () => {
return request({
url: '/basic/basicnation/getNationalList',
method: 'get',
});
};
/**
* 获取民族字典
*/
export const getNationalDict = () => {
return request({
url: '/basic/basicnation/getNationalDict',
method: 'get',
});
};

View File

@@ -0,0 +1,97 @@
/*
* Copyright (c) 2018-2025, cyweb All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the pig4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
*/
import request from '/@/utils/request';
/**
* 获取列表
* @param query
*/
export const fetchList = (query?: any) => {
return request({
url: '/basic/basicpoliticsstatusbase/page',
method: 'get',
params: query,
});
};
/**
* 新增
* @param obj
*/
export const addObj = (obj: any) => {
return request({
url: '/basic/basicpoliticsstatusbase',
method: 'post',
data: obj,
});
};
/**
* 获取详情
* @param id
*/
export const getObj = (id: string | number) => {
return request({
url: `/basic/basicpoliticsstatusbase/${id}`,
method: 'get',
});
};
/**
* 删除
* @param id
*/
export const delObj = (id: string | number) => {
return request({
url: `/basic/basicpoliticsstatusbase/${id}`,
method: 'delete',
});
};
/**
* 更新
* @param obj
*/
export const putObj = (obj: any) => {
return request({
url: '/basic/basicpoliticsstatusbase',
method: 'put',
data: obj,
});
};
/**
* 获取政治面貌列表
*/
export const getPoliticsStatusList = () => {
return request({
url: '/basic/basicpoliticsstatusbase/getPoliticsStatusList',
method: 'get',
});
};
/**
* 获取政治面貌字典
*/
export const getPoliticsStatusDict = () => {
return request({
url: '/basic/basicpoliticsstatusbase/getPoliticsStatusDict',
method: 'get',
});
};

View File

@@ -0,0 +1,465 @@
/*
* Copyright (c) 2018-2025, cyweb All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the pig4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
*/
import request from '/@/utils/request';
/**
* 获取列表
* @param query
*/
export const fetchList = (query?: any) => {
return request({
url: '/basic/basicstudent/page',
method: 'get',
params: query,
});
};
/**
* 新增
* @param obj
*/
export const addObj = (obj: any) => {
return request({
url: '/basic/basicstudent',
method: 'post',
data: obj,
});
};
/**
* 获取详情
* @param id
*/
export const getObj = (id: string | number) => {
return request({
url: `/basic/basicstudent/${id}`,
method: 'get',
});
};
/**
* 根据学号获取信息
* @param stuNo
*/
export const getInfo = (stuNo: string | number) => {
return request({
url: `/basic/basicstudent/getInfoByStuNo/${stuNo}`,
method: 'get',
});
};
/**
* 获取学生信息
* @param query
*/
export const getStuInfo = (query: any) => {
return request({
url: '/basic/basicstudent/getStuInfo',
method: 'post',
data: query,
});
};
/**
* 获取学生医生日志
* @param query
*/
export const getStuDocterLog = (query?: any) => {
return request({
url: '/stuwork/stuvisitlog/getStuDocterLog',
method: 'get',
params: query,
});
};
/**
* 根据ID获取学生医生信息
* @param query
*/
export const getStuDocterById = (query?: any) => {
return request({
url: '/stuwork/stuvisitlog',
method: 'get',
params: query,
});
};
/**
* 添加学生医生信息
* @param obj
*/
export const addStuDocter = (obj: any) => {
return request({
url: '/stuwork/stuvisitlog',
method: 'post',
data: obj,
});
};
/**
* 删除学生医生信息
* @param query
*/
export const delStuDocter = (query: any) => {
return request({
url: '/stuwork/stuvisitlog/removeById',
method: 'post',
data: query,
});
};
/**
* 添加处理
* @param query
*/
export const addHand = (query: any) => {
return request({
url: '/stuwork/stuvisitlog/addHand',
method: 'post',
data: query,
});
};
/**
* 删除
* @param id
*/
export const delObj = (id: string | number) => {
return request({
url: `/basic/basicstudent/${id}`,
method: 'delete',
});
};
/**
* 更新
* @param obj
*/
export const putObj = (obj: any) => {
return request({
url: '/basic/basicstudent',
method: 'put',
data: obj,
});
};
/**
* 保存学生
* @param obj
*/
export const saveStu = (obj: any) => {
return request({
url: '/basic/basicstudent/saveStu',
method: 'post',
data: obj,
});
};
/**
* 编辑是否负责人
* @param obj
*/
export const editIsleader = (obj: any) => {
return request({
url: '/basic/basicstudent/editIsleader',
method: 'put',
data: obj,
});
};
/**
* 修改学生信息(idCard,bankCard,phone) - 免学费申请时
* @param obj
*/
export const updateStuInfo = (obj: any) => {
return request({
url: '/basic/basicstudent/updateStuInfo',
method: 'put',
data: obj,
});
};
/**
* 根据班级代码获取学生
* @param classCode
*/
export const getSttudentByClassCode = (classCode: string | number) => {
return request({
url: `/basic/basicstudent/initStuScoreData/${classCode}`,
method: 'get',
});
};
/**
* 根据班级查询学生列表
* @param query
*/
export const queryStudentListByClass = (query?: any) => {
return request({
url: '/basic/basicstudent/queryStudentListByClass',
method: 'get',
params: query,
});
};
/**
* 查询成绩列表
* @param query
*/
export const queryScoreList = (query?: any) => {
return request({
url: '/basic/basicstudent/queryScoreData',
method: 'post',
params: query,
});
};
/**
* 根据班级代码查询学生数量
* @param query
*/
export const queryStuNumByClassCode = (query?: any) => {
return request({
url: '/basic/basicstudent/queryStuNumByClassCode',
method: 'get',
params: query,
});
};
/**
* 打印前准备
* @param stuNo
*/
export const prePrint = (stuNo: string | number) => {
return request({
url: `/basic/basicstudent/prePrint/${stuNo}`,
method: 'get',
});
};
/**
* 更换随机二维码
* @param stuNo
* @param qrStr
*/
export const changeQrStr = (stuNo: string | number, qrStr: string) => {
return request({
url: `/basic/basicstudent/changeQrStr/${stuNo}/${qrStr}`,
method: 'get',
});
};
/**
* 获取学生状态
*/
export const getStuStatus = () => {
return request({
url: '/admin/dict/item/type/student_status',
method: 'get',
});
};
/**
* 重置密码
* @param data
*/
export const resetPassWord = (data: any) => {
return request({
url: '/basic/basicstudent/resetPassWord',
method: 'post',
data: data,
});
};
/**
* 根据学号查询在校学生
* @param data
*/
export const queryStudentByStuNo = (data?: any) => {
return request({
url: '/basic/basicstudent/queryStudentByStuNo',
method: 'get',
params: data,
});
};
/**
* 根据学号后6位查询在校学生
* @param data
*/
export const queryStudentByLastStuNo = (data?: any) => {
return request({
url: '/basic/basicstudent/queryStudentByLastStuNo',
method: 'get',
params: data,
});
};
/**
* 根据学号查询学生
* @param data
*/
export const queryAllStudentByStuNo = (data?: any) => {
return request({
url: '/basic/basicstudent/queryAllStudentByStuNo',
method: 'get',
params: data,
});
};
/**
* 根据班级代码查询所有学生
* @param classCode
*/
export const queryAllStudentByClassCode = (classCode: string | number) => {
return request({
url: `/basic/basicstudent/queryAllStudentByClassCode/${classCode}`,
method: 'get',
});
};
/**
* 导出头像
* @param data
*/
export const getDownPic = (data?: any) => {
return request({
url: '/basic/basicstudent/getDownPic',
method: 'get',
responseType: 'blob',
headers: { 'Content-Type': 'application/json; application/octet-stream' },
params: data,
});
};
/**
* 更新进出状态
* @param data
*/
export const updateInout = (data: any) => {
return request({
url: '/basic/basicstudent/updateInout',
method: 'post',
data: data,
});
};
/**
* 批量打印前准备
* @param data
*/
export const preBatchPrint = (data: any) => {
return request({
url: '/basic/basicstudent/preBatchPrint',
method: 'post',
data: data,
});
};
/**
* 查询学生信息(成绩答辩用)
* @param query
*/
export const queryStuInfoForScoreDefend = (query?: any) => {
return request({
url: '/basic/basicstudent/queryStuInfoForScoreDefend',
method: 'get',
params: query,
});
};
/**
* 更新学生简单信息
* @param data
*/
export const updateStuSimpleInfo = (data: any) => {
return request({
url: '/basic/basicstudent/updateStuSimpleInfo',
method: 'post',
data: data,
});
};
/**
* 查询专业学生信息
* @param data
*/
export const queryMajorStuInfo = (data: any) => {
return request({
url: '/basic/basicstudent/queryMajorStuInfo',
method: 'post',
data: data,
});
};
/**
* 导出学生信息卡
* @param data
*/
export const exportStuInfoCard = (data: any) => {
return request({
url: '/basic/file/exportStuInfoCard',
method: 'post',
data: data,
});
};
/**
* 搜索
* @param query
*/
export const search = (query: string | number) => {
return request({
url: `/basic/basicstudent/search/${query}`,
method: 'get',
});
};
/**
* 根据编号查询学生基础信息
* @param obj
*/
export const queryStuBaseByNo = (obj: string | number) => {
return request({
url: `/basic/basicstudent/queryStuBaseByNo/${obj}`,
method: 'get',
});
};
/**
* 获取头像列表
*/
export const avatarList = () => {
return request({
url: '/basic/basicstudent/avatar/list',
method: 'get',
});
};
/**
* 批量更新头像审核状态
* @param data
*/
export const batchUpdateAvatarAudit = (data: any) => {
return request({
url: '/basic/basicstudent/avatar/batchUpdate',
method: 'post',
data: data,
});
};

View File

@@ -0,0 +1,77 @@
/*
* Copyright (c) 2018-2025, cyweb All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the pig4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
*/
import request from '/@/utils/request';
/**
* 获取列表
* @param query
*/
export const fetchList = (query?: any) => {
return request({
url: '/basic/basicstudentadulteducation/page',
method: 'get',
params: query,
});
};
/**
* 新增
* @param obj
*/
export const addObj = (obj: any) => {
return request({
url: '/basic/basicstudentadulteducation',
method: 'post',
data: obj,
});
};
/**
* 获取详情
* @param id
*/
export const getObj = (id: string | number) => {
return request({
url: `/basic/basicstudentadulteducation/${id}`,
method: 'get',
});
};
/**
* 删除
* @param id
*/
export const delObj = (id: string | number) => {
return request({
url: `/basic/basicstudentadulteducation/${id}`,
method: 'delete',
});
};
/**
* 更新
* @param obj
*/
export const putObj = (obj: any) => {
return request({
url: '/basic/basicstudentadulteducation',
method: 'put',
data: obj,
});
};

View File

@@ -0,0 +1,77 @@
/*
* Copyright (c) 2018-2025, cyweb All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the pig4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
*/
import request from '/@/utils/request';
/**
* 获取列表
* @param query
*/
export const fetchList = (query?: any) => {
return request({
url: '/basic/basicstudenteducation/page',
method: 'get',
params: query,
});
};
/**
* 新增
* @param obj
*/
export const addObj = (obj: any) => {
return request({
url: '/basic/basicstudenteducation',
method: 'post',
data: obj,
});
};
/**
* 获取详情
* @param id
*/
export const getObj = (id: string | number) => {
return request({
url: `/basic/basicstudenteducation/${id}`,
method: 'get',
});
};
/**
* 删除
* @param id
*/
export const delObj = (id: string | number) => {
return request({
url: `/basic/basicstudenteducation/${id}`,
method: 'delete',
});
};
/**
* 更新
* @param obj
*/
export const putObj = (obj: any) => {
return request({
url: '/basic/basicstudenteducation',
method: 'put',
data: obj,
});
};

View File

@@ -0,0 +1,77 @@
/*
* Copyright (c) 2018-2025, cyweb All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the pig4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
*/
import request from '/@/utils/request';
/**
* 获取列表
* @param query
*/
export const fetchList = (query?: any) => {
return request({
url: '/basic/basicstudenteducationdetail/page',
method: 'get',
params: query,
});
};
/**
* 新增
* @param obj
*/
export const addObj = (obj: any) => {
return request({
url: '/basic/basicstudenteducationdetail',
method: 'post',
data: obj,
});
};
/**
* 获取详情
* @param id
*/
export const getObj = (id: string | number) => {
return request({
url: `/basic/basicstudenteducationdetail/${id}`,
method: 'get',
});
};
/**
* 删除
* @param id
*/
export const delObj = (id: string | number) => {
return request({
url: `/basic/basicstudenteducationdetail/${id}`,
method: 'delete',
});
};
/**
* 更新
* @param obj
*/
export const putObj = (obj: any) => {
return request({
url: '/basic/basicstudenteducationdetail',
method: 'put',
data: obj,
});
};

View File

@@ -0,0 +1,77 @@
/*
* Copyright (c) 2018-2025, cyweb All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the pig4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
*/
import request from '/@/utils/request';
/**
* 获取列表
* @param query
*/
export const fetchList = (query?: any) => {
return request({
url: '/basic/basicstudenthome/page',
method: 'get',
params: query,
});
};
/**
* 新增
* @param obj
*/
export const addObj = (obj: any) => {
return request({
url: '/basic/basicstudenthome',
method: 'post',
data: obj,
});
};
/**
* 获取详情
* @param id
*/
export const getObj = (id: string | number) => {
return request({
url: `/basic/basicstudenthome/${id}`,
method: 'get',
});
};
/**
* 删除
* @param id
*/
export const delObj = (id: string | number) => {
return request({
url: `/basic/basicstudenthome/${id}`,
method: 'delete',
});
};
/**
* 更新
* @param obj
*/
export const putObj = (obj: any) => {
return request({
url: '/basic/basicstudenthome',
method: 'put',
data: obj,
});
};

View File

@@ -0,0 +1,135 @@
/*
* Copyright (c) 2018-2025, cyweb All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the pig4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
*/
import request from '/@/utils/request';
/**
* 获取列表
* @param query
*/
export const fetchList = (query?: any) => {
return request({
url: '/basic/basicstudentinfo/queryDataByPage',
method: 'get',
params: query,
});
};
/**
* 查询学籍数据(分页)
* @param query
*/
export const queryXJDataByPage = (query?: any) => {
return request({
url: '/basic/basicstudentinfo/queryXJDataByPage',
method: 'get',
params: query,
});
};
/**
* 获取详情列表
* @param query
*/
export const getDetail = (query?: any) => {
return request({
url: '/basic/basicstudentinfo/page',
method: 'get',
params: query,
});
};
/**
* 获取家庭详情列表
* @param query
*/
export const getHomeDetailList = (query: string | number) => {
return request({
url: `/basic/studenthomedetail/getHomeDetailList/${query}`,
method: 'get',
});
};
/**
* 新增
* @param obj
*/
export const addObj = (obj: any) => {
return request({
url: '/basic/basicstudentinfo',
method: 'post',
data: obj,
});
};
/**
* 获取详情
* @param id
*/
export const getObj = (id: string | number) => {
return request({
url: `/basic/basicstudentinfo/${id}`,
method: 'get',
});
};
/**
* 删除
* @param id
*/
export const delObj = (id: string | number) => {
return request({
url: `/basic/basicstudentinfo/${id}`,
method: 'delete',
});
};
/**
* 更新
* @param obj
*/
export const putObj = (obj: any) => {
return request({
url: '/basic/basicstudentinfo',
method: 'put',
data: obj,
});
};
/**
* 编辑学生毕业登记
* @param obj
*/
export const editStuGraduation = (obj: any) => {
return request({
url: '/stuwork/stugraduationregistration',
method: 'post',
data: obj,
});
};
/**
* 根据学号获取学生毕业信息
* @param id
*/
export const getStuGraduationByStuNo = (id: string | number) => {
return request({
url: `/stuwork/stugraduationregistration/getStuGraduationByStuNo/${id}`,
method: 'get',
});
};

View File

@@ -0,0 +1,77 @@
/*
* Copyright (c) 2018-2025, cyweb All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the pig4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
*/
import request from '/@/utils/request';
/**
* 获取列表
* @param query
*/
export const fetchList = (query?: any) => {
return request({
url: '/basic/basicstudentmajorclass/page',
method: 'get',
params: query,
});
};
/**
* 新增
* @param obj
*/
export const addObj = (obj: any) => {
return request({
url: '/basic/basicstudentmajorclass',
method: 'post',
data: obj,
});
};
/**
* 获取详情
* @param id
*/
export const getObj = (id: string | number) => {
return request({
url: `/basic/basicstudentmajorclass/${id}`,
method: 'get',
});
};
/**
* 删除
* @param id
*/
export const delObj = (id: string | number) => {
return request({
url: `/basic/basicstudentmajorclass/${id}`,
method: 'delete',
});
};
/**
* 更新
* @param obj
*/
export const putObj = (obj: any) => {
return request({
url: '/basic/basicstudentmajorclass',
method: 'put',
data: obj,
});
};

View File

@@ -0,0 +1,77 @@
/*
* Copyright (c) 2018-2025, cyweb All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the pig4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
*/
import request from '/@/utils/request';
/**
* 获取列表
* @param query
*/
export const fetchList = (query?: any) => {
return request({
url: '/basic/basicstudentsocialdetail/page',
method: 'get',
params: query,
});
};
/**
* 新增
* @param obj
*/
export const addObj = (obj: any) => {
return request({
url: '/basic/basicstudentsocialdetail',
method: 'post',
data: obj,
});
};
/**
* 获取详情
* @param id
*/
export const getObj = (id: string | number) => {
return request({
url: `/basic/basicstudentsocialdetail/${id}`,
method: 'get',
});
};
/**
* 删除
* @param id
*/
export const delObj = (id: string | number) => {
return request({
url: `/basic/basicstudentsocialdetail/${id}`,
method: 'delete',
});
};
/**
* 更新
* @param obj
*/
export const putObj = (obj: any) => {
return request({
url: '/basic/basicstudentsocialdetail',
method: 'put',
data: obj,
});
};

139
src/api/basic/basicyear.ts Normal file
View File

@@ -0,0 +1,139 @@
/*
* Copyright (c) 2018-2025, cyweb All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the pig4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
*/
import request from '/@/utils/request';
/**
* 获取列表
* @param query
*/
export const fetchList = (query?: any) => {
return request({
url: '/basic/basicyear/page',
method: 'get',
params: query,
});
};
/**
* 新增
* @param obj
*/
export const addObj = (obj: any) => {
return request({
url: '/basic/basicyear',
method: 'post',
data: obj,
});
};
/**
* 获取详情
* @param id
*/
export const getObj = (id: string | number) => {
return request({
url: `/basic/basicyear/${id}`,
method: 'get',
});
};
/**
* 删除
* @param id
*/
export const delObj = (id: string | number) => {
return request({
url: `/basic/basicyear/${id}`,
method: 'delete',
});
};
/**
* 更新
* @param obj
*/
export const putObj = (obj: any) => {
return request({
url: '/basic/basicyear',
method: 'put',
data: obj,
});
};
/**
* 根据学年查询班级和课程
* @param obj
*/
export const queryClassAndCourseBySchoolYear = (obj: any) => {
return request({
url: '/basic/basicyear/queryClassAndCourseBySchoolYear',
method: 'post',
data: obj,
});
};
/**
* 查询所有学年
*/
export const queryAllSchoolYear = () => {
return request({
url: '/basic/basicyear/queryAllSchoolYear',
method: 'get',
});
};
/**
* 获取所有年份和学期
*/
export const getAllYearAndTerm = () => {
return request({
url: '/basic/basicholiday/getAllYearAndTerm',
method: 'get',
});
};
/**
* 获取当前学年
*/
export const getNowSchoolYear = () => {
return request({
url: '/basic/basicyear/getNowSchoolYear',
method: 'get',
});
};
/**
* 获取教学学年
*/
export const getTeachSchoolYear = () => {
return request({
url: '/basic/basicyear/getTeachSchoolYear',
method: 'get',
});
};
/**
* 获取当前学年日期
*/
export const getNowYearDate = () => {
return request({
url: '/basic/basicyear/getNowYearDate',
method: 'get',
});
};

View File

@@ -0,0 +1,77 @@
/*
* Copyright (c) 2018-2025, cyweb All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the pig4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
*/
import request from '/@/utils/request';
/**
* 获取列表
* @param query
*/
export const fetchList = (query?: any) => {
return request({
url: '/basic/classinfo/page',
method: 'get',
params: query,
});
};
/**
* 新增
* @param obj
*/
export const addObj = (obj: any) => {
return request({
url: '/basic/classinfo',
method: 'post',
data: obj,
});
};
/**
* 获取详情
* @param id
*/
export const getObj = (id: string | number) => {
return request({
url: `/basic/classinfo/${id}`,
method: 'get',
});
};
/**
* 删除
* @param id
*/
export const delObj = (id: string | number) => {
return request({
url: `/basic/classinfo/${id}`,
method: 'delete',
});
};
/**
* 更新
* @param obj
*/
export const putObj = (obj: any) => {
return request({
url: '/basic/classinfo',
method: 'put',
data: obj,
});
};

108
src/api/basic/major.ts Normal file
View File

@@ -0,0 +1,108 @@
/*
* Copyright (c) 2018-2025, cyweb All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the pig4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
*/
import request from '/@/utils/request';
/**
* 获取列表
* @param query
*/
export const fetchList = (query?: any) => {
return request({
url: '/basic/major/page',
method: 'get',
params: query,
});
};
/**
* 新增
* @param obj
*/
export const addObj = (obj: any) => {
return request({
url: '/basic/major',
method: 'post',
data: obj,
});
};
/**
* 获取详情
* @param id
*/
export const getObj = (id: string | number) => {
return request({
url: `/basic/major/${id}`,
method: 'get',
});
};
/**
* 删除
* @param id
*/
export const delObj = (id: string | number) => {
return request({
url: `/basic/major/${id}`,
method: 'delete',
});
};
/**
* 更新
* @param obj
*/
export const putObj = (obj: any) => {
return request({
url: '/basic/major',
method: 'put',
data: obj,
});
};
/**
* 获取专业代码列表
* @param obj
*/
export const majorCodeList = (obj: string | number) => {
return request({
url: `/basic/major/majorCodeList/${obj}`,
method: 'get',
});
};
/**
* 获取专业名称列表
*/
export const getMajorNameList = () => {
return request({
url: '/basic/major/getMajorNameList',
method: 'get',
});
};
/**
* 获取计划专业
*/
export const planMajor = () => {
return request({
url: '/basic/major/planMajor',
method: 'get',
});
};

View File

@@ -0,0 +1,77 @@
/*
* Copyright (c) 2018-2025, cyweb All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the pig4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
*/
import request from '/@/utils/request';
/**
* 获取列表
* @param query
*/
export const fetchList = (query?: any) => {
return request({
url: '/basic/schoolnews/page',
method: 'get',
params: query,
});
};
/**
* 新增
* @param obj
*/
export const addObj = (obj: any) => {
return request({
url: '/basic/schoolnews',
method: 'post',
data: obj,
});
};
/**
* 获取详情
* @param id
*/
export const getObj = (id: string | number) => {
return request({
url: `/basic/schoolnews/${id}`,
method: 'get',
});
};
/**
* 删除
* @param id
*/
export const delObj = (id: string | number) => {
return request({
url: `/basic/schoolnews/${id}`,
method: 'delete',
});
};
/**
* 更新
* @param obj
*/
export const putObj = (obj: any) => {
return request({
url: '/basic/schoolnews',
method: 'put',
data: obj,
});
};

View File

@@ -0,0 +1,100 @@
/*
* Copyright (c) 2018-2025, cyweb All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the pig4cloud.com developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
*/
import request from '/@/utils/request';
/**
* 获取列表
* @param query
*/
export const fetchList = (query?: any) => {
return request({
url: '/basic/studenthomedetail/page',
method: 'get',
params: query,
});
};
/**
* 新增
* @param obj
*/
export const addObj = (obj: any) => {
return request({
url: '/basic/studenthomedetail',
method: 'post',
data: obj,
});
};
/**
* 新增家庭详情
* @param obj
*/
export const addHomeDetailObj = (obj: any) => {
return request({
url: '/basic/studenthomedetail',
method: 'post',
data: obj,
});
};
/**
* 获取详情
* @param id
*/
export const getObj = (id: string | number) => {
return request({
url: `/basic/studenthomedetail/${id}`,
method: 'get',
});
};
/**
* 删除
* @param id
*/
export const delObj = (id: string | number) => {
return request({
url: `/basic/studenthomedetail/${id}`,
method: 'delete',
});
};
/**
* 删除家庭详情
* @param id
*/
export const delHomeDetailObj = (id: string | number) => {
return request({
url: `/basic/studenthomedetail/${id}`,
method: 'delete',
});
};
/**
* 更新
* @param obj
*/
export const putObj = (obj: any) => {
return request({
url: '/basic/studenthomedetail',
method: 'put',
data: obj,
});
};