From c55c81c701ba3cad7c514274291210471462cebc Mon Sep 17 00:00:00 2001 From: Yuanjianghong Date: Tue, 16 Nov 2021 18:05:57 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E7=AE=A1=E7=90=86=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/project/projectCourse.js | 13 +- src/views/project/form/ProjectCourseList.vue | 141 +++++++++++------- .../project/form/ProjectCourseSelect.vue | 28 +--- src/views/project/form/ProjectPersonForm.vue | 16 +- src/views/project/form/ProjectUnitSelect.vue | 19 +-- 5 files changed, 126 insertions(+), 91 deletions(-) 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 @@