啥也不說了,上段代碼吧
table.render({
elem: '#check-data-list'
, height: 480
, title: '監測任務列表信息'
, limit: Number.MAX_VALUE // 數據表格默認全部顯示
, cols: [[
{field: 'id', title: '序號', width: 60, style: 'font-size: 12px; color: #666'},
{field: 'modelNum', title: '任務編號', style: 'font-size: 12px; color: #666'},
{field: 'monitoringTime', title: '監測時間', style: 'font-size: 12px; color: #666'},
{field: 'taskStatus', title: '任務狀態', templet: "#status", style: 'font-size: 12px; color: #666'},
{field: 'overTime', title: '結束時間', templet: "#over", style: 'font-size: 12px; color: #666'},
{
field: 'report',
title: '報告',
event: 'viewReport',
width: 60,
templet: "#reportID",
style: 'font-size: 12px; color: #3A87F3; cursor:pointer'
}
]]
, cellMaxWidth: 100
, parseData: function (res) {
return res;
}
, data: data
, id: 'check-data-list'
});