任务日志展示优化

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

@ -59,7 +59,7 @@
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-header">
<div class="box-header hide">
<h3 class="box-title"></h3>
</div>
<div class="box-body" >

@ -80,12 +80,14 @@
<th name="id" >id</th>
<th name="jobGroup" >ID</th>
<th name="jobId" >ID</th>
<th name="JobKey" >JobKey</th>
<#--<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>
<th name="executorAddress" ></th>
<th name="glueType" ></th>
<th name="executorParam" ></th>
<th name="handleTime" ></th>
<th name="handleCode" ></th>
<th name="handleMsg" ></th>

@ -91,6 +91,56 @@ $(function() {
{ "data": 'id', "bSortable": false, "visible" : false},
{ "data": 'jobGroup', "visible" : false},
{ "data": 'jobId', "visible" : false},
{
"data": 'JobKey',
"visible" : true,
"render": function ( data, type, row ) {
var jobKey = row.jobGroup + "_" + row.jobId;
return jobKey;
}
},
// { "data": 'executorAddress', "visible" : true},
// {
// "data": 'glueType',
// "visible" : true,
// "render": function ( data, type, row ) {
// if ('GLUE_GROOVY'==row.glueType) {
// return "GLUE模式(Java)";
// } else if ('GLUE_SHELL'==row.glueType) {
// return "GLUE模式(Shell)";
// } else if ('GLUE_PYTHON'==row.glueType) {
// return "GLUE模式(Python)";
// } else if ('BEAN'==row.glueType) {
// return "BEAN模式" + row.executorHandler;
// }
// return row.executorHandler;
// }
// },
// { "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 ) {
@ -110,25 +160,6 @@ $(function() {
return data?'<a class="logTips" href="javascript:;" ><span style="display:none;">'+ data +'</span></a>':"无";
}
},
{ "data": 'executorAddress', "visible" : true},
{
"data": 'glueType',
"visible" : true,
"render": function ( data, type, row ) {
if ('GLUE_GROOVY'==row.glueType) {
return "GLUE模式(Java)";
} else if ('GLUE_SHELL'==row.glueType) {
return "GLUE模式(Shell)";
} else if ('GLUE_PYTHON'==row.glueType) {
return "GLUE模式(Python)";
} else if ('BEAN'==row.glueType) {
return "BEAN模式" + row.executorHandler;
}
return row.executorHandler;
}
},
{ "data": 'executorParam', "visible" : true},
{
"data": 'handleTime',
"render": function ( data, type, row ) {

Loading…
Cancel
Save