diff --git a/src/app/pages/audit/gas-base-info/gas-base-info.component.html b/src/app/pages/audit/gas-base-info/gas-base-info.component.html index 462e684..bd804c6 100644 --- a/src/app/pages/audit/gas-base-info/gas-base-info.component.html +++ b/src/app/pages/audit/gas-base-info/gas-base-info.component.html @@ -79,7 +79,7 @@ 审核记录 - 审核次数:{{auditList.length}} + 审核次数:{{getVerifyNum()}} 驳回次数:{{getRejectNum()}} diff --git a/src/app/pages/audit/gas-base-info/gas-base-info.component.ts b/src/app/pages/audit/gas-base-info/gas-base-info.component.ts index 187e5e6..b419c66 100644 --- a/src/app/pages/audit/gas-base-info/gas-base-info.component.ts +++ b/src/app/pages/audit/gas-base-info/gas-base-info.component.ts @@ -50,6 +50,17 @@ export class GasBaseInfoComponent implements OnInit { }) } + //获取审核次数 + getVerifyNum(): number { + let num = 0 + this.auditList.forEach(item=>{ + if (item.auditStatus == 2 || item.auditStatus == 3) { + num = num + 1 + } + }) + return num + } + //获取驳回次数 getRejectNum(): number { let num = 0 diff --git a/src/app/pages/license/file-category/details-file-category/details-file-category.component.html b/src/app/pages/license/file-category/details-file-category/details-file-category.component.html index a5167e3..c44bbdd 100644 --- a/src/app/pages/license/file-category/details-file-category/details-file-category.component.html +++ b/src/app/pages/license/file-category/details-file-category/details-file-category.component.html @@ -23,7 +23,7 @@ 审核记录 - 审核次数:{{auditList.length}} + 审核次数:{{getVerifyNum()}} 驳回次数:{{getRejectNum()}} diff --git a/src/app/pages/license/file-category/details-file-category/details-file-category.component.ts b/src/app/pages/license/file-category/details-file-category/details-file-category.component.ts index e9d05b6..2161bd7 100644 --- a/src/app/pages/license/file-category/details-file-category/details-file-category.component.ts +++ b/src/app/pages/license/file-category/details-file-category/details-file-category.component.ts @@ -33,6 +33,17 @@ export class DetailsFileCategoryComponent implements OnInit { }) } + //获取审核次数 + getVerifyNum(): number { + let num = 0 + this.auditList.forEach(item=>{ + if (item.auditStatus == 2 || item.auditStatus == 3) { + num = num + 1 + } + }) + return num + } + //获取驳回次数 getRejectNum(): number { let num = 0 diff --git a/src/app/pages/license/update-category/details-update-category/details-update-category.component.html b/src/app/pages/license/update-category/details-update-category/details-update-category.component.html index 4b970b7..7ac2a22 100644 --- a/src/app/pages/license/update-category/details-update-category/details-update-category.component.html +++ b/src/app/pages/license/update-category/details-update-category/details-update-category.component.html @@ -29,7 +29,7 @@ 审核记录 - 审核次数:{{auditList.length}} + 审核次数:{{getVerifyNum()}} 驳回次数:{{getRejectNum()}} 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 399308e..18de9d9 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 @@ -34,6 +34,17 @@ export class DetailsUpdateCategoryComponent implements OnInit { }) } + //获取审核次数 + getVerifyNum(): number { + let num = 0 + this.auditList.forEach(item=>{ + if (item.auditStatus == 2 || item.auditStatus == 3) { + num = num + 1 + } + }) + return num + } + //获取驳回次数 getRejectNum(): number { let num = 0