From 36112787566439517bf4982b00f01d118fb3448a Mon Sep 17 00:00:00 2001 From: flower Date: Tue, 11 Dec 2018 22:44:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E9=80=89=EF=BC=8C=E5=8D=95=E9=80=89?= =?UTF-8?q?=EF=BC=8C=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/ExamQuestionController.java | 16 ++ .../exam/examQuestion/examQuestion.html | 28 +++- .../templates/exam/examQuestion/judgeadd.html | 148 +++++++++++++++++ .../exam/examQuestion/morechoiceadd.html | 154 ++++++++++++++++++ 4 files changed, 344 insertions(+), 2 deletions(-) create mode 100644 ruoyi-exam/src/main/resources/templates/exam/examQuestion/judgeadd.html create mode 100644 ruoyi-exam/src/main/resources/templates/exam/examQuestion/morechoiceadd.html diff --git a/ruoyi-exam/src/main/java/com/ruoyi/exam/controller/ExamQuestionController.java b/ruoyi-exam/src/main/java/com/ruoyi/exam/controller/ExamQuestionController.java index f3a408b35..ce8551a33 100644 --- a/ruoyi-exam/src/main/java/com/ruoyi/exam/controller/ExamQuestionController.java +++ b/ruoyi-exam/src/main/java/com/ruoyi/exam/controller/ExamQuestionController.java @@ -46,6 +46,22 @@ public class ExamQuestionController extends BaseController mmap.put("type",1); return prefix + "/choiceadd"; } + + @GetMapping("/morechoiceadd/{id}") + public String addMoreChoiceUrl(@PathVariable("id") String id, ModelMap mmap) + { + mmap.put("categoryId",id); + mmap.put("type",2); + return prefix + "/morechoiceadd"; + } + + @GetMapping("/judgeadd/{id}") + public String JudgeUrl(@PathVariable("id") String id, ModelMap mmap) + { + mmap.put("categoryId",id); + mmap.put("type",3); + return prefix + "/judgeadd"; + } /** * 查询问题列表 diff --git a/ruoyi-exam/src/main/resources/templates/exam/examQuestion/examQuestion.html b/ruoyi-exam/src/main/resources/templates/exam/examQuestion/examQuestion.html index 391ec73fb..6ae276e86 100644 --- a/ruoyi-exam/src/main/resources/templates/exam/examQuestion/examQuestion.html +++ b/ruoyi-exam/src/main/resources/templates/exam/examQuestion/examQuestion.html @@ -62,7 +62,13 @@