detail.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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.requestMethod} + ' - ' + ${operLog.operUrl} + ' ' + '(' + '耗时' + ${operLog.costTime} + '毫秒)'">
  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"><pre id="jsonResult"></pre></div>
  37. </div>
  38. <div class="form-group">
  39. <label class="col-sm-2 control-label">状态:</label>
  40. <div class="form-control-static" th:class="${operLog.status == 0 ? 'label label-primary' : 'label label-danger'}" th:text="${operLog.status == 0 ? '正常' : '异常'}">
  41. </div>
  42. </div>
  43. <div class="form-group" th:style="'display:' + ${operLog.status == 0 ? 'none' : 'block'}">
  44. <label class="col-sm-2 control-label">异常信息:</label>
  45. <div class="form-control-static" th:text="${operLog.errorMsg}">
  46. </div>
  47. </div>
  48. </form>
  49. </div>
  50. <th:block th:include="include :: footer" />
  51. <th:block th:include="include :: jsonview-js" />
  52. <script th:inline="javascript">
  53. $(function() {
  54. var operParam = [[${operLog.operParam}]];
  55. if ($.common.isNotEmpty(operParam) && operParam.length < 2000) {
  56. $("#operParam").JSONView(operParam);
  57. } else {
  58. $("#operParam").text(operParam);
  59. }
  60. var jsonResult = [[${operLog.jsonResult}]];
  61. if ($.common.isNotEmpty(jsonResult) && jsonResult.length < 2000) {
  62. $("#jsonResult").JSONView(jsonResult);
  63. } else {
  64. $("#jsonResult").text(jsonResult);
  65. }
  66. });
  67. </script>
  68. </body>
  69. </html>