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(',') } //获取文件格式