feat: There is no way the, 删除123 企标详情 加逻辑 企标 关联属性数据不存在 报错问题

This commit is contained in:
super_liu
2022-03-01 10:41:28 +08:00
parent 5ad5d8f4d6
commit a3b4d8ee7d
2 changed files with 6 additions and 5 deletions
@@ -3179,12 +3179,14 @@ export default {
location['child1'] = childList
}
}
for (let i = 0; i < displayLocation.length; i++) {
// sss11
if(displayLocation[i].label !== '基础信息' && displayLocation[i].label !== '过程稿件'){
const childList = displayLocation[i].child.filter ( item => item.value !== null && item.value !== '');
if(childList.length === 0){
if((displayLocation[i].label !== '基础信息' && displayLocation[i].label !== '过程稿件') || !dynamicFormField){
let childList = []
if(displayLocation[i].child){
childList = displayLocation[i].child.filter ( item => item.value !== null && item.value !== '');
}
if(displayLocation[i].label !== '基础信息' && childList.length === 0){
displayLocation.splice(i,1)
}
}