Browse Source

调度日志弹框显示

xueli.xue 9 years ago
parent
commit
d467d7f2b4
1 changed files with 17 additions and 3 deletions
  1. 17 3
      xxl-job-admin/src/main/webapp/static/js/joblog.index.1.js

+ 17 - 3
xxl-job-admin/src/main/webapp/static/js/joblog.index.1.js

@@ -12,7 +12,7 @@ $(function() {
                 d.jobName = $('#jobName').val()
             }
 	    },
-	    "scrollX": true,
+	    //"scrollX": true,	// X轴滚动条,取消自适应
 	    "columns": [
 	                { "data": 'id', "bSortable": false, "visible" : false},
 	                { "data": 'jobName', "bSortable": false},
@@ -27,7 +27,11 @@ $(function() {
 	                	}
 	                },
 	                { "data": 'triggerStatus', "bSortable": false},
-	                { "data": 'triggerMsg',"bSortable": false},
+	                { "data": 'triggerMsg',"bSortable": false,
+	                	"render": function ( data, type, row ) {
+	                		return data?'<a class="logTips" title="'+ data +'">调度日志</a>':"无";
+	                	}
+	                },
 	                { 
 	                	"data": 'handleTime',
 	                	"bSortable": false,
@@ -36,7 +40,11 @@ $(function() {
 	                	}
 	                },
 	                { "data": 'handleStatus',"bSortable": false},
-	                { "data": 'handleMsg' , "bSortable": false}
+	                { "data": 'handleMsg' , "bSortable": false,
+	                	"render": function ( data, type, row ) {
+	                		return data?'<a class="logTips" title="'+ data +'">执行日志</a>':"无";
+	                	}
+	                }
 	            ],
 	    "searching": false,
 	    "ordering": true,
@@ -66,6 +74,12 @@ $(function() {
 		}
 	});
 	
+	// 日志弹框提示
+	$('#joblog_list').on('click', '.logTips', function(){
+		var title = $(this).attr('title');
+		ComAlert.show(2, title);
+	});
+	
 	// 过滤时间
 	$('#filterTime').daterangepicker({
 		timePicker: true, 			//是否显示小时和分钟