monitorjobs.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!DOCTYPE html>
  2. <html xmlns:th="http://www.thymeleaf.org">
  3. <head th:replace="/common/template :: header(~{::title},~{::link},~{::style})"></head>
  4. <body class="timo-layout-page">
  5. <div class="layui-card">
  6. <div class="layui-card-body">
  7. <div class="layui-row timo-card-screen put-row">
  8. <div class="pull-right screen-btn-group">
  9. <div class="btn-group-right">
  10. <button class="layui-btn open-popup" data-title="添加任务" data-size="640,480"
  11. th:attr="data-url=@{${addJobUrl}}">
  12. <i class="fa fa-plus"></i> 添加
  13. </button>
  14. </div>
  15. </div>
  16. </div>
  17. <div class="timo-table-wrap">
  18. <table class="layui-table timo-table">
  19. <thead>
  20. <tr>
  21. <th class="sortable" data-field="jobId">任务 ID</th>
  22. <th class="sortable" data-field="jobClassName">任务名</th>
  23. <th class="sortable" data-field="cronExp">CRON 表达式</th>
  24. <th class="sortable" data-field="enable">是否启用</th>
  25. <th>操作</th>
  26. </tr>
  27. </thead>
  28. <tbody>
  29. <tr th:each="item:${list}">
  30. <td th:text="${item.jobId}">任务 ID</td>
  31. <td th:text="${item.jobClassName}">任务名</td>
  32. <td th:text="${item.cronExp}">CRON 表达式</td>
  33. <td th:text="${item.enable}">是否启用</td>
  34. <td>
  35. <a class="open-popup" data-title="编辑任务"
  36. th:attr="data-url=@{${editJobUrl}+'/'+${item.jobId}}"
  37. data-size="640,480" href="#">编辑</a>
  38. <a class="ajax-delete" th:attr="data-msg='确定要删除 '+ ${item.jobId} + '?'"
  39. th:href="@{${jobDeleteApi}+'/' + ${item.jobId}}">删除</a>
  40. <a class="ajax-post"
  41. th:href="@{${jobStatusApi}+'/'+${item.jobId}+'/1'}">启用</a>
  42. <a class="ajax-post"
  43. th:href="@{${jobStatusApi}+'/'+${item.jobId}+'/0'}">禁用</a>
  44. </td>
  45. </tr>
  46. </tbody>
  47. </table>
  48. </div>
  49. </div>
  50. </div>
  51. <script th:replace="/common/template :: script"></script>
  52. <script type="text/javascript">
  53. </script>
  54. </body>
  55. </html>