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 }) {