mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
优化停车场分页问题
This commit is contained in:
parent
0d9d39ff45
commit
b8dabc6d99
@ -53,6 +53,7 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<vc:create namespace="chooseParkingArea" path="frame/paginationPlus"></vc:create>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@ -18,6 +18,9 @@
|
||||
vc.component._refreshChooseParkingAreaInfo();
|
||||
vc.component._loadAllParkingAreaInfo(1, 10, '');
|
||||
});
|
||||
vc.on('chooseParkingArea', 'paginationPlus', 'page_event', function (_currentPage) {
|
||||
vc.component._loadAllParkingAreaInfo(_currentPage, 10, '');
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
_loadAllParkingAreaInfo: function (_page, _row, _name) {
|
||||
@ -37,6 +40,10 @@
|
||||
function (json) {
|
||||
var _parkingAreaInfo = JSON.parse(json);
|
||||
vc.component.chooseParkingAreaInfo.parkingAreas = _parkingAreaInfo.parkingAreas;
|
||||
vc.emit('chooseParkingArea', 'paginationPlus', 'init', {
|
||||
total: _parkingAreaInfo.records,
|
||||
currentPage: _page
|
||||
});
|
||||
}, function () {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user