From 86ac26c8052625e497fb149b3a5f4d2a788a67eb Mon Sep 17 00:00:00 2001 From: cpf <1105965053@qq.com> Date: Thu, 12 May 2022 16:15:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=81=E8=A3=85=E8=8E=B7=E5=8F=96=E5=8A=9E?= =?UTF-8?q?=E7=90=86=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../audit-ing/audit-dispose/audit-dispose.component.ts | 7 +++---- .../details-update-category.component.ts | 7 +++---- .../license/update-category/update-category.component.ts | 7 +++---- 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/src/app/pages/audit/audit-ing/audit-dispose/audit-dispose.component.ts b/src/app/pages/audit/audit-ing/audit-dispose/audit-dispose.component.ts index b5ba90e..e09e7cd 100644 --- a/src/app/pages/audit/audit-ing/audit-dispose/audit-dispose.component.ts +++ b/src/app/pages/audit/audit-ing/audit-dispose/audit-dispose.component.ts @@ -39,16 +39,15 @@ export class AuditDisposeComponent implements OnInit { if (!handleTypes || !handleTypes.length) { return } - let name + let names: string[] = [] let handleTypeList = JSON.parse(JSON.stringify(handleTypes)); let list: handleTypeList[] = new handleType().list; handleTypeList.forEach(item=>{ list.find(element=>{ - item == element.value? item = element.name : null + item == element.value? names.push(element.name) : null }) }) - name = handleTypeList.join(',') - return name + return names.join(',') } //获取文件格式 diff --git a/src/app/pages/license/update-category/details-update-category/details-update-category.component.ts b/src/app/pages/license/update-category/details-update-category/details-update-category.component.ts index f3c57f2..399308e 100644 --- a/src/app/pages/license/update-category/details-update-category/details-update-category.component.ts +++ b/src/app/pages/license/update-category/details-update-category/details-update-category.component.ts @@ -54,16 +54,15 @@ export class DetailsUpdateCategoryComponent implements OnInit { if (!handleTypes || !handleTypes.length) { return } - let name + let names: string[] = [] let handleTypeList = JSON.parse(JSON.stringify(handleTypes)); let list: handleTypeList[] = new handleType().list; handleTypeList.forEach(item=>{ list.find(element=>{ - item == element.value? item = element.name : null + item == element.value? names.push(element.name) : null }) }) - name = handleTypeList.join(',') - return name + return names.join(',') } //获取文件格式 diff --git a/src/app/pages/license/update-category/update-category.component.ts b/src/app/pages/license/update-category/update-category.component.ts index 8942581..b6472cc 100644 --- a/src/app/pages/license/update-category/update-category.component.ts +++ b/src/app/pages/license/update-category/update-category.component.ts @@ -45,16 +45,15 @@ export class UpdateCategoryComponent implements OnInit { if (!handleTypes || !handleTypes.length) { return } - let name + let names: string[] = [] let handleTypeList = JSON.parse(JSON.stringify(handleTypes)); let list: handleTypeList[] = new handleType().list; handleTypeList.forEach(item=>{ list.find(element=>{ - item == element.value? item = element.name : null + item == element.value? names.push(element.name) : null }) }) - name = handleTypeList.join(',') - return name + return names.join(',') } //获取文件格式