调度日志,弹出框优化

v1.3
xueli.xue 9 years ago
parent d467d7f2b4
commit 2540860e20

@ -1,6 +1,7 @@
package com.xxl.job.controller;
import java.text.ParseException;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
@ -47,6 +48,15 @@ public class JobLogController {
@RequestMapping
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("filterTime", filterTime);
return "joblog/index";

@ -191,6 +191,19 @@
</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>
// 通用提示
var ComAlert = {
@ -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>
</#macro>

@ -77,7 +77,7 @@ $(function() {
// 日志弹框提示
$('#joblog_list').on('click', '.logTips', function(){
var title = $(this).attr('title');
ComAlert.show(2, title);
ComAlertTec.show(title);
});
// 过滤时间

Loading…
Cancel
Save