From db82d6ca218454f40afab26fe58317c2e6260ed1 Mon Sep 17 00:00:00 2001 From: axlrose2333 <690927457@qq.com> Date: Thu, 23 Feb 2023 10:12:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E8=AF=95=E5=8D=B7=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E6=A8=A1=E5=9D=97;=E6=96=B0=E5=A2=9E=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/examination.js | 33 ++ src/api/exercises.js | 16 +- src/api/order.js | 33 ++ src/view/course/components/chapter.vue | 43 +- .../course/components/examinationPool.vue | 254 ++++++++++ src/view/course/components/exercisesPool.vue | 134 +++++- .../components/coursePool.vue | 228 +++++++++ src/view/examinationManage/index.vue | 440 ++++++++++++++++++ src/view/exercisesManage/index.vue | 146 ++++-- src/view/orderManage/index.vue | 429 +++++++++++++++++ 10 files changed, 1687 insertions(+), 69 deletions(-) create mode 100644 src/api/examination.js create mode 100644 src/api/order.js create mode 100644 src/view/course/components/examinationPool.vue create mode 100644 src/view/examinationManage/components/coursePool.vue create mode 100644 src/view/examinationManage/index.vue create mode 100644 src/view/orderManage/index.vue diff --git a/src/api/examination.js b/src/api/examination.js new file mode 100644 index 0000000..2d0f406 --- /dev/null +++ b/src/api/examination.js @@ -0,0 +1,33 @@ +import service from '@/utils/request' +const api = { + // 试卷 + getExaminationList : data => { + return service({ + url: '/exam/list', + method: 'get', + params:data + }) + }, + addExamination : data => { // 新增试卷 + return service({ + url: '/exam', + method: 'post', + data + }) + }, + editExamination : data => { // 更新试卷 + return service({ + url: '/exam/update', + method: 'post', + data + }) + }, + delExamination : data => { // 删除试卷 + return service({ + url: '/exam/delete', + method: 'post', + data + }) + } +} +export default api diff --git a/src/api/exercises.js b/src/api/exercises.js index 8d940e2..c604f09 100644 --- a/src/api/exercises.js +++ b/src/api/exercises.js @@ -1,12 +1,26 @@ import service from '@/utils/request' const api = { - // 课程api + // 习题 getExercisesList : data => { return service({ url: '/question', method: 'get', params:data }) + }, + addExercises : data => { // 新增习题 + return service({ + url: '/question', + method: 'post', + data + }) + }, + delExercises : data => { // 删除习题 + return service({ + url: '/question/delete', + method: 'post', + data + }) } } export default api diff --git a/src/api/order.js b/src/api/order.js new file mode 100644 index 0000000..eba91f4 --- /dev/null +++ b/src/api/order.js @@ -0,0 +1,33 @@ +import service from '@/utils/request' +const api = { + // 订单 + getOrderList : data => { + return service({ + url: '/order/list', + method: 'get', + params:data + }) + }, + addOrder : data => { // 新增订单 + return service({ + url: '/exam', + method: 'post', + data + }) + }, + editOrder : data => { // 更新订单 + return service({ + url: '/exam/update', + method: 'post', + data + }) + }, + delOrder : data => { // 删除订单 + return service({ + url: '/exam/delete', + method: 'post', + data + }) + } +} +export default api diff --git a/src/view/course/components/chapter.vue b/src/view/course/components/chapter.vue index fa846ee..2070a92 100644 --- a/src/view/course/components/chapter.vue +++ b/src/view/course/components/chapter.vue @@ -8,6 +8,7 @@ export default {