From a7e8633c2ef360ba15e769707dd83d1343fa588c Mon Sep 17 00:00:00 2001 From: 18571350067 Date: Sat, 18 Sep 2021 15:30:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E3=80=81=E8=AF=BE=E4=BB=B6?= =?UTF-8?q?=E3=80=81=E9=A2=98=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/course/course.js | 16 +- src/views/course/CourseAdd.vue | 153 +++++++++++++++++++ src/views/course/CourseForm.vue | 61 -------- src/views/course/CourseList.vue | 10 +- src/views/course/coursestep/Step1.vue | 164 --------------------- src/views/course/coursestep/Step2.vue | 110 -------------- src/views/course/question/QuestionList.vue | 1 - 7 files changed, 169 insertions(+), 346 deletions(-) create mode 100644 src/views/course/CourseAdd.vue delete mode 100644 src/views/course/CourseForm.vue delete mode 100644 src/views/course/coursestep/Step1.vue delete mode 100644 src/views/course/coursestep/Step2.vue 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 @@