From 5636801b9c81f617ad6c491678c07341127835f8 Mon Sep 17 00:00:00 2001 From: zhangyanduan Date: Thu, 1 Sep 2022 10:41:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AE=A4=E8=AF=81=E6=B8=85=E5=8D=95?= =?UTF-8?q?=E4=B8=AD=E6=A0=87=E5=87=86=E5=8F=B7=E6=98=BE=E7=A4=BA=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=9A=84BUG=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/details.vue | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/details.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/details.vue index 385e9fd5f..f90ad9a0d 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/details.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/details.vue @@ -845,10 +845,18 @@ export default { this.standardFormTotal = res.data.total; this.total = res.data.total; this.standinfoList.forEach(item => { - if (item.standYear === null) { - item.standNumber = item.standSortShow + " " + item.standNumber; + if (item.standYear === null || item.standYear ==='') { + if(item.standSortShow!= null){ + item.standNumber = item.standSortShow + " " + item.standNumber; + }else{ + item.standNumber = item.standNumber; + } } else { - item.standNumber = item.standSortShow + " " + item.standNumber + "-" + item.standYear; + if(item.standSortShow!= null){ + item.standNumber = item.standSortShow + " " + item.standNumber + "-" + item.standYear; + }else{ + item.standNumber = item.standNumber + "-" + item.standYear; + } } }); this.standInfoTableLoading = false