From 3a082e4593b6a0b6bb85b42f8ccaf02f89343a44 Mon Sep 17 00:00:00 2001 From: yanyizhou <2311759275@qq.com> Date: Mon, 27 Dec 2021 14:04:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=B7=E5=A4=96=20-=20=E8=AF=A6=E6=83=85=20-?= =?UTF-8?q?=20=E6=A0=87=E5=87=86=E5=8F=B7=E3=80=81=E4=B8=AD=E6=96=87?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E3=80=81=E8=8B=B1=E6=96=87=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E3=80=81=E5=8F=91=E5=B8=83=E7=A8=BF=E3=80=81=E4=BF=AE=E8=AE=A2?= =?UTF-8?q?=E6=9C=AC=EF=BC=8C=E5=8B=98=E8=AF=AF=E4=BB=B6=EF=BC=8C=E5=A2=9E?= =?UTF-8?q?=E8=A1=A5=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../details/otherStandardDetails/index.vue | 197 +++++++++++++++++- 1 file changed, 191 insertions(+), 6 deletions(-) diff --git a/src/pages/details/otherStandardDetails/index.vue b/src/pages/details/otherStandardDetails/index.vue index 8fd05fba9..6d73b5859 100644 --- a/src/pages/details/otherStandardDetails/index.vue +++ b/src/pages/details/otherStandardDetails/index.vue @@ -57,6 +57,12 @@ {{ sarStandardsInfoEO.standSort + ' ' + sarStandardsInfoEO.standNumber }}

+

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

+

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

-

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

-

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

+ + + + + +

@@ -1940,6 +2071,7 @@ export default { watch: {}, methods: { child1Func(child1) { + console.log('1943',child1) const list = [] if (child1 && child1.length > 1) { list.push(child1[0]) @@ -1947,6 +2079,33 @@ export default { } return child1 }, + child3Func(child3) { + console.log('1943',child3) + const list = [] + if (child3 && child3.length > 1) { + list.push(child3[0]) + return list + } + return child3 + }, + child4Func(child4) { + console.log('1943',child4) + const list = [] + if (child4 && child4.length > 1) { + list.push(child4[0]) + return list + } + return child4 + }, + child5Func(child5) { + console.log('1943',child5) + const list = [] + if (child5 && child5.length > 1) { + list.push(child5[0]) + return list + } + return child5 + }, handleChange(val) { console.log('1724', val) }, @@ -3479,7 +3638,9 @@ export default { displayLocation.forEach(location => { // 动态属性字段-FBGBJBD 单独添加至基础信息 const list = displayLocation.filter(item => item.label === '过程稿件'); + console.log('3535',list) if (location.label === '基础信息' && list && list.length > 0) { + //发布稿必读 if (!list[0].child) { location['child1'] = [] } else { @@ -3487,6 +3648,30 @@ export default { location['child1'] = childList } + //增补件必读 + if (!list[0].child) { + location['child3'] = [] + } else { + const childList = list[0].child.filter(item => item.attrField === 'ZBJBD'); + location['child3'] = childList + + } + //勘误件 + if (!list[0].child) { + location['child4'] = [] + } else { + const childList = list[0].child.filter(item => item.attrField === 'KWJ'); + location['child4'] = childList + + } + //修订本 + if (!list[0].child) { + location['child5'] = [] + } else { + const childList = list[0].child.filter(item => item.attrField === 'XDB'); + location['child5'] = childList + + } } // 动态属性字段-SYRZ 单独添加至基础信息 const list2 = displayLocation.filter(item => item.label === '适用范围');