1、2018年4月3日 Bjuiajax.prototype.ajaxcallback刷新bug
$('\'#'+ n.trim()+'\'').datagrid('refresh', options.gridrefreshflag)
改爲:
$('#'+ n.trim()).datagrid('refresh', options.gridrefreshflag)
2、2018年4月19日 Datagrid.prototype.fixedWidth修復fullGrid=true時子表展開和關閉後父表表頭移位bug,不過帶來的是:展開子表時,父表內容對不上父表表頭,收縮後又可以了,就算是一個提示吧。如下圖
原來:
if (options.fullGrid || that.isTemplate || that.needfixedWidth || (that.hasAutoCol && isInit)) {
修改後:
if (that.isTemplate || that.needfixedWidth || (that.hasAutoCol && isInit)) {
3、datagrid 的paging=false,也要用到pageSize作爲行號的顯示處理,暫時修改一下,2018年5月17日
if (typeof options.paging === 'string') {
options.paging = options.paging.toObj()
that.paging = $.extend({}, { pageSize: 15, selectPageSize: '15,30,60,90', pageCurrent: 1, total: 0, showPagenum: 5 }, (typeof options.paging === 'object') && options.paging)
} else {
//修改,當不paging=false時,底層也需要用到pageSize,所以設置一下2018年5月23日
if(options.paging){
that.paging = $.extend({}, { pageSize: 15, selectPageSize: '15,30,60,90', pageCurrent: 1, total: 0, showPagenum: 5 }, (typeof options.paging === 'object') && options.paging)
}else{
that.paging = $.extend({}, { pageSize: 200, selectPageSize: '15,30,60,90', pageCurrent: 1, total: 0, showPagenum: 5 }, (typeof options.paging === 'object') && options.paging)
}
}