jobLog.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <!DOCTYPE html>
  2. <html lang="zh" xmlns:th="http://www.thymeleaf.org"
  3. xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
  4. <meta charset="utf-8">
  5. <head th:include="include :: header"></head>
  6. <body class="gray-bg">
  7. <div class="container-div">
  8. <div class="row">
  9. <div class="col-sm-12 search-collapse">
  10. <form id="jobLog-form">
  11. <div class="select-list">
  12. <ul>
  13. <li>
  14. <label>任务名称:</label><input type="text" name="jobName"/>
  15. </li>
  16. <li>
  17. <label>方法名称:</label><input type="text" name="methodName"/>
  18. </li>
  19. <li>
  20. <label>执行状态:</label><select name="status" th:with="type=${@dict.getType('sys_common_status')}">
  21. <option value="">所有</option>
  22. <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
  23. </select>
  24. </li>
  25. <li class="select-time">
  26. <label>执行时间: </label>
  27. <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginTime]"/>
  28. <span>-</span>
  29. <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endTime]"/>
  30. </li>
  31. <li>
  32. <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
  33. <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
  34. </li>
  35. </ul>
  36. </div>
  37. </form>
  38. </div>
  39. <div class="btn-group-sm hidden-xs" id="toolbar" role="group">
  40. <a class="btn btn-danger btn-del disabled" onclick="$.operate.removeAll()" shiro:hasPermission="monitor:job:remove">
  41. <i class="fa fa-remove"></i> 删除
  42. </a>
  43. <a class="btn btn-danger" onclick="$.operate.clean()" shiro:hasPermission="monitor:job:remove">
  44. <i class="fa fa-trash"></i> 清空
  45. </a>
  46. <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="monitor:job:export">
  47. <i class="fa fa-download"></i> 导出
  48. </a>
  49. </div>
  50. <div class="col-sm-12 select-table table-striped">
  51. <table id="bootstrap-table" data-mobile-responsive="true"></table>
  52. </div>
  53. </div>
  54. </div>
  55. <div th:include="include :: footer"></div>
  56. <script th:inline="javascript">
  57. var detailFlag = [[${@permission.hasPermi('monitor:job:detail')}]];
  58. var datas = [[${@dict.getType('sys_common_status')}]];
  59. var prefix = ctx + "monitor/jobLog";
  60. $(function() {
  61. var options = {
  62. url: prefix + "/list",
  63. cleanUrl: prefix + "/clean",
  64. detailUrl: prefix + "/detail/{id}",
  65. removeUrl: prefix + "/remove",
  66. exportUrl: prefix + "/export",
  67. sortName: "createTime",
  68. sortOrder: "desc",
  69. modalName: "调度日志",
  70. search: false,
  71. showExport: false,
  72. columns: [{
  73. checkbox: true
  74. },
  75. {
  76. field: 'jobLogId',
  77. title: '日志编号'
  78. },
  79. {
  80. field: 'jobName',
  81. title: '任务名称',
  82. sortable: true
  83. },
  84. {
  85. field: 'jobGroup',
  86. title: '任务组名',
  87. sortable: true
  88. },
  89. {
  90. field: 'methodName',
  91. title: '方法名称'
  92. },
  93. {
  94. field: 'methodParams',
  95. title: '方法参数'
  96. },
  97. {
  98. field: 'jobMessage',
  99. title: '日志信息'
  100. },
  101. {
  102. field: 'status',
  103. title: '状态',
  104. align: 'center',
  105. formatter: function(value, row, index) {
  106. return $.table.selectDictLabel(datas, value);
  107. }
  108. },
  109. {
  110. field: 'createTime',
  111. title: '创建时间',
  112. sortable: true
  113. },
  114. {
  115. title: '操作',
  116. align: 'center',
  117. formatter: function(value, row, index) {
  118. var actions = [];
  119. actions.push('<a class="btn btn-warning btn-xs ' + detailFlag + '" href="#" onclick="$.operate.detail(\'' + row.jobLogId + '\')"><i class="fa fa-search"></i>详细</a>');
  120. return actions.join('');
  121. }
  122. }]
  123. };
  124. $.table.init(options);
  125. });
  126. </script>
  127. </body>
  128. </html>