From 6a0801ba9f6c9f5d422af04dcb2cbac6c61bbdbe Mon Sep 17 00:00:00 2001 From: significative <163999932+significative@users.noreply.github.com> Date: Tue, 27 Aug 2024 14:42:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E9=A6=96=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/configuration.ts | 19 +++ src/views/course/components/StuList.vue | 4 +- src/views/professionalListProfile/index.vue | 129 +++++++++----------- 3 files changed, 81 insertions(+), 71 deletions(-) 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 @@