From 27f1ee8047cfeb763176a1349096482993a07a7c Mon Sep 17 00:00:00 2001 From: wangxy <1356089412@qq.com> Date: Tue, 2 Jul 2024 10:46:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E8=AF=95=E9=A2=98=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/controller/exam/QuController.java | 8 +- .../templates/system/elExam/qu/qu.html | 97 +++++++++++++++++++ 2 files changed, 101 insertions(+), 4 deletions(-) create mode 100644 ruoyi-admin/src/main/resources/templates/system/elExam/qu/qu.html diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/exam/QuController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/exam/QuController.java index d1939ed..4f5abf4 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/exam/QuController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/exam/QuController.java @@ -53,7 +53,7 @@ public class QuController extends BaseController { @ApiOperation("试题") - //@RequiresPermissions("system:qu:list") + @RequiresPermissions("system:qu:list") @PostMapping("/list") @ResponseBody public TableDataInfo list(QuQueryReqDTO qu) { @@ -73,7 +73,7 @@ public class QuController extends BaseController { @ApiOperation("新增") - //@RequiresPermissions("system:qu:add") + @RequiresPermissions("system:qu:add") @Log(title = "试题", businessType = BusinessType.INSERT) @PostMapping("/add") @ResponseBody @@ -92,7 +92,7 @@ public class QuController extends BaseController { } @ApiOperation("试题修改") - //@RequiresPermissions("system:qu:edit") + @RequiresPermissions("system:qu:edit") @Log(title = "试题", businessType = BusinessType.UPDATE) @PostMapping("/edit") @ResponseBody @@ -102,7 +102,7 @@ public class QuController extends BaseController { @ApiOperation("删除") - //@RequiresPermissions("system:qu:remove") + @RequiresPermissions("system:qu:remove") @Log(title = "题库", businessType = BusinessType.DELETE) @PostMapping("/remove") @ResponseBody diff --git a/ruoyi-admin/src/main/resources/templates/system/elExam/qu/qu.html b/ruoyi-admin/src/main/resources/templates/system/elExam/qu/qu.html new file mode 100644 index 0000000..9491996 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/elExam/qu/qu.html @@ -0,0 +1,97 @@ + + +
+