From 82fee7f37fecf18fdfc83c833f51274c5af07b95 Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Mon, 23 May 2022 15:35:28 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../criminal-records-admin/criminal-records-admin.component.ts | 3 +++ src/app/pages/criminal-records/criminal-records.component.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/app/pages/criminal-records-admin/criminal-records-admin.component.ts b/src/app/pages/criminal-records-admin/criminal-records-admin.component.ts index 6abb8c1..4a12604 100644 --- a/src/app/pages/criminal-records-admin/criminal-records-admin.component.ts +++ b/src/app/pages/criminal-records-admin/criminal-records-admin.component.ts @@ -639,6 +639,9 @@ export class CriminalRecordsAdminComponent implements OnInit { if (!e) { this.warningTypesDetails = this.warningTypesDetailsCopy this.warningTypes = this.warningTypesCopy + this.validateForm.patchValue({ + type: null, + }); return } this.warningLevels.forEach(element => { diff --git a/src/app/pages/criminal-records/criminal-records.component.ts b/src/app/pages/criminal-records/criminal-records.component.ts index 1aadbfd..952789c 100644 --- a/src/app/pages/criminal-records/criminal-records.component.ts +++ b/src/app/pages/criminal-records/criminal-records.component.ts @@ -576,6 +576,9 @@ export class CriminalRecordsComponent implements OnInit { if (!e) { this.warningTypesDetails = this.warningTypesDetailsCopy this.warningTypes = this.warningTypesCopy + this.validateForm.patchValue({ + type: null, + }); return } this.warningLevels.forEach(element => {