提交代码

pull/1/head
胡锐 3 years ago
parent 929b9e8f7d
commit 698e4d2738
  1. 8
      src/app/admin/tuanyou-agent/petrol-station-manage/petrol-station-manage.ts

@ -29,9 +29,8 @@ export class PetrolStationManageComponent implements OnInit {
tableLoading = true; tableLoading = true;
searchForm: FormGroup; searchForm: FormGroup;
pageNum: number; pageNum: number;
whereObject: any = { pageSize = 10;
pageSize: 10 whereObject: any = {};
};
allChecked = false; allChecked = false;
checkedData = []; checkedData = [];
@ -124,6 +123,7 @@ export class PetrolStationManageComponent implements OnInit {
requestData(pageNum) { requestData(pageNum) {
this.tableLoading = true; this.tableLoading = true;
this.whereObject['pageNum'] = pageNum; this.whereObject['pageNum'] = pageNum;
this.whereObject['pageSize'] = this.pageSize;
this.tyAgentOilStationService.getOilStationList(this.whereObject, data => { this.tyAgentOilStationService.getOilStationList(this.whereObject, data => {
if (data['return_code'] === '000000') { if (data['return_code'] === '000000') {
this.dataObject = data['return_data']; this.dataObject = data['return_data'];
@ -888,7 +888,7 @@ export class PetrolStationManageComponent implements OnInit {
} }
pageSizeChange(pageSize: number) { pageSizeChange(pageSize: number) {
this.whereObject.pageSize = pageSize; this.pageSize = pageSize;
this.requestData(1); this.requestData(1);
} }
} }

Loading…
Cancel
Save