From b279ec37eff2fdf5efa580e91e6a6a3ad8610485 Mon Sep 17 00:00:00 2001
From: super_liu <396572590@qq.com>
Date: Mon, 8 Nov 2021 20:56:07 +0800
Subject: [PATCH] feat: There is no way the,
---
.../otherBussStandardDetails/index.vue | 44 ++++++++++---------
.../details/otherStandardDetails/index.vue | 16 +++++--
2 files changed, 35 insertions(+), 25 deletions(-)
diff --git a/src/pages/details/otherBussStandardDetails/index.vue b/src/pages/details/otherBussStandardDetails/index.vue
index 548e41d5b..e32ff56f3 100644
--- a/src/pages/details/otherBussStandardDetails/index.vue
+++ b/src/pages/details/otherBussStandardDetails/index.vue
@@ -71,7 +71,7 @@
{{ sarStandardsInfoEO.standName || '-' }}
@@ -2167,18 +2167,6 @@ export default { }) }) - console.log(displayLocation) - - 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) - } - } - } - displayLocation.forEach(location => { // 动态属性字段-FBGBJBD 单独添加至基础信息 const list = displayLocation.filter ( item => item.label === '过程稿件'); @@ -2203,11 +2191,17 @@ export default { const fieldOthers = child.filter(field => { return halfType.includes(field.attrType) }) - console.log(fieldOthers) location.child = [...fieldOthers, ...fieldsIsTextAreaOrFile].sort(this.compare('orderNum')) - console.log(location) }) - console.log(displayLocation) + 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 @@ -2231,6 +2225,14 @@ export default {