初始化
This commit is contained in:
242
src/api/stuCQS/basedata/student.js
Normal file
242
src/api/stuCQS/basedata/student.js
Normal file
@@ -0,0 +1,242 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
export function doDept(data){
|
||||
return request({
|
||||
url:"/system/student/doDept",
|
||||
method:"POST",
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
export function changeOwnInfo(data){
|
||||
return request({
|
||||
url:"/system/student/changeOwnInfo",
|
||||
method:"POST",
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
export function getOwnInfo() {
|
||||
return request({
|
||||
url: "/system/student/getOwnInfo",
|
||||
method: "get"
|
||||
});
|
||||
}
|
||||
|
||||
export function listEnableStu() {
|
||||
return request({
|
||||
url: "/system/student/listEnableStu",
|
||||
method: "get"
|
||||
});
|
||||
}
|
||||
|
||||
export function initOnePwd(data) {
|
||||
return request({
|
||||
url: "/system/student/updateUserPwds",
|
||||
method: "post",
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function initPwd() {
|
||||
return request({
|
||||
url: "/system/student/initializePwd",
|
||||
method: "post"
|
||||
});
|
||||
}
|
||||
|
||||
export function getOwnClass() {
|
||||
return request({
|
||||
url: "/system/student/getOwnClass",
|
||||
method: "get"
|
||||
})
|
||||
}
|
||||
|
||||
//tree学生
|
||||
export function treeStudent() {
|
||||
return request({
|
||||
url: "/system/student/name",
|
||||
method: "get"
|
||||
});
|
||||
}
|
||||
|
||||
export function listOwnStu(query) {
|
||||
return request({
|
||||
url: '/system/student/listOwnStu',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询学生信息列表
|
||||
export function listStudent(query) {
|
||||
return request({
|
||||
url: '/system/student/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
//查询学生状态
|
||||
export function getStatus(query){
|
||||
return request({
|
||||
url: '/system/student/statusList',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
// 查询班级信息列表
|
||||
export function listclass(query) {
|
||||
return request({
|
||||
url: '/system/class/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
// 查询班级列表及上级
|
||||
export function getClassName(query) {
|
||||
return request({
|
||||
url: '/system/class/name',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询学生信息详细
|
||||
export function getStudent(stuId) {
|
||||
return request({
|
||||
url: '/system/student/' + stuId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增学生信息
|
||||
export function addStudent(data) {
|
||||
return request({
|
||||
url: '/system/student',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改学生信息
|
||||
export function updateStudent(data) {
|
||||
return request({
|
||||
url: '/system/student/update',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除学生信息
|
||||
export function delStudent(stuId) {
|
||||
return request({
|
||||
url: '/system/student/delete/' + stuId,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询学生信息列表
|
||||
export function listAllStudent(query) {
|
||||
return request({
|
||||
url: '/system/student/listAll',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
//统计各个名族有多少学生
|
||||
export function getSrsMZCount(){
|
||||
return request({
|
||||
url: '/system/student/getSrsMZCount',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
//统计是农村和城镇户口多少人
|
||||
export function getSrsHZCount(){
|
||||
return request({
|
||||
url: '/system/student/getSrsHZCount',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
//统计是政治面貌多少人
|
||||
export function getSrsZZCount(){
|
||||
return request({
|
||||
url: '/system/student/getSrsZZCount',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
//统计男女多少人
|
||||
export function getSrsGenderCount(){
|
||||
return request({
|
||||
url: '/system/student/getSrsGenderCount',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
//统计不同贫困类型的人数
|
||||
export function getSrsknrdCount(){
|
||||
return request({
|
||||
url: '/system/student/getSrsknrdCount',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
//统计不同贫年龄段的人数
|
||||
export function getSrsAgeCount(){
|
||||
return request({
|
||||
url: '/system/student/getSrsAgeCount',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
//统计不同城市总人数,男女人数
|
||||
export function getCountbyCity(){
|
||||
return request({
|
||||
url: '/system/student/getCountbyCity',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
//统计每个年级多少学生
|
||||
export function getSchoolCountbyGrade(){
|
||||
return request({
|
||||
url: '/system/student/getSchoolCountbyGrade',
|
||||
method: 'get'
|
||||
})
|
||||
|
||||
}
|
||||
//统计学校总人数、男女人数,以及男女占比
|
||||
export function getSchoolTotalCount(){
|
||||
return request({
|
||||
url: '/system/student/getSchoolTotalCount',
|
||||
method: 'get'
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
//统计非广西学生的人数
|
||||
export function getNotSchoolTotalCount(){
|
||||
return request({
|
||||
url: '/system/student/getNotSchoolTotalCount',
|
||||
method: 'get'
|
||||
})
|
||||
|
||||
}
|
||||
//统计各个年级各个专业的人数
|
||||
|
||||
export function getMajorsCount(){
|
||||
return request({
|
||||
url: '/system/student/getMajorsCount',
|
||||
method: 'get'
|
||||
})
|
||||
|
||||
}
|
||||
//统计近5年的人数
|
||||
|
||||
export function getFiveSchoolTotalCount(){
|
||||
return request({
|
||||
url: '/system/student/getFiveSchoolTotalCount',
|
||||
method: 'get'
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user