From 7b048117f37308446ffa521885a3da5fe681ddc1 Mon Sep 17 00:00:00 2001 From: "zhaokaiyao@91isoft.com" <6922339zky> Date: Wed, 8 Sep 2021 20:05:17 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=B5=B7=E5=A4=96=E6=A0=87=E5=87=86?= =?UTF-8?q?=E5=8F=B7+=E7=B1=BB=E5=88=AB=20=E6=9A=82=E6=97=B6=E4=BD=BF?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../foreignStandardsAndRegulations/index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue b/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue index f21b9a182..0b5bda16c 100644 --- a/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue +++ b/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue @@ -164,7 +164,10 @@ label="标准号" > From 60e590d84bd2988687dee0202a0d819ffe5fc102 Mon Sep 17 00:00:00 2001 From: yanyizhou <2311759275@qq.com> Date: Wed, 8 Sep 2021 20:34:46 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=B8=85=E5=8D=95=E4=B8=8B=E7=9A=84?= =?UTF-8?q?=E6=A0=87=E5=87=86=E7=9A=84=E5=AD=97=E6=AE=B5=E5=9B=9E=E6=98=BE?= =?UTF-8?q?=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/addEdit.vue | 21 ++++++++ .../pages/otherAddEit.vue | 21 ++++++++ .../pages/projectAddEit.vue | 54 +++++++++++++++++++ 3 files changed, 96 insertions(+) diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue index 286380794..5a62053a6 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue @@ -1149,6 +1149,27 @@ export default { addSarAccess() { //判断是否是清单类型 if (this.selectedAccInfoSearchList.length > 0) { + + //为空转换 + for (let i = 0; i < this.selectedAccInfoSearchList.length; i++) { + //适用车型为空 + if (this.selectedAccInfoSearchList[i].typeApplicable === '[]'){ + this.selectedAccInfoSearchList[i].typeApplicable = null + } + //能源类型为空 + if (this.selectedAccInfoSearchList[i].nylx === '[]'){ + this.selectedAccInfoSearchList[i].nylx = null + } + //责任部门为空 + if (this.selectedAccInfoSearchList[i].zrbm === '[]'){ + this.selectedAccInfoSearchList[i].zrbm = null + } + //试用产品线为空 + if (this.selectedAccInfoSearchList[i].sycpx === '[]'){ + this.selectedAccInfoSearchList[i].sycpx = null + } + } + // 追加字段 this.selectedAccInfoSearchList.map(item => { let addList; diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue index 5013827b8..b6b42a4eb 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue @@ -1097,6 +1097,27 @@ export default { addSarAccess () { //判断是否是清单类型 if (this.selectedAccInfoSearchList.length > 0) { + + //为空转换 + for (let i = 0; i < this.selectedAccInfoSearchList.length; i++) { + //适用车型为空 + if (this.selectedAccInfoSearchList[i].typeApplicable === '[]'){ + this.selectedAccInfoSearchList[i].typeApplicable = null + } + //能源类型为空 + if (this.selectedAccInfoSearchList[i].nylx === '[]'){ + this.selectedAccInfoSearchList[i].nylx = null + } + //责任部门为空 + if (this.selectedAccInfoSearchList[i].zrbm === '[]'){ + this.selectedAccInfoSearchList[i].zrbm = null + } + //试用产品线为空 + if (this.selectedAccInfoSearchList[i].sycpx === '[]'){ + this.selectedAccInfoSearchList[i].sycpx = null + } + } + // 追加字段 this.selectedAccInfoSearchList.map(item => { let addList; diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue index 8a5e45bd9..192ad0938 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue @@ -1097,6 +1097,27 @@ export default { addSarAccess() { //判断是否是清单类型 if (this.selectedAccInfoSearchList.length > 0) { + + //为空转换 + for (let i = 0; i < this.selectedAccInfoSearchList.length; i++) { + //适用车型为空 + if (this.selectedAccInfoSearchList[i].typeApplicable === '[]'){ + this.selectedAccInfoSearchList[i].typeApplicable = null + } + //能源类型为空 + if (this.selectedAccInfoSearchList[i].nylx === '[]'){ + this.selectedAccInfoSearchList[i].nylx = null + } + //责任部门为空 + if (this.selectedAccInfoSearchList[i].zrbm === '[]'){ + this.selectedAccInfoSearchList[i].zrbm = null + } + //试用产品线为空 + if (this.selectedAccInfoSearchList[i].sycpx === '[]'){ + this.selectedAccInfoSearchList[i].sycpx = null + } + } + // 追加字段 this.selectedAccInfoSearchList.map(item => { let addList; @@ -1515,6 +1536,18 @@ export default { pageInfo() { StandardsInfoPage(this.sarAccessInfoSearch).then(res => { this.sarAccessInfoSearchList = res.data.list + + //为空转换 + for (let i = 0; i < this.sarAccessInfoSearchList.length; i++) { + //适用车型为空 + if (this.sarAccessInfoSearchList[i].attrInfoMap.CLLX === '[]'){ + this.sarAccessInfoSearchList[i].attrInfoMap.CLLX = null + } + //适用认证为空 + if (this.sarAccessInfoSearchList[i].attrInfoMap.SYRZ === '[]'){ + this.sarAccessInfoSearchList[i].attrInfoMap.SYRZ = null + } + } this.sarAccessInfoSearchList.forEach(item => { if (item.standYear === null) { item.standNumber = item.standSortShow + ' ' + item.standNumber @@ -1995,6 +2028,27 @@ export default { _this: this }, res => { this.sarAccessInfoList = res.data.records + + //为空转换 + for (let i = 0; i < this.sarAccessInfoList.length; i++) { + //适用车型为空 + if (this.sarAccessInfoList[i].typeApplicable === '[]'){ + this.sarAccessInfoList[i].typeApplicable = null + } + //能源类型为空 + if (this.sarAccessInfoList[i].nylx === '[]'){ + this.sarAccessInfoList[i].nylx = null + } + //责任部门为空 + if (this.sarAccessInfoList[i].zrbm === '[]'){ + this.sarAccessInfoList[i].zrbm = null + } + //试用产品线为空 + if (this.sarAccessInfoList[i].sycpx === '[]'){ + this.sarAccessInfoList[i].sycpx = null + } + } + this.sarAccessInfoList.forEach(item => { if (item.standYear === null) { item.standNumber = item.standSortShow + ' ' + item.standNumber From d306a21e51049c6db9f9e0028824431c860912a4 Mon Sep 17 00:00:00 2001 From: super_liu <396572590@qq.com> Date: Wed, 8 Sep 2021 20:45:03 +0800 Subject: [PATCH 3/3] feat: There is no way the --- .../details/otherStandardDetails/index.vue | 30 +++++++++---------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/src/pages/details/otherStandardDetails/index.vue b/src/pages/details/otherStandardDetails/index.vue index 8a4d22587..e1f93846f 100644 --- a/src/pages/details/otherStandardDetails/index.vue +++ b/src/pages/details/otherStandardDetails/index.vue @@ -43,7 +43,7 @@
-

+

{{ sarStandardsInfoEO.standSortShow + ' ' + sarStandardsInfoEO.standNumber + '-' + sarStandardsInfoEO.standYear @@ -51,30 +51,30 @@ {{ sarStandardsInfoEO.standSort + ' ' + sarStandardsInfoEO.standNumber }}

-

{{ +

{{ sarStandardsInfoEO.standName || '-' }}

-

{{ +

{{ sarStandardsInfoEO.standEnName || '-' }}

-

{{ +

{{ standMap[sarStandardsInfoEO.standNature] || '-' }}

-

+

{{ textStatusMap[sarStandardsInfoEO.textStatus] || '-' }}

-

{{ +

{{ sarStandardsInfoEO.issueTime || '-' }}

-

+

{{ sarStandardsInfoEO.isRelateAccess ? (sarStandardsInfoEO.isRelateAccess === '1' ? '是' : '否') : '-' }}

-

{{ +

{{ sarStandardsInfoEO.standSystem || '-' }}

@@ -87,11 +87,10 @@ v-for="(child, childIndex) in item.half" v-if="child.isShowImp === '0' && child.attrField !== 'CBCD'" > - +
@@ -137,9 +136,8 @@
+ :class="item.label !== '文本信息' ? 'modular-item half' : 'modular-item'" + >
@@ -324,7 +322,7 @@ >