diff --git a/src/api/course/course.js b/src/api/course/course.js index 36b2d09..9433ed2 100644 --- a/src/api/course/course.js +++ b/src/api/course/course.js @@ -1,7 +1,7 @@ import request from '@/utils/request' const courseApi = { -// add: 'sys/menu/add', + add: '/courseManagement/course/addOrUpdate', get: '/courseManagement/course/details', // update: 'sys/menu/update', del: 'courseManagement/course/delete', @@ -12,13 +12,13 @@ const courseApi = { } -// export function menuAdd (params) { -// return request({ -// url: menuApi.add, -// method: 'post', -// data: params -// }) -// } +export function courseAdd (params) { + return request({ + url: courseApi.add, + method: 'post', + data: params + }) +} // export function menuGet (params) { // return request({ // url: menuApi.get, diff --git a/src/views/course/CourseAdd.vue b/src/views/course/CourseAdd.vue new file mode 100644 index 0000000..77a7f8d --- /dev/null +++ b/src/views/course/CourseAdd.vue @@ -0,0 +1,153 @@ + + + + + diff --git a/src/views/course/CourseForm.vue b/src/views/course/CourseForm.vue deleted file mode 100644 index b1df082..0000000 --- a/src/views/course/CourseForm.vue +++ /dev/null @@ -1,61 +0,0 @@ - - - - - diff --git a/src/views/course/CourseList.vue b/src/views/course/CourseList.vue index 6dcb311..bff806c 100644 --- a/src/views/course/CourseList.vue +++ b/src/views/course/CourseList.vue @@ -1,10 +1,10 @@