相关功能页面搜索完查询数据后页面会自动刷新返回到第一页,造成客户反馈不方便

This commit is contained in:
wuxw 2021-01-21 20:52:29 +08:00
parent 4b44f3c353
commit 32a66c07c3

View File

@ -15,7 +15,8 @@
paId:'', paId:'',
areaNum: '', areaNum: '',
state:'' state:''
} },
currentPage:DEFAULT_PAGE
} }
}, },
_initMethod: function () { _initMethod: function () {
@ -23,7 +24,7 @@
}, },
_initEvent: function () { _initEvent: function () {
vc.on('listParkingSpace', 'listParkingSpaceData', function () { vc.on('listParkingSpace', 'listParkingSpaceData', function () {
vc.component._listParkingSpaceData(DEFAULT_PAGE, DEFAULT_ROWS); vc.component._listParkingSpaceData($that.listParkingSpaceInfo.currentPage, DEFAULT_ROWS);
vc.component.listParkingSpaceInfo.num = ''; vc.component.listParkingSpaceInfo.num = '';
}); });
vc.on('listParkingSpace', 'chooseParkingArea', function (_parkingArea) { vc.on('listParkingSpace', 'chooseParkingArea', function (_parkingArea) {
@ -38,6 +39,7 @@
vc.component.listParkingSpaceInfo.num = ''; vc.component.listParkingSpaceInfo.num = '';
}); });
vc.on('pagination', 'page_event', function (_currentPage) { vc.on('pagination', 'page_event', function (_currentPage) {
$that.listParkingSpaceInfo.currentPage = _currentPage;
vc.component._listParkingSpaceData(_currentPage, DEFAULT_ROWS); vc.component._listParkingSpaceData(_currentPage, DEFAULT_ROWS);
}); });
}, },