mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-27 00:20:01 +08:00
优化分页问题
This commit is contained in:
parent
8562532ee0
commit
5aa46d94ea
@ -3,7 +3,7 @@
|
||||
**/
|
||||
(function(vc) {
|
||||
var DEFAULT_PAGE = 1;
|
||||
var DEFAULT_ROWS = 10;
|
||||
var DEFAULT_ROWS = 20;
|
||||
vc.extends({
|
||||
data: {
|
||||
mappingManageInfo: {
|
||||
@ -11,6 +11,7 @@
|
||||
name: '',
|
||||
total: 0,
|
||||
records: 1,
|
||||
curPage: DEFAULT_PAGE,
|
||||
conditions: {
|
||||
domain: '',
|
||||
nameLike: '',
|
||||
@ -23,9 +24,10 @@
|
||||
},
|
||||
_initEvent: function() {
|
||||
vc.on('mappingManage', 'listMapping', function(_param) {
|
||||
vc.component._listMappings(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
vc.component._listMappings($that.mappingManageInfo.curPage, DEFAULT_ROWS);
|
||||
});
|
||||
vc.on('pagination', 'page_event', function(_currentPage) {
|
||||
$that.mappingManageInfo.curPage = _currentPage;
|
||||
vc.component._listMappings(_currentPage, DEFAULT_ROWS);
|
||||
});
|
||||
},
|
||||
@ -68,7 +70,6 @@
|
||||
},
|
||||
_queryMappingMethod: function() {
|
||||
vc.component._listMappings(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user