fix(#I1A739): 翻页再查询无数据问题
#Comment comment #I1A739 #Issue close https://gitee.com/LongbowEnterprise/dashboard/issues?id=I1A739
This commit is contained in:
parent
8515419fed
commit
01c6a52089
|
@ -505,6 +505,10 @@
|
|||
});
|
||||
if (settings.queryButton) {
|
||||
$(settings.queryButton).on('click', this, function (e) {
|
||||
// fix bug: 翻页后再更改查询条件导致页码未更改数据为空
|
||||
// 更改页码为 1 即可
|
||||
var options = e.data.data('bootstrap.table').options;
|
||||
options.pageNumber = 1;
|
||||
e.data.bootstrapTable('refresh');
|
||||
});
|
||||
}
|
||||
|
|
|
@ -128,6 +128,10 @@
|
|||
if (options.advancedSearchModal) {
|
||||
$(options.advancedSearchModal).modal('hide');
|
||||
}
|
||||
// fix bug: 翻页后再更改查询条件导致页码未更改数据为空
|
||||
// 更改页码为 1 即可
|
||||
var options = this.options.bootstrapTable.data('bootstrap.table').options;
|
||||
options.pageNumber = 1;
|
||||
this.options.bootstrapTable.bootstrapTable('refresh');
|
||||
}
|
||||
handlerCallback.call(this, null, element, { oper: 'query' });
|
||||
|
|
Loading…
Reference in New Issue