1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
| var oTable = $('#chargeTbody').DataTable({ "ajax":{ "url":"${ctx}/ReportManager/getChargeItem1", "type":"post", "data":function(d){ var param = {}; param.draw = d.draw; // param.start = d.start; // param.length = d.length; param.physicalNum=physicalNum; return param; } }, "serverSide": true, "paging": false, "lengthChange": true, "searching": false, "ordering": false, "info": false, "autoWidth": true, "pagingType": "full_numbers", "stateSave": false, "destroy":true, "columns": [
{ "data": "bmmc00" }, { "data": "sfsf00"
}, { "data": "sfcj00" }, { "data": "qj0000" }, { "data": "jcbz00" }, { "data": "kssh00" }, { "data": "sqxmmc"}, { "data": "tpdy00"}
], "columnDefs": [ { "targets": 1,//最后一列 "data": "null",// render: function(data, type, row, meta) { return repalceNum(data); } }, { "targets": 2,//最后一列 "data": "null",// render: function(data, type, row, meta) { return repalceNum(data); } }, { "targets": 3,//最后一列 "data": "null",// render: function(data, type, row, meta) { return repalceNum(data); } }, { "targets": 4,//最后一列 "data": "null",// render: function(data, type, row, meta) { return repalceNum(data); } }, { "targets": 5,//最后一列 "data": "null",// render: function(data, type, row, meta) { return repalceNum(data); } }, { "targets": 7,//最后一列 "data": "null",// render: function(data, type, row, meta) { return repalceNum(data); } },
], "oLanguage": {//语言设置 "sLengthMenu": "每页显示 _MENU_ 条记录", "sZeroRecords": "没有检索到数据", "sInfo": "当前显示 _START_ 到 _END_ 条,共 _TOTAL_ 条记录", "sInfoEmtpy": "没有数据", "sProcessing": '<i class="fa fa-coffee"></i> 正在加载数据...', "oPaginate": { "sFirst": "首页", "sPrevious": "前一页", "sNext": "后一页", "sLast": "尾页" } } });
|