commit
c3e193ea57
@ -430,6 +430,14 @@ export default {
|
||||
params
|
||||
})
|
||||
},
|
||||
// 是否允许批量下载
|
||||
isAllowPackageDownload: function(params) {
|
||||
return request({
|
||||
url: '/isAllowPackageDownload',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
},
|
||||
// 根据id获取文件信息
|
||||
getFileInfoById: function(params) {
|
||||
return request({
|
||||
|
||||
@ -81,7 +81,7 @@ export default {
|
||||
},
|
||||
// 打包下载文件
|
||||
packageDownload: function(fileIds) {
|
||||
fileApi.isAllowDownload({fileIds: fileIds}).then(() => {
|
||||
fileApi.isAllowPackageDownload({fileIds: fileIds}).then(() => {
|
||||
fileIds = fileIds.join(',')
|
||||
window.open(`${this.baseUrl}/packageDownload?fileIds=${fileIds}`, '_self')
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user