feat: 新增文件夹/批量下载权限控制

This commit is contained in:
jmal 2025-06-09 14:21:28 +08:00
parent d62a3d3a38
commit 63a8ecc9f9
2 changed files with 9 additions and 1 deletions

View File

@ -430,6 +430,14 @@ export default {
params
})
},
// 是否允许批量下载
isAllowPackageDownload: function(params) {
return request({
url: '/isAllowPackageDownload',
method: 'get',
params
})
},
// 根据id获取文件信息
getFileInfoById: function(params) {
return request({

View File

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