console.js.history.job_event_trace_history.js Maven / Gradle / Ivy
The newest version!
$(function() {
$("[data-mask]").inputmask();
$(".toolbar input").bind("keypress", function(event) {
if("13" == event.keyCode) {
$("#job-exec-details-table").bootstrapTable("refresh", {silent: true});
}
});
$("#job-exec-details-table").on("all.bs.table", function() {
doLocale();
});
});
function queryParams(params) {
var sortName = "success" === params.sortName ? "isSuccess" : params.sortName;
return {
per_page: params.pageSize,
page: params.pageNumber,
q: params.searchText,
sort: sortName,
order: params.sortOrder,
jobName: $("#job-name").val(),
startTime: $("#start-time").val(),
endTime: $("#end-time").val(),
ip: $("#ip").val(),
isSuccess: $('input[name = "isSuccess"]:checked ').val()
};
}
function successFormatter(value) {
switch(value)
{
case true:
return "";
case false:
return "";
default:
return "";
}
}
function splitFormatter(value) {
var maxLength = 50;
var replacement = "...";
if(null != value && value.length > maxLength) {
var vauleDetail = value.substring(0 , maxLength - replacement.length) + replacement;
value = value.replace(/\r\n/g,"
").replace(/\n/g,"
").replace(/\'/g, "\\'");
return '' + vauleDetail + '';
}
return value;
}