| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <!DOCTYPE html>
- <html xmlns:th="http://www.thymeleaf.org">
- <head th:replace="/common/template :: header(~{::title},~{::link},~{::style})"></head>
- <body class="timo-layout-page">
- <div class="layui-card">
- <div class="layui-card-body">
- <div class="layui-row timo-card-screen put-row">
- <div class="pull-right screen-btn-group">
- <div class="btn-group-right">
- <button class="layui-btn open-popup" data-title="添加任务" data-size="640,480"
- th:attr="data-url=@{${addJobUrl}}">
- <i class="fa fa-plus"></i> 添加
- </button>
- </div>
- </div>
- </div>
- <div class="timo-table-wrap">
- <table class="layui-table timo-table">
- <thead>
- <tr>
- <th class="sortable" data-field="jobId">任务 ID</th>
- <th class="sortable" data-field="jobClassName">任务名</th>
- <th class="sortable" data-field="cronExp">CRON 表达式</th>
- <th class="sortable" data-field="enable">是否启用</th>
- <th>操作</th>
- </tr>
- </thead>
- <tbody>
- <tr th:each="item:${list}">
- <td th:text="${item.jobId}">任务 ID</td>
- <td th:text="${item.jobClassName}">任务名</td>
- <td th:text="${item.cronExp}">CRON 表达式</td>
- <td th:text="${item.enable}">是否启用</td>
- <td>
- <a class="open-popup" data-title="编辑任务"
- th:attr="data-url=@{${editJobUrl}+'/'+${item.jobId}}"
- data-size="640,480" href="#">编辑</a>
- <a class="ajax-delete" th:attr="data-msg='确定要删除 '+ ${item.jobId} + '?'"
- th:href="@{${jobDeleteApi}+'/' + ${item.jobId}}">删除</a>
- <a class="ajax-post"
- th:href="@{${jobStatusApi}+'/'+${item.jobId}+'/1'}">启用</a>
- <a class="ajax-post"
- th:href="@{${jobStatusApi}+'/'+${item.jobId}+'/0'}">禁用</a>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- <script th:replace="/common/template :: script"></script>
- <script type="text/javascript">
- </script>
- </body>
- </html>
|