$("#jqGrid").jqGrid({
url: baseURL + 'sys/scheduleLog/list',
datatype: "json",
colModel: [
{ label: '日志ID', name: 'logId', width: 50, key: true },
{ label: '任务ID', name: 'jobId', width: 50},
{ label: 'bean名称', name: 'beanName', width: 60 },
{ label: '方法名称', name: 'methodName', width: 60 },
{ label: '参数', name: 'params', width: 60 },
{ label: '状态', name: 'status', width: 50, formatter: function(value, options, row){
return value === 0 ?
'<span class="label label-success">成功</span>' :
'<span class="label label-danger pointer" onclick="vm.showError('+row.logId+')">失败</span>';
}},
{ label: '耗时(单位:毫秒)', name: 'times', width: 70 },
{ label: '执行时间', name: 'createTime', width: 80 }
],
viewrecords: true,
height: 385,
rowNum: 10,
rowList : [10,30,50,100,200],
rownumbers: true,
rownumWidth: 25,
autowidth:true,
multiselect: false,
pager: "#jqGridPager",
jsonReader : {
root: "page.list",
page: "page.currPage",
total: "page.totalPage",
records: "page.totalCount"
},
prmNames : {
page:"page",
rows:"limit",
order: "order"
},
gridComplete:function(){
//隐藏grid底部滚动条
$("#jqGrid").closest(".ui-jqgrid-bdiv").css({ "overflow-x" : "hidden" });
}
});
相关文章
- 02-28跟着医生学kivy:kivy的基础工作,配置稳定正确的编译环境
- 02-281.通用文件模型及VFS结构-基础
- 02-28【Rdis 基础内容+关键字 01】
- 02-28Kaldi的自然梯度理论基础
- 02-28python基础教程100例题: 19&20
- 02-28量子力学基础-2
- 02-28【b站 机器学习基础】三、批次batch与动量momentum
- 02-28量子力学基础-2
- 02-28实习期间学习基础学习整理
- 02-28Go语言基础 - 切片(slice)