Skip to content

Commit

Permalink
任务日志展示优化
Browse files Browse the repository at this point in the history
  • Loading branch information
xuxueli committed Jul 14, 2017
1 parent 9330dcb commit be3fc36
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@
<#--<th name="executorAddress" >执行器地址</th>
<th name="glueType" >运行模式</th>
<th name="executorParam" >任务参数</th>-->
<th name="JobInfo" >任务信息</th>
<th name="triggerTime" >调度时间</th>
<th name="triggerCode" >调度结果</th>
<th name="triggerMsg" >调度备注</th>
Expand Down
43 changes: 18 additions & 25 deletions xxl-job-admin/src/main/webapp/static/js/joblog.index.1.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,24 @@ $(function() {
"visible" : true,
"render": function ( data, type, row ) {
var jobKey = row.jobGroup + "_" + row.jobId;
return jobKey;

var glueTypeTitle = row.glueType;
if ('GLUE_GROOVY'==row.glueType) {
glueTypeTitle = "GLUE模式(Java)";
} else if ('GLUE_SHELL'==row.glueType) {
glueTypeTitle = "GLUE模式(Shell)";
} else if ('GLUE_PYTHON'==row.glueType) {
glueTypeTitle = "GLUE模式(Python)";
} else if ('BEAN'==row.glueType) {
glueTypeTitle = "BEAN模式:" + row.executorHandler;
}

var temp = '';
temp += '执行器地址:' + row.executorAddress;
temp += '<br>运行模式:' + glueTypeTitle;
temp += '<br>任务参数:' + row.executorParam;

return '<a class="logTips" href="javascript:;" >'+ jobKey +'<span style="display:none;">'+ temp +'</span></a>';
}
},
// { "data": 'executorAddress', "visible" : true},
Expand All @@ -117,30 +134,6 @@ $(function() {
// }
// },
// { "data": 'executorParam', "visible" : true},
{
"data": 'JobInfo',
"visible" : true,
"render": function ( data, type, row ) {

var glueTypeTitle = row.glueType;
if ('GLUE_GROOVY'==row.glueType) {
glueTypeTitle = "GLUE模式(Java)";
} else if ('GLUE_SHELL'==row.glueType) {
glueTypeTitle = "GLUE模式(Shell)";
} else if ('GLUE_PYTHON'==row.glueType) {
glueTypeTitle = "GLUE模式(Python)";
} else if ('BEAN'==row.glueType) {
glueTypeTitle = "BEAN模式:" + row.executorHandler;
}

var temp = '';
temp += '执行器地址:' + row.executorAddress;
temp += '<br>运行模式:' + glueTypeTitle;
temp += '<br>任务参数:' + row.executorParam;

return temp;
}
},
{
"data": 'triggerTime',
"render": function ( data, type, row ) {
Expand Down

0 comments on commit be3fc36

Please sign in to comment.