diff --git a/src/app/admin/tuanyou-agent/petrol-station-manage/petrol-station-manage.ts b/src/app/admin/tuanyou-agent/petrol-station-manage/petrol-station-manage.ts index e1eaa15..b1bb110 100644 --- a/src/app/admin/tuanyou-agent/petrol-station-manage/petrol-station-manage.ts +++ b/src/app/admin/tuanyou-agent/petrol-station-manage/petrol-station-manage.ts @@ -29,9 +29,8 @@ export class PetrolStationManageComponent implements OnInit { tableLoading = true; searchForm: FormGroup; pageNum: number; - whereObject: any = { - pageSize: 10 - }; + pageSize = 10; + whereObject: any = {}; allChecked = false; checkedData = []; @@ -124,6 +123,7 @@ export class PetrolStationManageComponent implements OnInit { requestData(pageNum) { this.tableLoading = true; this.whereObject['pageNum'] = pageNum; + this.whereObject['pageSize'] = this.pageSize; this.tyAgentOilStationService.getOilStationList(this.whereObject, data => { if (data['return_code'] === '000000') { this.dataObject = data['return_data']; @@ -888,7 +888,7 @@ export class PetrolStationManageComponent implements OnInit { } pageSizeChange(pageSize: number) { - this.whereObject.pageSize = pageSize; + this.pageSize = pageSize; this.requestData(1); } }