From ac8710b26b6cffb8296a0305541ce8aa26553ec0 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Wed, 23 Apr 2025 11:44:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A8=BD=E6=9F=A5=E6=96=87=E6=A1=A3=E5=8F=B3?= =?UTF-8?q?=E9=94=AE=E4=B8=8B=E8=BD=BD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trials-workbench/components/auditDocument/index.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/views/trials/trials-workbench/components/auditDocument/index.vue b/src/views/trials/trials-workbench/components/auditDocument/index.vue index 77503183..2e8e9bcd 100644 --- a/src/views/trials/trials-workbench/components/auditDocument/index.vue +++ b/src/views/trials/trials-workbench/components/auditDocument/index.vue @@ -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])