detail.html 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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.requestMethod}">
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label class="col-sm-2 control-label">操作方法:</label>
  32. <div class="form-control-static" th:text="${operLog.method}">
  33. </div>
  34. </div>
  35. <div class="form-group">
  36. <label class="col-sm-2 control-label">请求参数:</label>
  37. <div class="form-control-static"><pre id="operParam"></pre></div>
  38. </div>
  39. <div class="form-group">
  40. <label class="col-sm-2 control-label">返回参数:</label>
  41. <div class="form-control-static"><pre id="jsonResult"></pre></div>
  42. </div>
  43. <div class="form-group">
  44. <label class="col-sm-2 control-label">状态:</label>
  45. <div class="form-control-static" th:class="${operLog.status == 0 ? 'label label-primary' : 'label label-danger'}" th:text="${operLog.status == 0 ? '正常' : '异常'}">
  46. </div>
  47. </div>
  48. <div class="form-group" th:style="'display:' + ${operLog.status == 0 ? 'none' : 'block'}">
  49. <label class="col-sm-2 control-label">异常信息:</label>
  50. <div class="form-control-static" th:text="${operLog.errorMsg}">
  51. </div>
  52. </div>
  53. </form>
  54. </div>
  55. <th:block th:include="include :: footer" />
  56. <th:block th:include="include :: jsonview-js" />
  57. <script th:inline="javascript">
  58. $(function() {
  59. var operParam = [[${operLog.operParam}]];
  60. if ($.common.isNotEmpty(operParam) && operParam.length < 2000) {
  61. $("#operParam").JSONView(operParam);
  62. } else {
  63. $("#operParam").text(operParam);
  64. }
  65. var jsonResult = [[${operLog.jsonResult}]];
  66. if ($.common.isNotEmpty(jsonResult) && jsonResult.length < 2000) {
  67. $("#jsonResult").JSONView(jsonResult);
  68. } else {
  69. $("#jsonResult").text(jsonResult);
  70. }
  71. });
  72. </script>
  73. </body>
  74. </html>