diff --git a/src/api/grade.js b/src/api/grade.js index 9ed8457..5a334b6 100644 --- a/src/api/grade.js +++ b/src/api/grade.js @@ -1,3 +1,4 @@ +import { status } from 'nprogress' import http from './http.js' // export function GetGradeName() { // return http.get(`/api/Grade/GetGradeName`) @@ -320,8 +321,15 @@ export function StudentClassReportDetails(a) { return http.get(`/api/TrainingData/GetStudentClassReportDetails?`+a) } - - +//学校账号开通预约列表 +export function getSchoolReservationList(pageIndex, status) { + return http.get(`/api/School/GetSchoolAccountApplicationPageList?PageIndex=${pageIndex}&PageSize=20&Status=${status ? status : 0}`) +} + +//更新预约状态 +export function changeSchoolReservationStatus(id, status) { + return http.post(`/api/School/UpdateSchoolAccountApplicationStatus?id=${id}0&Status=${status ? status : 0}`) +} diff --git a/src/router/index.js b/src/router/index.js index 4150918..6d3af9c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -574,6 +574,11 @@ const routes = [{ path: '/sportsHallClass', //运动馆/班级管理 name: 'sportsHallClass', component: () => import('@/views/sportsHall/classManage/index.vue'), + }, + { + path: '/openReservation', //学校管理/开放预约 + name: 'openReservation', + component: () => import('@/views/openReservation/index.vue'), } ] }, diff --git a/src/views/openReservation/index.vue b/src/views/openReservation/index.vue new file mode 100644 index 0000000..20839f5 --- /dev/null +++ b/src/views/openReservation/index.vue @@ -0,0 +1,302 @@ + + + + + + 学校状态: + + + + {{ item.label }} + + + + 重置 + + + + + + + + + {{ index + 1 }} + + + + + 未联系 + + 已联系 + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/sportsHall/classManage/index.vue b/src/views/sportsHall/classManage/index.vue index 384e846..f1ef3d2 100644 --- a/src/views/sportsHall/classManage/index.vue +++ b/src/views/sportsHall/classManage/index.vue @@ -135,7 +135,7 @@ const columns = [ title: '班级人数', dataIndex: 'studentCount', key: 'studentCount', - sorter: (a, b) => a - b, + sorter: (a, b) => a.studentCount - b.studentCount , }, { title: '操作',