|
|
@@ -57,7 +57,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { queryPageList, deleteFile } from '@/api/platform/file/attachment'
|
|
|
-import { downloadFile } from '@/business/platform/file/utils'
|
|
|
+import { downloadFile, downloadFileByZip } from '@/business/platform/file/utils'
|
|
|
import ActionUtils from '@/utils/action'
|
|
|
import FixHeight from '@/mixins/height'
|
|
|
import IbpsUploader from '@/business/platform/file/uploader'
|
|
|
@@ -125,6 +125,11 @@ export default {
|
|
|
label: '上传',
|
|
|
icon: 'ibps-icon-upload'
|
|
|
},
|
|
|
+ {
|
|
|
+ key: 'downloadZip',
|
|
|
+ label: '批量下载',
|
|
|
+ icon: 'ibps-icon-download'
|
|
|
+ },
|
|
|
{
|
|
|
key: 'remove'
|
|
|
}
|
|
|
@@ -295,6 +300,11 @@ export default {
|
|
|
case 'download': // 下载
|
|
|
this.handleDownload(data)
|
|
|
break
|
|
|
+ case 'downloadZip': // 批量下载
|
|
|
+ ActionUtils.selectedMultiRecord(selection).then((id) => {
|
|
|
+ downloadFileByZip(id)
|
|
|
+ })
|
|
|
+ break
|
|
|
case 'remove': // 删除
|
|
|
ActionUtils.removeRecord(selection).then((ids) => {
|
|
|
this.handleRemove(ids)
|