diff --git a/src/api/indexExam.js b/src/api/indexExam.js index fc9a30af..727dd42c 100644 --- a/src/api/indexExam.js +++ b/src/api/indexExam.js @@ -8,7 +8,10 @@ export const createExamination = (obj) => http.post('/examination/createExaminat // 根据Id删除考试信息 export const deleteExaminationById = (obj) => http.post('/examination/deleteExaminationById',obj); // 根据ID获取考试信息详情 -export const queryExaminationDetailById = (obj) => http.post('/examination/queryExaminationDetailById',obj); +export const queryExaminationDetailById = (obj) => http.post('/examination/queryExaminationDetailById',obj,{headers: { + 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8' +} +}); // 创建考试信息接口 export const updateExamination = (obj) => http.post('/examination/updateExamination',obj); diff --git a/src/api/indexWork.js b/src/api/indexWork.js index 49ab456a..d44b72eb 100644 --- a/src/api/indexWork.js +++ b/src/api/indexWork.js @@ -8,7 +8,11 @@ export const createWorkTask = (obj) => http.post('/work/createWorkTask',obj,{ // 删除作业信息接口 export const deleteWorkTask = (obj) => http.post('/work/deleteWorkTask',obj); // 根据ID获取作业信息详情 -export const queryWorkDetailById = (obj) => http.post('/work/queryWorkDetailById',obj); +export const queryWorkDetailById = (obj) => http.post('/work/queryWorkDetailById',obj,{ + headers: { + 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8' + } +}); // 修改作业信息接口 export const updateWorkTaskUsing = (obj) => http.post('/work/updateWorkTask',obj); diff --git a/src/components/drawers/AddHomework.vue b/src/components/drawers/AddHomework.vue index e5f6f5fc..9247ee49 100644 --- a/src/components/drawers/AddHomework.vue +++ b/src/components/drawers/AddHomework.vue @@ -3,13 +3,12 @@ :visible="addhomeworkVisible" class="drawerStyle addhomeworkDrawer" width="80%" - title="添加作业" placement="right" @after-visible-change="afterVisibleChange" >
-
添加作业
+
{{workId ? '编辑':'添加' }}作业
@@ -81,7 +80,7 @@ action="/api/file/upload" @change="handleChange" > - +
@@ -106,8 +105,8 @@