|
@ -589,10 +589,25 @@ const getAnnexFileList = async (row) => { |
|
|
const annexData = annexTableData.value.find(annex=>annex.label === item.label) |
|
|
const annexData = annexTableData.value.find(annex=>annex.label === item.label) |
|
|
let subDetailTableData = null |
|
|
let subDetailTableData = null |
|
|
if(annexData){ |
|
|
if(annexData){ |
|
|
|
|
|
// HL-5940 maxLength 是限制的列表最大数量 |
|
|
|
|
|
let hiddenUpload = false |
|
|
|
|
|
if(item.maxLength&&annexList.length>=item.maxLength){ |
|
|
|
|
|
hiddenUpload = true |
|
|
|
|
|
let findAnnex = annexTableData.value.find(item1=>item1.label==item.label) |
|
|
|
|
|
if(findAnnex){ |
|
|
|
|
|
findAnnex.hiddenUpload = hiddenUpload || item.hiddenUpload || false // 是否展示上传按钮 |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
annexData.annexList = annexList |
|
|
annexData.annexList = annexList |
|
|
subDetailTableData = annexData.subDetailTableData |
|
|
subDetailTableData = annexData.subDetailTableData |
|
|
}else{ |
|
|
}else{ |
|
|
subDetailTableData = item?.subDetailTableData |
|
|
subDetailTableData = item?.subDetailTableData |
|
|
|
|
|
// HL-5940 maxLength 是限制的列表最大数量 |
|
|
|
|
|
let hiddenUpload = false |
|
|
|
|
|
if(item.maxLength&&annexList.length>=item.maxLength){ |
|
|
|
|
|
hiddenUpload = true |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
annexTableData.value.push({ |
|
|
annexTableData.value.push({ |
|
|
align:item.align, |
|
|
align:item.align, |
|
|
label: item.label, |
|
|
label: item.label, |
|
@ -606,7 +621,7 @@ const getAnnexFileList = async (row) => { |
|
|
showPreview:item.showPreview||false, // 是否展示预览按钮 |
|
|
showPreview:item.showPreview||false, // 是否展示预览按钮 |
|
|
showDownload:item.showDownload||false, // 是否展示下载按钮 |
|
|
showDownload:item.showDownload||false, // 是否展示下载按钮 |
|
|
hiddenDelete:item.hiddenDelete || false, // 是否展示删除按钮 |
|
|
hiddenDelete:item.hiddenDelete || false, // 是否展示删除按钮 |
|
|
hiddenUpload:item.hiddenUpload || false, // 是否展示上传按钮 |
|
|
hiddenUpload:hiddenUpload || item.hiddenUpload || false, // 是否展示上传按钮 |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
if(subDetailTableData){ |
|
|
if(subDetailTableData){ |
|
|