mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-07-15 03:41:06 +08:00
Pre Merge pull request !17 from 燃迩/N/A
This commit is contained in:
commit
f38eddfa53
@ -685,7 +685,7 @@ $(function () {
|
|||||||
this.elem.next().find('[data-load],[data-queue],[data-action]').not('[data-table-id]').attr('data-table-id', elem.id);
|
this.elem.next().find('[data-load],[data-queue],[data-action]').not('[data-table-id]').attr('data-table-id', elem.id);
|
||||||
}, opt.parseData = function (res) {
|
}, opt.parseData = function (res) {
|
||||||
var maxPage = Math.ceil(res.count / this.limit), curPage = layui.sessionData('pages')[opt.id] || 1;
|
var maxPage = Math.ceil(res.count / this.limit), curPage = layui.sessionData('pages')[opt.id] || 1;
|
||||||
if (curPage > maxPage) this.elem.trigger('reload', {page: {curr: maxPage}});
|
if (curPage > maxPage && curPage > 1) this.elem.trigger('reload', {page: {curr: maxPage}});
|
||||||
};
|
};
|
||||||
// 实例并绑定的对象
|
// 实例并绑定的对象
|
||||||
$(this).data('this', layui.table.render(bindData(opt)));
|
$(this).data('this', layui.table.render(bindData(opt)));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user