From 9df1444e3db844232c8ccc6c7156ae17408c96ed Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Thu, 10 Apr 2025 16:23:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC=E8=AE=B0=E5=BD=95=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E4=B8=8E=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 --- .../components/auditDocument/index.vue | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/views/trials/trials-workbench/components/auditDocument/index.vue b/src/views/trials/trials-workbench/components/auditDocument/index.vue index 6610f486..b1a1fe09 100644 --- a/src/views/trials/trials-workbench/components/auditDocument/index.vue +++ b/src/views/trials/trials-workbench/components/auditDocument/index.vue @@ -379,9 +379,15 @@ export default { this.getList() }, // 下载 - async downLoad(list) { + async downLoad(list, row = {}) { if (!this.isManage) return false try { + if (row.Id) { + return await downLoadFile( + this.OSSclientConfig.basePath + row.FilePath, + row.Name + ) + } let arr = this.filterExternalIds(this.tableData, list) if (arr && arr.length === 1) { let data = this.getData(this.tableData, arr[0]) @@ -691,11 +697,13 @@ export default { let res = await deleteAuditDocument(data) if (res.IsSuccess) { this.checkList = [] - this.rowData = {} - this.getList(this.rowData.Id) if (this.$refs.versionDetail) { // this.$refs.versionDetail.getHistoricalVersion() + this.getList(this.rowData.Id) this.checkList = [this.rowData.Id] + } else { + this.getList() + this.rowData = {} } } } catch (err) { @@ -1056,7 +1064,7 @@ export default { this.stickup() } if (key === 'downLoad') { - this.downLoad(this.checkList) + this.downLoad(this.checkList, row) } }, setRowStyle({ row, rowIndex }) {