This commit is contained in:
java110 2021-01-22 18:58:52 +08:00
commit a356e2074d
9 changed files with 34 additions and 8 deletions

View File

@ -79,6 +79,7 @@
</tr>
</tbody>
</table>
<vc:create namespace="searchOwner" path="frame/paginationPlus"></vc:create>
</div>
</div>

View File

@ -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('请求失败处理');
}

View File

@ -67,6 +67,7 @@
</tr>
</tbody>
</table>
<vc:create namespace="searchParkingSpace" path="frame/paginationPlus"></vc:create>
</div>
</div>

View File

@ -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('请求失败处理');
}

View File

@ -12,7 +12,8 @@
floorId: '',
floorNum: '',
floorName: ''
}
},
currentPage:DEFAULT_PAGE
}
},
_initMethod: function () {
@ -20,9 +21,10 @@
},
_initEvent: function () {
vc.on('listFloor', 'listFloorData', function () {
vc.component._listFloorData(DEFAULT_PAGE, DEFAULT_ROWS);
vc.component._listFloorData($that.listFloorInfo.currentPage, DEFAULT_ROWS);
});
vc.on('pagination', 'page_event', function (_currentPage) {
$that.listFloorInfo.currentPage = _currentPage;
vc.component._listFloorData(_currentPage, DEFAULT_ROWS);
});
},

View File

@ -24,6 +24,7 @@
roomNum: '',
roomName: ''
},
currentPage:DEFAULT_PAGE,
listColumns: []
}
},
@ -40,9 +41,10 @@
},
_initEvent: function () {
vc.on('listOwner', 'listOwnerData', function () {
vc.component._listOwnerData(DEFAULT_PAGE, DEFAULT_ROWS);
vc.component._listOwnerData($that.listOwnerInfo.currentPage, DEFAULT_ROWS);
});
vc.on('pagination', 'page_event', function (_currentPage) {
$that.listOwnerInfo.currentPage = _currentPage;
vc.component._listOwnerData(_currentPage, DEFAULT_ROWS);
});

View File

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

View File

@ -97,7 +97,7 @@
v-on:click="_openDispatchRepairModel(ownerRepair)">转单
</button>
</div>
<div class="btn-group" v-if="ownerRepair.preStaffId != '-1' && ownerRepair.startStaffId != ownerRepair.preStaffId">
<div class="btn-group" v-if="ownerRepair.preStaffId != '-1' && ownerRepair.ruId != ownerRepair.preRuId">
<button class="btn-white btn btn-xs"
v-on:click="_openBackRepairModel(ownerRepair)">退单
</button>

View File

@ -26,6 +26,7 @@
section: '',
roomType:'1010301'
},
currentPage:DEFAULT_PAGE,
listColumns: []
}
@ -45,12 +46,13 @@
});
vc.on('room', 'listRoom', function (_param) {
vc.component.listRoom(DEFAULT_PAGE, DEFAULT_ROW);
vc.component.listRoom($that.roomInfo.currentPage, DEFAULT_ROW);
});
vc.on('room', 'loadData', function (_param) {
vc.component.listRoom(DEFAULT_PAGE, DEFAULT_ROW);
vc.component.listRoom($that.roomInfo.currentPage, DEFAULT_ROW);
});
vc.on('pagination', 'page_event', function (_currentPage) {
$that.roomInfo.currentPage = _currentPage;
vc.component.listRoom(_currentPage, DEFAULT_ROW);
});
},