From e03906f6ff81f2908bb1625497bca469ae3031fa Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Thu, 19 May 2022 17:30:20 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=E5=AE=8C=E5=96=84=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/pages/home/home.component.html | 36 +++++++++++++++++++------- src/app/pages/home/home.component.ts | 18 ++++++++++++- 2 files changed, 44 insertions(+), 10 deletions(-) diff --git a/src/app/pages/home/home.component.html b/src/app/pages/home/home.component.html index a99a790..596490f 100644 --- a/src/app/pages/home/home.component.html +++ b/src/app/pages/home/home.component.html @@ -87,14 +87,32 @@ {{item.notification.data.properties.ViolationName}} -
-
- 查看 + +
+
+ 处置 +
+
+ 申请延期 +
+
+ 忽略 +
-
- 忽略 + + +
+
+ 查看 +
+
+ 忽略 +
-
+ + + @@ -109,8 +127,8 @@ - + @@ -136,4 +154,4 @@ - + \ No newline at end of file diff --git a/src/app/pages/home/home.component.ts b/src/app/pages/home/home.component.ts index ee6b0e1..0551d29 100644 --- a/src/app/pages/home/home.component.ts +++ b/src/app/pages/home/home.component.ts @@ -310,7 +310,23 @@ export class HomeComponent implements OnInit { } }) } - + //处置 + updateState(item, type) { + let body = { + id: item.notification.entityId, + operation: type + } + this.http.put('/api/services/app/StationValidityLicenseNotificationRecord/UpdateState', body).subscribe(data => { + this.messageId.forEach((element) => { + if (element.id == item.notification.entityId) { + this.notificationService.remove(element.messageId) + } + }) + this.message.create('success', '操作成功'); + }, err => { + this.message.create('error', '操作失败'); + }) + } ngOnDestroy() { console.log('退出')