|
|
@@ -68,6 +68,16 @@
|
|
|
{{# } }}
|
|
|
</script>
|
|
|
|
|
|
+ <script type="text/html" id="lastStatusTpl">
|
|
|
+ {{# if(d.lastStatus === '1') { }}
|
|
|
+ <span class="layui-badge layui-bg-green">成功</span>
|
|
|
+ {{# } else if(d.lastStatus === '0') { }}
|
|
|
+ <span class="layui-badge layui-bg-red">失败</span>
|
|
|
+ {{# } else { }}
|
|
|
+ <span class="layui-badge layui-bg-gray">-</span>
|
|
|
+ {{# } }}
|
|
|
+ </script>
|
|
|
+
|
|
|
<script src="../../lib/jquery.min.js"></script>
|
|
|
<script src="../../lib/layui/layui.js"></script>
|
|
|
<script src="../../js/config.js"></script>
|
|
|
@@ -83,13 +93,14 @@
|
|
|
url: Config.api.timersJob.page,
|
|
|
page: { curr: 1, limit: 10, limits: [10, 20, 30, 50] },
|
|
|
cols: [[
|
|
|
- { field: 'timerName', title: '任务名称', width: 180 },
|
|
|
- { field: 'actionClass', title: '执行类', width: 250 },
|
|
|
- { field: 'cron', title: 'CRON表达式', width: 150 },
|
|
|
- { field: 'jobStatus', title: '状态', width: 100, templet: '#statusTpl' },
|
|
|
- { field: 'lastTime', title: '上次执行', width: 170, templet: function(d) { return Common.formatDate(d.lastTime); } },
|
|
|
- { field: 'createTime', title: '创建时间', width: 170, templet: function(d) { return Common.formatDate(d.createTime); } },
|
|
|
- { field: 'remark', title: '备注' },
|
|
|
+ { field: 'timerName', title: '任务名称', width: 150 },
|
|
|
+ { field: 'actionClass', title: '执行类', width: 220 },
|
|
|
+ { field: 'cron', title: 'CRON表达式', width: 130 },
|
|
|
+ { field: 'jobStatus', title: '任务状态', width: 90, templet: '#statusTpl' },
|
|
|
+ { field: 'lastTime', title: '执行时间', width: 160, templet: function(d) { return Common.formatDate(d.lastTime); } },
|
|
|
+ { field: 'lastStatus', title: '执行状态', width: 120, templet: '#lastStatusTpl' },
|
|
|
+ { field: 'lastMsg', title: '执行消息', minWidth: 150 },
|
|
|
+ { field: 'remark', title: '备注', minWidth: 120 },
|
|
|
{ fixed: 'right', title: '操作', width: 250, align: 'center', toolbar: '#toolbar' }
|
|
|
]]
|
|
|
});
|