2025-06-20 10:42:13 +08:00
|
|
|
import { status } from 'nprogress'
|
2025-06-06 15:31:45 +08:00
|
|
|
import http from './http.js'
|
|
|
|
|
// export function GetGradeName() {
|
|
|
|
|
// return http.get(`/api/Grade/GetGradeName`)
|
|
|
|
|
// }
|
|
|
|
|
export function GetGradeList() {
|
|
|
|
|
return http.get(`/api/Grade/GetGradeList`)
|
|
|
|
|
}
|
2026-04-24 17:36:56 +08:00
|
|
|
|
|
|
|
|
export function GetGradeNames() {
|
|
|
|
|
return http.get('/api/Grade/GetGradeNames')
|
|
|
|
|
}
|
2025-06-06 15:31:45 +08:00
|
|
|
export function GetClassPageList(a, b, c, d) {
|
|
|
|
|
return http.get(`/api/Class/GetClassPageList?GradeId=${a}&ClassName=${b}&PageIndex=${c}&PageSize=${d}`)
|
|
|
|
|
}
|
|
|
|
|
export function TeacherGetClassPageList(a, b, c, d, e, f) {
|
|
|
|
|
return http.get(`/api/Teacher/GetTeacherPageList?TeacherName=${a}&PhoneNo=${b}&Sex=${c}&TeacherStatus=${d}&PageIndex=${e}&PageSize=${f}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function AddTeacher(params) {
|
|
|
|
|
return http.post(`/api/Teacher/AddTeacher`, params)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function ModifyTeacher(params) {
|
|
|
|
|
return http.post(`/api/Teacher/ModifyTeacher`, params)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function StudentGetClassPageList(a, b, c, d, e, f, g) {
|
2025-07-16 10:04:46 +08:00
|
|
|
return http.get(`/api/Student/GetStudentPageList?ClassId=${a ?? 0}&StudentNo=${b}&StudentName=${c}&Sex=${d}&StudentStatus=${e}&PageIndex=${f}&PageSize=${g}`)
|
2025-06-06 15:31:45 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function StudentGetClassAll(a) {
|
2025-07-16 10:04:46 +08:00
|
|
|
return http.get(`/api/Student/GetStudentList?ClassId=${a ?? 0}`)
|
2025-06-06 15:31:45 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function AddStudent(params) {
|
|
|
|
|
return http.post(`/api/Student/AddStudent`, params)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function ModifyStudent(params) {
|
|
|
|
|
return http.post(`/api/Student/ModifyStudent`, params)
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-23 15:45:59 +08:00
|
|
|
export function BatchDeleteStudents(ids) {
|
|
|
|
|
return http.post(`/api/Student/BatchDeleteStudents`, ids)
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-28 17:30:38 +08:00
|
|
|
export function ImportStudents(formData) {
|
|
|
|
|
return http.post(`/api/Student/ImportStudents`, formData, '正在导入学生...')
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function GetImportStudentsTemplate() {
|
|
|
|
|
return http.post(`/api/Student/GetImportStudentsTemplate`, null, false, {
|
|
|
|
|
responseType: 'blob'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function BatchUploadPhoto(formData) {
|
|
|
|
|
return http.post('/api/Student/BatchUploadPhoto', formData, '正在导入学生人脸...')
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-23 15:45:59 +08:00
|
|
|
export function GetPromotionStatus() {
|
|
|
|
|
return http.get(`/api/Student/GetPromotionStatus`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function PromoteStudents() {
|
|
|
|
|
return http.post(`/api/Student/PromoteStudents`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function UndoPromotion() {
|
|
|
|
|
return http.post(`/api/Student/UndoPromotion`)
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-06 15:31:45 +08:00
|
|
|
|
|
|
|
|
export function GetGradeName() {
|
|
|
|
|
return http.get(`/api/Grade/GetGradeNames`)
|
|
|
|
|
}
|
|
|
|
|
export function GetClassNames(a) {
|
|
|
|
|
return http.get(`/api/Class/GetClassNames?gradeId=${a}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export function AddClass(params) {
|
|
|
|
|
return http.post(`/api/Class/AddClass`, params)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function AddHallClass(params) {
|
|
|
|
|
return http.post(`/api/SportsHall/AddClass`, params)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function updateHallClass(params) {
|
|
|
|
|
return http.post(`/api/SportsHall/ModifyClass`, params)
|
|
|
|
|
}
|
|
|
|
|
export function BatchAddClass(params) {
|
|
|
|
|
return http.post(`/api/Class/BatchAddClass`, params)
|
|
|
|
|
}
|
|
|
|
|
export function ModifyClass(params) {
|
|
|
|
|
return http.post(`/api/Class/ModifyClass`, params)
|
|
|
|
|
}
|
|
|
|
|
|
2026-10-08 15:18:46 +08:00
|
|
|
export function DeleteClass(classId) {
|
|
|
|
|
return http.post(`/api/Class/DeleteClass?classId=${classId}`)
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-06 15:31:45 +08:00
|
|
|
export function GetTeacherNames() {
|
|
|
|
|
return http.get(`/api/Teacher/GetTeacherNames`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export function StudentWholeDataStats(a) {
|
|
|
|
|
return http.get(`/api/Student/StudentWholeDataStats?studentNo=${a}`)
|
|
|
|
|
}
|
|
|
|
|
export function StudentSingleDataStats(a, b) {
|
|
|
|
|
return http.get(`/api/Student/StudentSingleDataStats?studentNo=${a}&categoryEnum=${b}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function TeacherDataStats(a, b, c) {
|
|
|
|
|
return http.get(`/api/Teacher/TeacherDataStats?TeacherId=${a}&YearAndDateStart=${b}&YearAndDateEnd=${c}`)
|
|
|
|
|
}
|
|
|
|
|
export function GradeDataStats(a, b, c, d) {
|
|
|
|
|
return http.get(`/api/Grade/GradeWholeDataStats?GradeId=${a}&Semester=${b}&YearAndDateStart=${c}&YearAndDateEnd=${d}`)
|
|
|
|
|
}
|
|
|
|
|
export function classDataStats(a, b, c, d) {
|
|
|
|
|
return http.get(`/api/Class/ClassWholeDataStats?ClassId=${a}&Semester=${b}&YearAndDateStart=${c}&YearAndDateEnd=${d}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function SportsGetGradeNames() {
|
|
|
|
|
return http.get(`/api/SportsTestCategory/GetSportsTestCategoryList`)
|
|
|
|
|
}
|
|
|
|
|
export function GetHealthStandardsPageList(a, b, c) {
|
|
|
|
|
return http.get(`/api/HealthStandards/GetHealthStandardsPageList?CategoryEnum=${a}&PageIndex=${b}&PageSize=${c}`)
|
|
|
|
|
}
|
|
|
|
|
export function AddHealthStandards(params) {
|
|
|
|
|
return http.post(`/api/HealthStandards/AddHealthStandards`, params)
|
|
|
|
|
}
|
|
|
|
|
export function ModifyHealthStandards(params) {
|
|
|
|
|
return http.post(`/api/HealthStandards/ModifyHealthStandards`, params)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export function GetSportsTestCategoryPageList(a, b, c, d) {
|
|
|
|
|
return http.get(`/api/SportsTestCategory/GetSportsTestCategoryPageList?CategoryName=${a}&CategoryEnum=${b}&PageIndex=${c}&PageSize=${d}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function GetStatisticTypeList() {
|
|
|
|
|
return http.get(`/api/SportsTestCategory/GetStatisticTypeList`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function AddTypeList(params) {
|
|
|
|
|
return http.post(`/api/SportsTestCategory/Add`, params)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function ModifyTypeList(params) {
|
|
|
|
|
return http.post(`/api/SportsTestCategory/Modify`, params)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function DeleteTypeList(a) {
|
|
|
|
|
return http.post(`/api/SportsTestCategory/Delete?id=${a}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export function GetSportsTestResultPageList(a, b, c, d, e, f, g, h) {
|
|
|
|
|
return http.get(`/api/SportsTestResult/GetSportsTestCategoryPageList?TeacherId=${a}&GradeId=${b}&ClassId=${c}&StudentNo=${d}&Sex=${e}&CategoryId=${f}&PageIndex=${g}&PageSize=${h}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function AddSportsTestResult(params) {
|
|
|
|
|
return http.post(`/api/SportsTestResult/Add`, params)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function ModifySportsTestResult(params) {
|
|
|
|
|
return http.post(`/api/SportsTestResult/Modify`, params)
|
|
|
|
|
}
|
|
|
|
|
export function DeleteTestResult(a) {
|
|
|
|
|
return http.post(`/api/SportsTestResult/Delete?ids=${a}`)
|
|
|
|
|
}
|
|
|
|
|
export function GetActivitiesPageList(a, b, c, d, e, f) {
|
|
|
|
|
return http.get(`/api/Activities/GetActivitiesPageList?ActivitiesName=${a}&ActivitiesStatus=${b}&StartDate=${c}&EndDate=${d}&PageIndex=${e}&PageSize=${f}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function AddActivities(params) {
|
|
|
|
|
return http.post(`/api/Activities/Add`, params)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function ModifyActivities(params) {
|
|
|
|
|
return http.post(`/api/Activities/Modify`, params)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function deleteActivities(params) {
|
|
|
|
|
return http.post(`/api/Activities/BatchDelete`, params)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export function GetActivitiesEntryPageList(a, b, c, d, e, f, g) {
|
|
|
|
|
return http.get(`/api/ActivitiesEntry/GetActivitiesEntryPageList?Participants=${a}&ActivitiesName=${b}&ActivitiesStatus=${c}&StartDate=${d}&EndDate=${e}&PageIndex=${f}&PageSize=${g}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function ActivitiesEntryAdd(params) {
|
|
|
|
|
return http.post(`/api/ActivitiesEntry/Add`, params)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export function ActivitiesEntryDelete(params) {
|
|
|
|
|
return http.post(`/api/ActivitiesEntry/Delete?id=${params}`)
|
|
|
|
|
}
|
|
|
|
|
export function ActivitiesEntryDetails(params) {
|
|
|
|
|
return http.post(`/api/ActivitiesEntry/Details?id=${params}`)
|
|
|
|
|
}
|
|
|
|
|
// export function Face(params) {
|
|
|
|
|
// return http.post(`/api/Student/Face`,params)
|
|
|
|
|
// }
|
|
|
|
|
export function Face(params) {
|
|
|
|
|
return http.post(`/api/FaceDetect/GetStudentDetails?classId=${1}`, params)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 学校管理
|
|
|
|
|
export function GetSchoolPageList(a, b, c, d,e,f,g,h) {
|
|
|
|
|
return http.get(`/api/School/GetSchoolPageList?SchoolCode=${a}&SchoolName=${b}&UserTrueName=${c}&PhoneNo=${d}&Status=${e}&PageIndex=${f}&PageSize=${g}&schoolType=${h}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function GetSchoolNatureList() {
|
|
|
|
|
return http.get(`/api/School/GetSchoolNatureList`)
|
|
|
|
|
}
|
|
|
|
|
// 新增学校
|
|
|
|
|
export function SchoolAdd(params) {
|
|
|
|
|
return http.post(`/api/School/Add`, params)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 编辑学校
|
|
|
|
|
export function SchoolModify(params) {
|
|
|
|
|
return http.post(`/api/School/Modify`, params)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 获取省份
|
|
|
|
|
export function GetProvinceList() {
|
|
|
|
|
return http.get(`/api/Location/GetProvinceList`)
|
|
|
|
|
}
|
|
|
|
|
// 获取市
|
|
|
|
|
export function GetCityList(a) {
|
|
|
|
|
return http.get(`/api/Location/GetCityList?provinceCode=${a}`)
|
|
|
|
|
}
|
|
|
|
|
// 获取区
|
|
|
|
|
export function GetDistrictList(a) {
|
|
|
|
|
return http.get(`/api/Location/GetDistrictList?cityCode=${a}`)
|
|
|
|
|
}
|
|
|
|
|
// 获取年级对应项目名称
|
|
|
|
|
export function CategoryList(a) {
|
|
|
|
|
return http.get(`/api/Grade/CategoryList?GradeId=${a}`)
|
|
|
|
|
}
|
|
|
|
|
// 年级数据统计
|
|
|
|
|
export function GradeWholeDataStats(a) {
|
|
|
|
|
return http.get(`/api/Grade/GradeWholeDataStats?GradeId=${a}`)
|
|
|
|
|
}
|
|
|
|
|
// 各体测项目等级占比
|
|
|
|
|
export function CategoryRankRatio(a, b) {
|
|
|
|
|
return http.get(`/api/Grade/CategoryRankRatio?CategoryValue=${a}&GradeId=${b}`)
|
|
|
|
|
}
|
|
|
|
|
// 成绩趋势
|
|
|
|
|
export function ResultTrends(a, b, c) {
|
|
|
|
|
return http.get(`/api/Grade/ResultTrends?CycleTime=${a}&CategoryValue=${b}&GradeId=${c}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 班级数据统计
|
|
|
|
|
export function ClassWholeDataStats(a) {
|
|
|
|
|
return http.get(`/api/Class/ClassWholeDataStats?ClassId=${a}`)
|
|
|
|
|
}
|
|
|
|
|
// 班级体测等级占比
|
|
|
|
|
export function TestResultRankRate(a, b, c) {
|
|
|
|
|
return http.get(`/api/Class/TestResultRankRate?GradeId=${a}&ClassId=${b}&rank=${c}`)
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
// 班级各体测项目等级占比
|
|
|
|
|
export function ClassCategoryRankRatio(a, b, c) {
|
|
|
|
|
return http.get(`/api/Class/CategoryRankRatio?GradeId=${a}&ClassId=${b}&CategoryValue=${c}`)
|
|
|
|
|
}
|
|
|
|
|
// 班级成绩趋势
|
|
|
|
|
export function ClassResultTrends(a, b, c, d) {
|
|
|
|
|
return http.get(`/api/Class/ResultTrends?CycleTime=${a}&GradeId=${b}&ClassId=${c}&CategoryValue=${d}`)
|
|
|
|
|
}
|
|
|
|
|
// 老师数据统计
|
|
|
|
|
export function TeacherDataStats1(a) {
|
|
|
|
|
return http.get(`/api/Teacher/TeacherDataStats?TeacherId=${a}`)
|
|
|
|
|
}
|
|
|
|
|
// 班级体测平均成绩
|
|
|
|
|
export function TestResultAvg(a) {
|
|
|
|
|
return http.get(`/api/Teacher/TestResultAvg?ClassId=${a}`)
|
|
|
|
|
}
|
|
|
|
|
// 各班级授课次数占比
|
|
|
|
|
export function ClassTeachingCountRatio(a, b) {
|
|
|
|
|
return http.get(`/api/Teacher/ClassTeachingCountRatio?TeacherId=${a}&QuarterlyCycle=${b}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 学生整体数据统计
|
|
|
|
|
export function StudentWholeDataStats1(a) {
|
|
|
|
|
return http.get(`/api/Student/StudentWholeDataStats?StudentNo=${a}`)
|
|
|
|
|
}
|
|
|
|
|
// 各项目平均成绩
|
|
|
|
|
export function TestResultAvg1(a, b, c) {
|
|
|
|
|
return http.get(`/api/Student/TestResultAvg?StudentNo=${a}&ClassId=${b}&CategoryValue=${c}`)
|
|
|
|
|
}
|
|
|
|
|
// 个人成绩对比
|
|
|
|
|
export function TestResultContrast(a, b, c) {
|
|
|
|
|
return http.get(`/api/Student/TestResultContrast?StudentNo=${a}&ClassId=${b}&CategoryValue=${c}`)
|
|
|
|
|
}
|
|
|
|
|
//成绩趋势
|
|
|
|
|
export function ResultTrends1(a, b, c, d) {
|
|
|
|
|
return http.get(`/api/Student/ResultTrends?CycleTime=${a}&StudentNo=${b}&ClassId=${c}&CategoryValue=${d}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//训练记录
|
|
|
|
|
export function TrainingRecords(a, b, c, d, e, f, g,h,j) {
|
|
|
|
|
return http.get(`/api/Student/TrainingRecords?StudentNo=${a}&TrainType=${b}&Rank=${c}&RankStr=${d}&CategoryValue=${e}&StartTime=${f}&EndTime=${g}&PageIndex=${h}&PageSize=${j}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//体测数据
|
|
|
|
|
export function TestRecords(a, b, c, d, e, f, g,h,j) {
|
|
|
|
|
return http.get(`/api/Student/TestRecords?StudentNo=${a}&TrainType=${b}&Rank=${c}&RankStr=${d}&CategoryValue=${e}&StartTime=${f}&EndTime=${g}&PageIndex=${h}&PageSize=${j}`)
|
|
|
|
|
}
|
|
|
|
|
// 更新老师状态
|
|
|
|
|
export function UpdateTeacherStatus(params) {
|
|
|
|
|
return http.post(`/api/Teacher/UpdateTeacherStatus`, params)
|
|
|
|
|
}
|
|
|
|
|
//更新老师密码
|
|
|
|
|
export function UpdateTeacherPwd(params) {
|
|
|
|
|
return http.post(`/api/Teacher/UpdateTeacherPwd`, params)
|
|
|
|
|
}
|
|
|
|
|
// 更新学生密码
|
|
|
|
|
export function UpdateStudentPwd(params) {
|
|
|
|
|
return http.post(`/api/Student/UpdateStudentPwd`, params)
|
|
|
|
|
}
|
|
|
|
|
// 毕业
|
|
|
|
|
export function UpdateStudentStatus(params) {
|
|
|
|
|
return http.post(`/api/Student/UpdateStudentStatus`, params)
|
|
|
|
|
}
|
|
|
|
|
//详情
|
|
|
|
|
export function schoolDetails(a) {
|
|
|
|
|
return http.get(`/api/School/Details?schoolCode=${a}`)
|
|
|
|
|
}
|
|
|
|
|
// 禁用
|
|
|
|
|
export function ModifyStatus(params) {
|
|
|
|
|
return http.post(`/api/School/ModifyStatus`,params)
|
|
|
|
|
}
|
|
|
|
|
// 更新密码
|
|
|
|
|
export function UpdatePwd(params) {
|
|
|
|
|
return http.post(`/api/School/UpdatePwd`,params)
|
|
|
|
|
}
|
|
|
|
|
//验证用户是否存在
|
|
|
|
|
export function UserNameIsExists(a) {
|
|
|
|
|
return http.get(`/api/School/UserNameIsExists?userName=${a}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//课堂报告详情
|
|
|
|
|
export function ClassReportDetails(a) {
|
|
|
|
|
return http.get(`/api/TrainingData/GetClassReportDetails?id=${a}`)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//学生课堂报告详情
|
|
|
|
|
export function StudentClassReportDetails(a) {
|
|
|
|
|
return http.get(`/api/TrainingData/GetStudentClassReportDetails?`+a)
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-20 10:42:13 +08:00
|
|
|
//学校账号开通预约列表
|
|
|
|
|
export function getSchoolReservationList(pageIndex, status) {
|
|
|
|
|
return http.get(`/api/School/GetSchoolAccountApplicationPageList?PageIndex=${pageIndex}&PageSize=20&Status=${status ? status : 0}`)
|
|
|
|
|
}
|
2025-06-06 15:31:45 +08:00
|
|
|
|
2025-06-20 10:42:13 +08:00
|
|
|
//更新预约状态
|
|
|
|
|
export function changeSchoolReservationStatus(id, status) {
|
2025-07-16 10:04:46 +08:00
|
|
|
return http.post(`/api/School/UpdateSchoolAccountApplicationStatus?id=${id}&Status=${status ? status : 0}`,{
|
|
|
|
|
status: status ? status : 0,
|
|
|
|
|
id: id
|
|
|
|
|
})
|
2025-06-20 10:42:13 +08:00
|
|
|
}
|
2025-06-06 15:31:45 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|