From 88cbb075679f2f1f726014f10739daf0bae42c93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=86=99=E4=B8=9C?= <2195178163@qq.com> Date: Tue, 1 Nov 2022 10:21:29 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E8=80=83=E8=AF=95=E5=92=8C?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E6=95=B0=E6=8D=AE=E6=8E=A5=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/indexExam.js | 14 ++++++ src/api/indexWork.js | 14 ++++++ src/components/drawers/AddHomework.vue | 64 +++++++++++++++++++++++++- src/components/drawers/AddTest.vue | 63 +++++++++++++++++++++++-- 4 files changed, 150 insertions(+), 5 deletions(-) create mode 100644 src/api/indexExam.js create mode 100644 src/api/indexWork.js diff --git a/src/api/indexExam.js b/src/api/indexExam.js new file mode 100644 index 00000000..fc9a30af --- /dev/null +++ b/src/api/indexExam.js @@ -0,0 +1,14 @@ +import http from "./config"; +// 创建考试信息接口 +export const createExamination = (obj) => http.post('/examination/createExamination',obj,{ + headers: { + 'token': '123' + } +}); +// 根据Id删除考试信息 +export const deleteExaminationById = (obj) => http.post('/examination/deleteExaminationById',obj); +// 根据ID获取考试信息详情 +export const queryExaminationDetailById = (obj) => http.post('/examination/queryExaminationDetailById',obj); +// 创建考试信息接口 +export const updateExamination = (obj) => http.post('/examination/updateExamination',obj); + diff --git a/src/api/indexWork.js b/src/api/indexWork.js new file mode 100644 index 00000000..49ab456a --- /dev/null +++ b/src/api/indexWork.js @@ -0,0 +1,14 @@ +import http from "./config"; +// 创建作业信息接口 +export const createWorkTask = (obj) => http.post('/work/createWorkTask',obj,{ + headers: { + 'token': '123' + } +}); +// 删除作业信息接口 +export const deleteWorkTask = (obj) => http.post('/work/deleteWorkTask',obj); +// 根据ID获取作业信息详情 +export const queryWorkDetailById = (obj) => http.post('/work/queryWorkDetailById',obj); +// 修改作业信息接口 +export const updateWorkTaskUsing = (obj) => http.post('/work/updateWorkTask',obj); + diff --git a/src/components/drawers/AddHomework.vue b/src/components/drawers/AddHomework.vue index 7467682a..f1fb1d21 100644 --- a/src/components/drawers/AddHomework.vue +++ b/src/components/drawers/AddHomework.vue @@ -63,6 +63,7 @@