稽查文档右键下载问题
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
1130b55677
commit
ac8710b26b
|
@ -381,19 +381,21 @@ export default {
|
||||||
async downLoad(list, row = {}) {
|
async downLoad(list, row = {}) {
|
||||||
if (!this.isManage) return false
|
if (!this.isManage) return false
|
||||||
try {
|
try {
|
||||||
if (row.Id) {
|
if (row.Id && row.AuditDocumentTypeEnum) {
|
||||||
|
let name = row.Name.split('.')[1] ? row.Name : `${row.Name}.${row.FileFormat}`
|
||||||
return await downLoadFile(
|
return await downLoadFile(
|
||||||
this.OSSclientConfig.basePath + row.FilePath,
|
this.OSSclientConfig.basePath + row.FilePath,
|
||||||
row.Name
|
name
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
let arr = this.filterExternalIds(this.tableData, list)
|
let arr = this.filterExternalIds(this.tableData, list)
|
||||||
if (arr && arr.length === 1) {
|
if (arr && arr.length === 1) {
|
||||||
let data = this.getData(this.tableData, arr[0])
|
let data = this.getData(this.tableData, arr[0])
|
||||||
if (data.AuditDocumentTypeEnum) {
|
if (data.AuditDocumentTypeEnum) {
|
||||||
|
let name = data.Name.split('.')[1] ? data.Name : `${data.Name}.${data.FileFormat}`
|
||||||
return await downLoadFile(
|
return await downLoadFile(
|
||||||
this.OSSclientConfig.basePath + data.FilePath,
|
this.OSSclientConfig.basePath + data.FilePath,
|
||||||
data.Name
|
name
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
let dataArray = this.getDataPath([data])
|
let dataArray = this.getDataPath([data])
|
||||||
|
|
Loading…
Reference in New Issue