mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update admin.js
This commit is contained in:
parent
3ee82df090
commit
de6207ce6f
@ -721,11 +721,11 @@ $(function () {
|
|||||||
data = $.extend({}, data, (opts = opts || {}).where || {});
|
data = $.extend({}, data, (opts = opts || {}).where || {});
|
||||||
opts = bindData($.extend({}, opts, {loading: true}));
|
opts = bindData($.extend({}, opts, {loading: true}));
|
||||||
if (evt.type.indexOf('reload') > -1) {
|
if (evt.type.indexOf('reload') > -1) {
|
||||||
var $that = $table.data('that');
|
var $next = $table.data('next');
|
||||||
if ($that && $that.page && $that.page.jump) {
|
if ($next && $next.page && $next.page.jump) {
|
||||||
$that.sort = $that.initSort = opts.initSort, $that.where = data;
|
$next.sort = $next.initSort = opts.initSort, $next.where = data;
|
||||||
if (opts.page && opts.page.curr) $that.page.curr = opts.page.curr || 1;
|
if (opts.page && opts.page.curr) $next.page.curr = opts.page.curr || 1;
|
||||||
$that.page.jump({curr: $that.page.curr, limit: option.limit});
|
$next.page.jump({curr: $next.page.curr, limit: option.limit});
|
||||||
} else {
|
} else {
|
||||||
layui.table.reloadData(table.id, opts);
|
layui.table.reloadData(table.id, opts);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user