版本记录删除与下载问题
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
0f944343b3
commit
9df1444e3d
|
@ -379,9 +379,15 @@ export default {
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
// 下载
|
// 下载
|
||||||
async downLoad(list) {
|
async downLoad(list, row = {}) {
|
||||||
if (!this.isManage) return false
|
if (!this.isManage) return false
|
||||||
try {
|
try {
|
||||||
|
if (row.Id) {
|
||||||
|
return await downLoadFile(
|
||||||
|
this.OSSclientConfig.basePath + row.FilePath,
|
||||||
|
row.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])
|
||||||
|
@ -691,11 +697,13 @@ export default {
|
||||||
let res = await deleteAuditDocument(data)
|
let res = await deleteAuditDocument(data)
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
this.checkList = []
|
this.checkList = []
|
||||||
this.rowData = {}
|
|
||||||
this.getList(this.rowData.Id)
|
|
||||||
if (this.$refs.versionDetail) {
|
if (this.$refs.versionDetail) {
|
||||||
// this.$refs.versionDetail.getHistoricalVersion()
|
// this.$refs.versionDetail.getHistoricalVersion()
|
||||||
|
this.getList(this.rowData.Id)
|
||||||
this.checkList = [this.rowData.Id]
|
this.checkList = [this.rowData.Id]
|
||||||
|
} else {
|
||||||
|
this.getList()
|
||||||
|
this.rowData = {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
@ -1056,7 +1064,7 @@ export default {
|
||||||
this.stickup()
|
this.stickup()
|
||||||
}
|
}
|
||||||
if (key === 'downLoad') {
|
if (key === 'downLoad') {
|
||||||
this.downLoad(this.checkList)
|
this.downLoad(this.checkList, row)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
setRowStyle({ row, rowIndex }) {
|
setRowStyle({ row, rowIndex }) {
|
||||||
|
|
Loading…
Reference in New Issue