diff --git a/src/api/project/projectCourse.js b/src/api/project/projectCourse.js index 1321eab..c42057d 100644 --- a/src/api/project/projectCourse.js +++ b/src/api/project/projectCourse.js @@ -8,14 +8,23 @@ const projectCourseApi = { // del: 'sys/menu/delete', // // updateStatus: 'sys/menu/updateStatus', // list: 'project/pageList', - projectCourseList: '/project/course/list' + projectCourseList: '/project/course/list', + courseList: '/project/course/listByCourseIds' } +/** 通过项目id查询 */ export function getCourseList (params) { - // console.log("------------{}",params) return request({ url: projectCourseApi.projectCourseList, method: 'get', params: params }) +} +/** 通过课程列表查询 */ +export function getCourseListByCourseIds (params) { + return request({ + url: projectCourseApi.courseList, + method: 'Post', + params: params + }) } \ No newline at end of file diff --git a/src/views/project/form/ProjectCourseList.vue b/src/views/project/form/ProjectCourseList.vue index ba687f7..e12d395 100644 --- a/src/views/project/form/ProjectCourseList.vue +++ b/src/views/project/form/ProjectCourseList.vue @@ -1,36 +1,50 @@