jobLog.html 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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 removeFlag = [[${@permission.hasPermi('monitor:job:remove')}]];
  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. removeUrl: prefix + "/remove",
  65. exportUrl: prefix + "/export",
  66. sortName: "createTime",
  67. sortOrder: "desc",
  68. modalName: "调度日志",
  69. search: false,
  70. showExport: false,
  71. columns: [{
  72. checkbox: true
  73. },
  74. {
  75. field: 'jobLogId',
  76. title: '日志编号'
  77. },
  78. {
  79. field: 'jobName',
  80. title: '任务名称',
  81. sortable: true
  82. },
  83. {
  84. field: 'jobGroup',
  85. title: '任务组名',
  86. sortable: true
  87. },
  88. {
  89. field: 'methodName',
  90. title: '方法名称'
  91. },
  92. {
  93. field: 'methodParams',
  94. title: '方法参数'
  95. },
  96. {
  97. field: 'jobMessage',
  98. title: '日志信息'
  99. },
  100. {
  101. field: 'status',
  102. title: '状态',
  103. align: 'center',
  104. formatter: function(value, row, index) {
  105. return $.table.selectDictLabel(datas, value);
  106. }
  107. },
  108. {
  109. field: 'createTime',
  110. title: '创建时间',
  111. sortable: true
  112. },
  113. {
  114. title: '操作',
  115. align: 'center',
  116. formatter: function(value, row, index) {
  117. var actions = [];
  118. actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="#" onclick="$.operate.remove(\'' + row.jobLogId + '\')"><i class="fa fa-remove"></i>删除</a>');
  119. return actions.join('');
  120. }
  121. }]
  122. };
  123. $.table.init(options);
  124. });
  125. </script>
  126. </body>
  127. </html>