任务日志展示优化

v1.8.2
xuxueli 7 years ago
parent 9330dcb020
commit be3fc368cb

@ -84,7 +84,6 @@
<#--<th name="executorAddress" ></th> <#--<th name="executorAddress" ></th>
<th name="glueType" ></th> <th name="glueType" ></th>
<th name="executorParam" ></th>--> <th name="executorParam" ></th>-->
<th name="JobInfo" ></th>
<th name="triggerTime" ></th> <th name="triggerTime" ></th>
<th name="triggerCode" ></th> <th name="triggerCode" ></th>
<th name="triggerMsg" ></th> <th name="triggerMsg" ></th>

@ -96,7 +96,24 @@ $(function() {
"visible" : true, "visible" : true,
"render": function ( data, type, row ) { "render": function ( data, type, row ) {
var jobKey = row.jobGroup + "_" + row.jobId; 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}, // { "data": 'executorAddress', "visible" : true},
@ -117,30 +134,6 @@ $(function() {
// } // }
// }, // },
// { "data": 'executorParam', "visible" : true}, // { "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', "data": 'triggerTime',
"render": function ( data, type, row ) { "render": function ( data, type, row ) {

Loading…
Cancel
Save