版本记录删除与下载问题
continuous-integration/drone/push Build is passing Details

uat
wangxiaoshuang 2025-04-10 16:23:45 +08:00
parent 0f944343b3
commit 9df1444e3d
1 changed files with 12 additions and 4 deletions

View File

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