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 @@