|
|
@ -589,24 +589,36 @@ const getAnnexFileList = async (row) => { |
|
|
|
const annexData = annexTableData.value.find(annex=>annex.label === item.label) |
|
|
|
let subDetailTableData = null |
|
|
|
if(annexData){ |
|
|
|
|
|
|
|
// HL-5940 maxLength 是限制的列表最大数量 |
|
|
|
let hiddenUpload = false |
|
|
|
if(item.maxLength&&annexList.length>=item.maxLength){ |
|
|
|
if(item.maxLength){ |
|
|
|
if(annexList.length>=item.maxLength){ |
|
|
|
hiddenUpload = true |
|
|
|
}else{ |
|
|
|
hiddenUpload = false |
|
|
|
} |
|
|
|
let findAnnex = annexTableData.value.find(item1=>item1.label==item.label) |
|
|
|
if(findAnnex){ |
|
|
|
findAnnex.hiddenUpload = hiddenUpload || item.hiddenUpload || false // 是否展示上传按钮 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
annexData.annexList = annexList |
|
|
|
subDetailTableData = annexData.subDetailTableData |
|
|
|
}else{ |
|
|
|
|
|
|
|
subDetailTableData = item?.subDetailTableData |
|
|
|
// HL-5940 maxLength 是限制的列表最大数量 |
|
|
|
let hiddenUpload = false |
|
|
|
if(item.maxLength&&annexList.length>=item.maxLength){ |
|
|
|
if(item.maxLength){ |
|
|
|
if(annexList.length>=item.maxLength){ |
|
|
|
hiddenUpload = true |
|
|
|
}else{ |
|
|
|
hiddenUpload = false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
annexTableData.value.push({ |
|
|
|
align:item.align, |
|
|
|