diff --git a/src/api/configuration.ts b/src/api/configuration.ts index 2507384..37cfc6e 100644 --- a/src/api/configuration.ts +++ b/src/api/configuration.ts @@ -45,3 +45,22 @@ export const userStudentListService = (id) => { return request.post('/api/coursesteacher/studentList?userId=' + id) } + +// 获取课程列表 +type CourseListParams = { + 'assessmenttype': string, + 'category'?: string, + 'isAsc'?: boolean, + 'name'?: string, + 'nature'?: string, + 'pageNo'?: number, + 'pageSize'?: number, + 'sortBy'?: string, + 'teacher'?: string, + 'username'?: string, +} +export const getCourseListApi = (params: CourseListParams) => { + return request.get('/api/coursesteacher/page', { + params, + }) +} diff --git a/src/views/course/components/StuList.vue b/src/views/course/components/StuList.vue index 782271b..140083c 100644 --- a/src/views/course/components/StuList.vue +++ b/src/views/course/components/StuList.vue @@ -1,4 +1,5 @@