|
|
|
@ -85,17 +85,19 @@ export class GasClassGroupTaskComponent implements OnInit { |
|
|
|
|
* 请求数据 |
|
|
|
|
*/ |
|
|
|
|
requestData(pageNum) { |
|
|
|
|
this.tableLoading = true; |
|
|
|
|
this.whereObject['pageNum'] = pageNum; |
|
|
|
|
this.whereObject['pageSize'] = 10; |
|
|
|
|
this.gasClassGroupTaskService.getClassGroupTaskList(this.whereObject, data => { |
|
|
|
|
if (data['return_code'] === '000000') { |
|
|
|
|
this.dataObject = data['return_data']; |
|
|
|
|
} else { |
|
|
|
|
this.modal.error(data['return_msg']); |
|
|
|
|
} |
|
|
|
|
this.tableLoading = false; |
|
|
|
|
}); |
|
|
|
|
if (pageNum != null) { |
|
|
|
|
this.tableLoading = true; |
|
|
|
|
this.whereObject['pageNum'] = pageNum; |
|
|
|
|
this.whereObject['pageSize'] = 10; |
|
|
|
|
this.gasClassGroupTaskService.getClassGroupTaskList(this.whereObject, data => { |
|
|
|
|
if (data['return_code'] === '000000') { |
|
|
|
|
this.dataObject = data['return_data']; |
|
|
|
|
} else { |
|
|
|
|
this.modal.error(data['return_msg']); |
|
|
|
|
} |
|
|
|
|
this.tableLoading = false; |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|