detail.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!DOCTYPE html>
  2. <html lang="zh" xmlns:th="http://www.thymeleaf.org" >
  3. <head>
  4. <th:block th:include="include :: header('操作日志详细')" />
  5. <th:block th:include="include :: jsonview-css" />
  6. </head>
  7. <body class="white-bg">
  8. <div class="wrapper wrapper-content animated fadeInRight ibox-content">
  9. <form class="form-horizontal m-t" id="signupForm">
  10. <div class="form-group">
  11. <label class="col-sm-2 control-label">操作模块:</label>
  12. <div class="form-control-static" th:text="${operLog.title} + ' / ' + ${@dict.getLabel('sys_oper_type',operLog.businessType)}">
  13. </div>
  14. </div>
  15. <div class="form-group">
  16. <label class="col-sm-2 control-label">登录信息:</label>
  17. <div class="form-control-static" th:text="${operLog.operName} + ' / ' + ${operLog.deptName} + ' / ' + ${operLog.operIp}+ ' / ' + ${operLog.operLocation}">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="col-sm-2 control-label">请求地址:</label>
  22. <div class="form-control-static" th:text="${operLog.operUrl}">
  23. </div>
  24. </div>
  25. <div class="form-group">
  26. <label class="col-sm-2 control-label">操作方法:</label>
  27. <div class="form-control-static" th:text="${operLog.method}">
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label class="col-sm-2 control-label">请求参数:</label>
  32. <div class="form-control-static"><pre id="operParam"></pre></div>
  33. </div>
  34. <div class="form-group">
  35. <label class="col-sm-2 control-label">状态:</label>
  36. <div class="form-control-static" th:class="${operLog.status == 0 ? 'label label-primary' : 'label label-danger'}" th:text="${operLog.status == 0 ? '正常' : '异常'}">
  37. </div>
  38. </div>
  39. <div class="form-group" th:style="'display:' + ${operLog.status == 0 ? 'none' : 'block'}">
  40. <label class="col-sm-2 control-label">异常信息:</label>
  41. <div class="form-control-static" th:text="${operLog.errorMsg}">
  42. </div>
  43. </div>
  44. </form>
  45. </div>
  46. <th:block th:include="include :: footer" />
  47. <th:block th:include="include :: jsonview-js" />
  48. <script th:inline="javascript">
  49. $(function() {
  50. var json = [[${operLog.operParam}]];
  51. if ($.common.isNotEmpty(json) && json.length < 2000) {
  52. $("#operParam").JSONView(json);
  53. } else {
  54. $("#operParam").text(json);
  55. }
  56. });
  57. </script>
  58. </body>
  59. </html>