diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TdTrainController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TdTrainController.java index cc13ad0..2cc85fd 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TdTrainController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TdTrainController.java @@ -1,6 +1,8 @@ package com.ruoyi.web.controller.system; import java.util.List; + +import com.ruoyi.common.core.domain.entity.SysUser; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; @@ -129,11 +131,13 @@ public class TdTrainController extends BaseController /** * 培训记录详情 */ - @RequiresPermissions("monitor:train:detail") - @GetMapping("/detail/{operId}") - public String detail(@PathVariable("id") Long operId, ModelMap mmap) + @RequiresPermissions("system:train:detail") + @GetMapping("/detail/{ID}") + public String detail(@PathVariable("ID") Long ID, ModelMap mmap) { - mmap.put("train", tdTrainService.selectTdTrainByID(operId)); + mmap.put("tdTrain", tdTrainService.selectTdTrainByID(ID)); + SysUser user = getSysUser(); + mmap.put("user", user); return prefix + "/detail"; } @@ -145,7 +149,9 @@ public class TdTrainController extends BaseController public String examine(@PathVariable("ID") Long ID, ModelMap mmap) { TdTrain tdTrain = tdTrainService.selectTdTrainByID(ID); + SysUser user = getSysUser(); mmap.put("tdTrain", tdTrain); + mmap.put("user", user); return prefix + "/examine"; } diff --git a/ruoyi-admin/src/main/resources/templates/system/train/detail.html b/ruoyi-admin/src/main/resources/templates/system/train/detail.html index c32885d..8abd419 100644 --- a/ruoyi-admin/src/main/resources/templates/system/train/detail.html +++ b/ruoyi-admin/src/main/resources/templates/system/train/detail.html @@ -7,10 +7,94 @@
-
+ +
- -
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
@@ -19,19 +103,35 @@ diff --git a/ruoyi-admin/src/main/resources/templates/system/train/examine.html b/ruoyi-admin/src/main/resources/templates/system/train/examine.html index 3c27f0c..8cfe53f 100644 --- a/ruoyi-admin/src/main/resources/templates/system/train/examine.html +++ b/ruoyi-admin/src/main/resources/templates/system/train/examine.html @@ -2,63 +2,64 @@ +
-
- + +
- +
- +
- +
- +
- +
- +
- +
- +
@@ -66,69 +67,63 @@
- +
- +
- +
- + +
- -
-
-
- -
-
- - -
-
-
-
- -
- +
- +
- + + \ No newline at end of file