From 80165dca80fcd014ad208dfa2e7bf58ca8f781eb Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Sat, 9 Apr 2022 14:48:21 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=96=B0=E5=A2=9E]=E6=96=B0=E5=A2=9E=E5=AE=9E?= =?UTF-8?q?=E6=97=B6=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../criminal-records-admin.component.html | 3 ++- .../criminal-records-admin.component.scss | 14 ++++++++++++++ .../criminal-records-admin.component.ts | 17 +++++++++++++++-- 3 files changed, 31 insertions(+), 3 deletions(-) diff --git a/src/app/pages/criminal-records-admin/criminal-records-admin.component.html b/src/app/pages/criminal-records-admin/criminal-records-admin.component.html index 7e60d8b..6bf9952 100644 --- a/src/app/pages/criminal-records-admin/criminal-records-admin.component.html +++ b/src/app/pages/criminal-records-admin/criminal-records-admin.component.html @@ -141,8 +141,9 @@
-
+
{{key + 1}} +
{ console.log('abp.notifications.received收到通知', userNotification); - + console.log('违规记录列表', this.list) + let params = { + id: userNotification.notification.entityId + } + this.http.get('/api/services/app/ViolateRecordCensorship/Get', { + params: params + }).subscribe((data: any) => { + data.result.isNewMessage = true + this.list.unshift(data.result) + this.message.create('success', '收到一条新预警!'); + this.totalCount = String(Number(this.totalCount) + 1) + this.SkipCount = String(Number(this.SkipCount) + 1) + console.log('新获取一条', data.result) + }) }; ngOnDestroy() { console.log('退出')