From 34b871aadc84dc7367dbe439d02200407b6b9f2a Mon Sep 17 00:00:00 2001 From: 20918 <2091823062@qq.com> Date: Tue, 9 Apr 2024 11:12:53 +0800 Subject: [PATCH] FIRSTCOMMIT --- .../controller/system/TdExamController.java | 50 +++++++++++++++++ .../resources/templates/index-topnav.html | 2 +- .../main/resources/templates/register.html | 2 +- .../resources/templates/system/exam/exam.html | 55 +++++++++++++++++++ 4 files changed, 107 insertions(+), 2 deletions(-) create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TdExamController.java create mode 100644 ruoyi-admin/src/main/resources/templates/system/exam/exam.html diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TdExamController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TdExamController.java new file mode 100644 index 0000000..77581d5 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TdExamController.java @@ -0,0 +1,50 @@ +package com.ruoyi.web.controller.system; + +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.system.domain.TdQuestion; +import com.ruoyi.system.service.ITdQuestionService; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.core.controller.BaseController; + +import java.util.List; + +/** + * 保密考试 + * + */ +@Controller +@RequestMapping("/system/exam") +public class TdExamController extends BaseController{ + private String prefix = "system/exam"; + + @Autowired + private ITdQuestionService tdQuestionService; + + @RequiresPermissions("system:exam:view") + @GetMapping() + public String exam() + { + return prefix + "/exam"; + } + + /** + * 查询题库列表返回 + */ + @RequiresPermissions("system:exam:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(TdQuestion tdQuestion) + { + startPage(); + List list = tdQuestionService.selectTdQuestionList(tdQuestion); + return getDataTable(list); + } + + +} diff --git a/ruoyi-admin/src/main/resources/templates/index-topnav.html b/ruoyi-admin/src/main/resources/templates/index-topnav.html index 8a1b386..8ddb7e6 100644 --- a/ruoyi-admin/src/main/resources/templates/index-topnav.html +++ b/ruoyi-admin/src/main/resources/templates/index-topnav.html @@ -305,7 +305,7 @@ diff --git a/ruoyi-admin/src/main/resources/templates/register.html b/ruoyi-admin/src/main/resources/templates/register.html index d3fc1d4..5be6872 100644 --- a/ruoyi-admin/src/main/resources/templates/register.html +++ b/ruoyi-admin/src/main/resources/templates/register.html @@ -64,7 +64,7 @@ diff --git a/ruoyi-admin/src/main/resources/templates/system/exam/exam.html b/ruoyi-admin/src/main/resources/templates/system/exam/exam.html new file mode 100644 index 0000000..cb7f49a --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/exam/exam.html @@ -0,0 +1,55 @@ + + + + + + +
+
+
+
+
+ +
+
+
+ +
+
+
+
+
+ + + + \ No newline at end of file