diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TdLeaveController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TdLeaveController.java index e090b5d..a70cebf 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TdLeaveController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TdLeaveController.java @@ -157,7 +157,7 @@ public class TdLeaveController extends BaseController public String examine(@PathVariable("id") Long id,ModelMap mmap){ TdLeave leaveuser = tdLeaveService.selectTdLeaveById(id); mmap.put("leaveuser", leaveuser); - mmap.put("sysuser",getSysUser().getLoginName()); + mmap.put("sysuser",getSysUser()); return prefix + "/leaveexamine"; } diff --git a/ruoyi-admin/src/main/resources/templates/system/leave/leave.html b/ruoyi-admin/src/main/resources/templates/system/leave/leave.html index 93e17c8..8c96c33 100644 --- a/ruoyi-admin/src/main/resources/templates/system/leave/leave.html +++ b/ruoyi-admin/src/main/resources/templates/system/leave/leave.html @@ -67,7 +67,7 @@ var downloadFlag = [[${@permission.hasPermi('system:leave:examine')}]]; var examinestateDatas = [[${@dict.getType('sys_examine_state')}]]; var leavestateData = [[${@dict.getType('sys_user_leave')}]]; - var workstateData = [[${@dict.getType('sys_examine_state')}]]; + var workstateData = [[${@dict.getType('sys_user_work')}]]; var prefix = ctx + "system/leave"; $(function() { @@ -92,7 +92,7 @@ visible: false }, { - field: 'usernName', + field: 'userName', title: '提交人' }, { @@ -146,8 +146,8 @@ formatter: function(value, row, index) { var actions = []; actions.push('编辑 '); - actions.push('审核 '); - actions.push('打印 '); + actions.push('审核 '); + actions.push('打印 '); actions.push('删除'); return actions.join(''); } @@ -159,7 +159,7 @@ var url ='/system/leave/examine/' + id; $.modal.open("涉密人员离职审核", url); } - function auditingPrint(id){ + function auditingPrint(id,userId){ var url ='/system/leave/print/' + id; $.modal.openTab("打印", url); } diff --git a/ruoyi-admin/src/main/resources/templates/system/leave/leaveexamine.html b/ruoyi-admin/src/main/resources/templates/system/leave/leaveexamine.html index c7eaf3b..a52cd11 100644 --- a/ruoyi-admin/src/main/resources/templates/system/leave/leaveexamine.html +++ b/ruoyi-admin/src/main/resources/templates/system/leave/leaveexamine.html @@ -7,14 +7,16 @@