diff --git a/src/pages/details/otherLawsStandDetails/index.vue b/src/pages/details/otherLawsStandDetails/index.vue index 1180a29ef..cd59b7733 100644 --- a/src/pages/details/otherLawsStandDetails/index.vue +++ b/src/pages/details/otherLawsStandDetails/index.vue @@ -62,8 +62,13 @@
{{ sarStandardsInfoEO.lawsYear || '-' }}
{{ sarStandardsInfoEO.lawsLabel || '-' }}
{{ sarStandardsInfoEO.lawsRemark || '-' }}
-- + +
+ + {{ child.value || '-' }} + +
+ { + + // 动态属性字段-SYRZ 单独添加至基础信息 + const list2 = displayLocation.filter ( item => item.label === '适用范围'); + if(location.label === '基础信息' && list2 && list2.length > 0){ + if (!list2[0].child) { + location['child2'] = [] + }else { + const childList = list2[0].child.filter ( item => item.attrField === 'YYRZLAWS'); + location['child2'] = childList + } + } + const child = location.child || [] const halfType = ['INPUT_STR', 'DATE_PICKER', 'SEL_OPTION', 'INPUT_NUM'] const fieldsIsTextAreaOrFile = child.filter(field => { - return !halfType.includes(field.attrType) + return field.attrField !== 'YYRZLAWS' && !halfType.includes(field.attrType) }) const fieldOthers = child.filter(field => { return halfType.includes(field.attrType) }) location.child = [...fieldOthers, ...fieldsIsTextAreaOrFile].sort(this.compare('orderNum')) }) + + for (let i = 0; i < displayLocation.length; i++) { + // sss + if(displayLocation[i].label !== '基础信息' && displayLocation[i].label !== '过程稿件'){ + const childList = displayLocation[i].child.filter ( item => item.value !== null && item.value !== ''); + if(childList.length === 0){ + displayLocation.splice(i,1) + } + } + } + this.dynamicFormField = displayLocation sessionStorage.setItem('displayLocation', JSON.stringify(displayLocation)) this.loading = false