mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 21:59:12 +08:00
业主和车位加入 分页功能
This commit is contained in:
parent
73f949d181
commit
347b29d9b4
@ -79,6 +79,7 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<vc:create namespace="searchOwner" path="frame/paginationPlus"></vc:create>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@ -21,6 +21,10 @@
|
||||
vc.component._refreshSearchOwnerData();
|
||||
vc.component._loadAllOwnerInfo(1, 10);
|
||||
});
|
||||
|
||||
vc.on('searchOwner','paginationPlus', 'page_event', function (_currentPage) {
|
||||
vc.component._loadAllOwnerInfo(_currentPage, 10);
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
_loadAllOwnerInfo: function (_page, _row, _name) {
|
||||
@ -42,6 +46,10 @@
|
||||
function (json) {
|
||||
var _ownerInfo = JSON.parse(json);
|
||||
vc.component.searchOwnerInfo.owners = _ownerInfo.owners;
|
||||
vc.emit('searchOwner','paginationPlus', 'init', {
|
||||
total: _ownerInfo.records,
|
||||
currentPage: _page
|
||||
});
|
||||
}, function () {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
|
||||
@ -67,6 +67,7 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<vc:create namespace="searchParkingSpace" path="frame/paginationPlus"></vc:create>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@ -33,6 +33,10 @@
|
||||
$('#searchParkingSpaceModel').modal('show');
|
||||
vc.component.searchParkingSpaceInfo.parkingSpaces=_parkingSpaces;
|
||||
});
|
||||
|
||||
vc.on('searchParkingSpace','paginationPlus', 'page_event', function (_currentPage) {
|
||||
vc.component._loadAllParkingSpaceInfo(_currentPage, 10);
|
||||
});
|
||||
},
|
||||
methods:{
|
||||
_loadAllParkingSpaceInfo:function(_page,_row){
|
||||
@ -56,6 +60,10 @@
|
||||
function(json){
|
||||
var _parkingSpaceInfo = JSON.parse(json);
|
||||
vc.component.searchParkingSpaceInfo.parkingSpaces = _parkingSpaceInfo.parkingSpaces;
|
||||
vc.emit('searchParkingSpace','paginationPlus', 'init', {
|
||||
total: _parkingSpaceInfo.records,
|
||||
currentPage: _page
|
||||
});
|
||||
},function(){
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user