稽查文档右键下载问题
continuous-integration/drone/push Build is passing Details

uat
wangxiaoshuang 2025-04-23 11:44:05 +08:00
parent 1130b55677
commit ac8710b26b
1 changed files with 5 additions and 3 deletions

View File

@ -381,19 +381,21 @@ export default {
async downLoad(list, row = {}) {
if (!this.isManage) return false
try {
if (row.Id) {
if (row.Id && row.AuditDocumentTypeEnum) {
let name = row.Name.split('.')[1] ? row.Name : `${row.Name}.${row.FileFormat}`
return await downLoadFile(
this.OSSclientConfig.basePath + row.FilePath,
row.Name
name
)
}
let arr = this.filterExternalIds(this.tableData, list)
if (arr && arr.length === 1) {
let data = this.getData(this.tableData, arr[0])
if (data.AuditDocumentTypeEnum) {
let name = data.Name.split('.')[1] ? data.Name : `${data.Name}.${data.FileFormat}`
return await downLoadFile(
this.OSSclientConfig.basePath + data.FilePath,
data.Name
name
)
} else {
let dataArray = this.getDataPath([data])