table.render({
elem: '#message',
url:'/messages/Limit',
method: 'POST',
contentType: 'application/json',
height:'full-130',
title: '信息表',
request: {
pageName: 'pageNumber',
limitName: 'pageSize'
},
cols: [[
{field:'extend1Msg',title:'扩展字段1',align: 'center'},
{field:'extend2Msg',title:'扩展字段2',templet:"#upStatus",align: 'center'},
{fixed: 'right', title: '操作', toolbar: '#barInfo', width:130, align: 'center'}
]],
done: function (res, curr, count) {
$('.layui-table .layui-table-cell > span').css({'font-weight': 'bold'});//表头字体样式
/*$('th').css({'background-color': '#5792c6', 'color': '#fff','font-weight':'bold'}) 表头的样式 */
$('th').hide();//表头隐藏的样式
$('.layui-table-page').css('margin-top','40px');//页码部分的高度调整
},
id: 'messageReload',
page: true
}); |