From c392dbeb6d58d9bab0c774145ac2790b2f37a8c1 Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Wed, 15 Nov 2023 15:30:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gas-class-group-task.component.ts | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/app/admin/gas-class-group/gas-class-group-task/gas-class-group-task.component.ts b/src/app/admin/gas-class-group/gas-class-group-task/gas-class-group-task.component.ts index 5e552dd..2cea44e 100644 --- a/src/app/admin/gas-class-group/gas-class-group-task/gas-class-group-task.component.ts +++ b/src/app/admin/gas-class-group/gas-class-group-task/gas-class-group-task.component.ts @@ -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; + }); + } } /**