From 707fa4ba434717d91ae1a8a3220ba060eed285c0 Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Wed, 27 May 2020 18:09:21 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=90=86=E8=AE=BA?= =?UTF-8?q?=E7=AB=9E=E8=B5=9B=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/competition.js | 14 ++++- src/views/competitionManage/generatePaper.vue | 5 -- src/views/jsxt/competition/result.vue | 9 +++ .../jsxt/competition/theory/quiz/index.vue | 60 +++++++------------ src/views/jsxt/refereeList/index.vue | 31 ++++++++-- 5 files changed, 68 insertions(+), 51 deletions(-) diff --git a/src/api/competition.js b/src/api/competition.js index eff437a1a..15fe0b588 100644 --- a/src/api/competition.js +++ b/src/api/competition.js @@ -49,7 +49,7 @@ export function getQuestionListByMapId(params) { // 加载试卷 export function loadingPaper(competitionId, data) { return request({ - url: `api/v1/competition/${competitionId}/testPaper`, + url: `/api/v1/competition/${competitionId}/testPaper`, method: 'post', data }); @@ -91,9 +91,9 @@ export function getRaceUserList(params) { // } /** 提交试卷 */ -export function postCompetitionTheory(theoryId, data) { +export function postCompetitionTheory(data) { return request({ - url: `/api/v1/competitionTheory/${theoryId}/submit`, + url: `/api/v1/competitionTheory/submit`, method: 'post', data }); @@ -131,6 +131,14 @@ export function getTheoryQuestion(competitionId) { }); } +/** 查询理论题作答详情 */ +export function getCompetitionDetail(competitionId) { + return request({ + url: `/api/v1/competitionTheory/detail/competition/${competitionId}`, + method: 'get' + }); +} + /** 根据id查询竞赛信息 */ export function getRaceById(id) { return request({ diff --git a/src/views/competitionManage/generatePaper.vue b/src/views/competitionManage/generatePaper.vue index ca070222b..776ca1262 100644 --- a/src/views/competitionManage/generatePaper.vue +++ b/src/views/competitionManage/generatePaper.vue @@ -24,11 +24,6 @@ - diff --git a/src/views/jsxt/competition/result.vue b/src/views/jsxt/competition/result.vue index 0f9034df6..2a28b381f 100644 --- a/src/views/jsxt/competition/result.vue +++ b/src/views/jsxt/competition/result.vue @@ -40,6 +40,7 @@