From 98b5791895595777a2ca353d19985746c30a5ecf Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Thu, 25 Nov 2021 09:56:19 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=E6=8E=A8=E9=80=81=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/system-management/push/push.component.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/app/system-management/push/push.component.ts b/src/app/system-management/push/push.component.ts index 6f09bcc..944b28f 100644 --- a/src/app/system-management/push/push.component.ts +++ b/src/app/system-management/push/push.component.ts @@ -121,5 +121,14 @@ export class PushComponent implements OnInit { this.validateForm.controls[i].markAsDirty(); this.validateForm.controls[i].updateValueAndValidity(); } + + if(this.validateForm.value.search){ + this.list = this.list.filter((item)=>{ + return item.violationType.indexOf(this.validateForm.value.search) != -1 + }) + }else{ + this.getViolation() + } + } }