| | |
| | | queryParams: function (param) { |
| | | return $.extend(me.queryParams, param); |
| | | }, // 向后台传递的自定义参数 |
| | | onPostBody:function() |
| | | { |
| | | //重点就在这里,获取渲染后的数据列td的宽度赋值给对应头部的th,这样就表头和列就对齐了 |
| | | var header=$(".fixed-table-header table thead tr th"); |
| | | var body=$(".fixed-table-header table tbody tr td"); |
| | | var footer=$(".fixed-table-header table tr td"); |
| | | body.each(function(){ |
| | | header.width((this).width()); |
| | | footer.width((this).width()); |
| | | }); |
| | | }, |
| | | sidePagination: this.paginationType, //分页方式:client客户端分页,server服务端分页(*) |
| | | search: false, //是否显示表格搜索,此搜索是客户端搜索,不会进服务端 |
| | | strictSearch: true, //设置为 true启用 全匹配搜索,否则为模糊搜索 |