From e42b67d4833b3ba8d9c4504984840652b372fe12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=86=99=E4=B8=9C?= <2195178163@qq.com> Date: Wed, 2 Nov 2022 20:23:32 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E5=9C=A8=E4=BD=9C=E4=B8=9A?= =?UTF-8?q?=E5=92=8C=E8=80=83=E8=AF=95drawer=E4=B8=AD=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E7=BC=96=E8=BE=91=C2=B7=E6=9F=A5=E8=AF=A2.=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=20fix:=20=E6=97=B6=E9=97=B4=E6=A0=8F?= =?UTF-8?q?=E6=98=BE=E7=A4=BAbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/indexExam.js | 5 +- src/api/indexWork.js | 6 +- src/components/drawers/AddHomework.vue | 86 +++++++++++++++++--------- src/components/drawers/AddTest.vue | 86 ++++++++++++++++++-------- 4 files changed, 127 insertions(+), 56 deletions(-) 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" >