report前端分页bug修复

This commit is contained in:
chenjinsong
2018-07-11 15:38:37 +08:00
parent 84338393d9
commit f067b24fba
7 changed files with 57 additions and 44 deletions

View File

@@ -5,15 +5,15 @@ function pagination() {
pageNo = 1;
count = $('tbody').children().size();// 总记录数
//处理ajax时jquery选择器缓存的问题
dataLength = "${dataLength}";
/* dataLength = "${fn:length(datas)}";
preCount = 0;
if (dataLength < count) {
preCount = count - dataLength;
count = count - preCount;
}
$('tbody').children().slice(0, preCount).remove();
alert(count)
//$('tbody').children().slice(0, preCount).remove();
} */
pageSize = 30; // 页面大小