您好,登錄后才能下訂單哦!
啥也不說了,上段代碼吧
table.render({ elem: '#check-data-list' , height: 480 , title: '監(jiān)測(cè)任務(wù)列表信息' , limit: Number.MAX_VALUE // 數(shù)據(jù)表格默認(rèn)全部顯示 , cols: [[ {field: 'id', title: '序號(hào)', width: 60, style: 'font-size: 12px; color: #666'}, {field: 'modelNum', title: '任務(wù)編號(hào)', style: 'font-size: 12px; color: #666'}, {field: 'monitoringTime', title: '監(jiān)測(cè)時(shí)間', style: 'font-size: 12px; color: #666'}, {field: 'taskStatus', title: '任務(wù)狀態(tài)', templet: "#status", style: 'font-size: 12px; color: #666'}, {field: 'overTime', title: '結(jié)束時(shí)間', templet: "#over", style: 'font-size: 12px; color: #666'}, { field: 'report', title: '報(bào)告', 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' });
以上這篇Layui實(shí)現(xiàn)數(shù)據(jù)表格默認(rèn)全部顯示(不要分頁(yè))就是小編分享給大家的全部?jī)?nèi)容了,希望能給大家一個(gè)參考,也希望大家多多支持億速云。
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。