Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
X
XXL-JOB
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
靳帅
XXL-JOB
Commits
2540860e
提交
2540860e
authored
1月 08, 2016
作者:
xueli.xue
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
调度日志,弹出框优化
上级
d467d7f2
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
40 行增加
和
1 行删除
+40
-1
JobLogController.java
...rc/main/java/com/xxl/job/controller/JobLogController.java
+10
-0
common.macro.ftl
.../src/main/webapp/WEB-INF/template/common/common.macro.ftl
+29
-0
joblog.index.1.js
xxl-job-admin/src/main/webapp/static/js/joblog.index.1.js
+1
-1
没有找到文件。
xxl-job-admin/src/main/java/com/xxl/job/controller/JobLogController.java
浏览文件 @
2540860e
package
com
.
xxl
.
job
.
controller
;
package
com
.
xxl
.
job
.
controller
;
import
java.text.ParseException
;
import
java.text.ParseException
;
import
java.util.Calendar
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
...
@@ -47,6 +48,15 @@ public class JobLogController {
...
@@ -47,6 +48,15 @@ public class JobLogController {
@RequestMapping
@RequestMapping
public
String
index
(
Model
model
,
String
jobName
,
String
filterTime
)
{
public
String
index
(
Model
model
,
String
jobName
,
String
filterTime
)
{
// 默认filterTime
Calendar
todayz
=
Calendar
.
getInstance
();
todayz
.
set
(
Calendar
.
HOUR_OF_DAY
,
0
);
todayz
.
set
(
Calendar
.
MINUTE
,
0
);
todayz
.
set
(
Calendar
.
SECOND
,
0
);
model
.
addAttribute
(
"triggerTimeStart"
,
todayz
.
getTime
());
model
.
addAttribute
(
"triggerTimeEnd"
,
Calendar
.
getInstance
().
getTime
());
model
.
addAttribute
(
"jobName"
,
jobName
);
model
.
addAttribute
(
"jobName"
,
jobName
);
model
.
addAttribute
(
"filterTime"
,
filterTime
);
model
.
addAttribute
(
"filterTime"
,
filterTime
);
return
"joblog/index"
;
return
"joblog/index"
;
...
...
xxl-job-admin/src/main/webapp/WEB-INF/template/common/common.macro.ftl
浏览文件 @
2540860e
...
@@ -191,6 +191,19 @@
...
@@ -191,6 +191,19 @@
</div>
</div>
</div>
</div>
</div>
</div>
<!-- ComAlertTec.模态框Modal-科技感 -->
<div class="modal fade" id="ComAlertTec" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content-tec">
<div class="modal-body"><div class="alert" style="color:#fff;"></div></div>
<div class="modal-footer">
<div class="text-center" >
<button type="button" class="btn btn-info ok" data-dismiss="modal" >确认</button>
</div>
</div>
</div>
</div>
</div>
<script>
<script>
// 通用提示
// 通用提示
var ComAlert = {
var ComAlert = {
...
@@ -237,5 +250,20 @@
...
@@ -237,5 +250,20 @@
});
});
}
}
};
};
// 提示-科技主题
var ComAlertTec = {
show:function(msg, callback){
// 弹框初始
$('#ComAlertTec .alert').html(msg);
$('#ComAlertTec').modal('show');
$('#ComAlertTec .ok').click(function(){
$('#ComAlertTec').modal('hide');
if(typeof callback == 'function') {
callback();
}
});
}
};
</script>
</script>
</#macro>
</#macro>
\ No newline at end of file
xxl-job-admin/src/main/webapp/static/js/joblog.index.1.js
浏览文件 @
2540860e
...
@@ -77,7 +77,7 @@ $(function() {
...
@@ -77,7 +77,7 @@ $(function() {
// 日志弹框提示
// 日志弹框提示
$
(
'#joblog_list'
).
on
(
'click'
,
'.logTips'
,
function
(){
$
(
'#joblog_list'
).
on
(
'click'
,
'.logTips'
,
function
(){
var
title
=
$
(
this
).
attr
(
'title'
);
var
title
=
$
(
this
).
attr
(
'title'
);
ComAlert
.
show
(
2
,
title
);
ComAlert
Tec
.
show
(
title
);
});
});
// 过滤时间
// 过滤时间
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论