From 69f9bcf1c97a30b280c1b633880cce306f71e1ea Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Mon, 29 Aug 2022 09:01:02 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=96=B0=E5=A2=9E]=E4=B8=80=E9=94=AE=E9=80=9A?= =?UTF-8?q?=E8=BF=87=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../da-oneself-plan.component.html | 2 +- .../station-weekly-plan.component.html | 2 +- .../station-weekly-plan.component.ts | 33 +++++++++++++++++++ 3 files changed, 35 insertions(+), 2 deletions(-) diff --git a/src/app/home/task/da-oneself-plan/da-oneself-plan.component.html b/src/app/home/task/da-oneself-plan/da-oneself-plan.component.html index b5c662c..bf7885d 100644 --- a/src/app/home/task/da-oneself-plan/da-oneself-plan.component.html +++ b/src/app/home/task/da-oneself-plan/da-oneself-plan.component.html @@ -44,7 +44,7 @@

{{item.passed}}/{{item.data.length}}

- +
{{item.passed}}/{{item.data.length}}

- +
{ + let ids = [] + item.data.forEach(element => { + ids.push(element.id) + }); + this.http.post(`/api/PlanTasks/ApprovalMany`, null, { + params: { + ids: ids, + approvalStatus: '通过' + } + }).subscribe({ + next: (data) => { + this.message.create('success', '成功'); + item.data.forEach(element => { + element.approvalStatus = '通过' + }); + this.getTaskListPass(this.stationData[0]) + }, + error: (err) => { + this.message.create('warning', '失败'); + item.isLoading = false + } + }) + }, + nzCancelText: '取消' + }); + } }