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('退出')