定时任务支持在线生成cron表达式
This commit is contained in:
1172
ruoyi-quartz/src/main/resources/templates/monitor/job/cron.html
Normal file
1172
ruoyi-quartz/src/main/resources/templates/monitor/job/cron.html
Normal file
File diff suppressed because it is too large
Load Diff
@@ -47,6 +47,9 @@
|
||||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="monitor:job:export">
|
||||
<i class="fa fa-download"></i> 导出
|
||||
</a>
|
||||
<a class="btn btn-primary" onclick="javascript:cron()">
|
||||
<i class="fa fa-code"></i> 生成表达式
|
||||
</a>
|
||||
<a class="btn btn-info" onclick="javascript:jobLog()" shiro:hasPermission="monitor:job:detail">
|
||||
<i class="fa fa-list"></i> 日志
|
||||
</a>
|
||||
@@ -176,6 +179,19 @@
|
||||
}
|
||||
$.modal.openTab("调度日志", url);
|
||||
}
|
||||
|
||||
/* cron表达式生成 */
|
||||
function cron() {
|
||||
var url = prefix + '/cron';
|
||||
var height = $(window).height() - 50;
|
||||
top.layer.open({
|
||||
title: "Cron表达式生成器",
|
||||
type: 2,
|
||||
area: ['800px', height + "px" ], //宽高
|
||||
shadeClose: true,
|
||||
content: url
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user