update 会议纪要和上传文件,没有文件可导出增加提示

This commit is contained in:
danshihao
2024-03-19 16:02:42 +08:00
parent d564a994d1
commit 51f8c33f0d
@@ -340,6 +340,11 @@ export default {
},
// 导出zip
handleExportZip () {
// 如果列表中没有数据,就提示
if (this.fileList.length === 0) {
this.$message.warning('暂无可导出文件')
return
}
// 有勾选就导出勾选,没有勾选就导出所有
const ids = this.selectedRowKeys.length ? this.selectedRowKeys.join(',') : this.fileList.map(item => item.id).join(',')
downloadFileZip('sys/common/zipDownload', this.title + '.zip', {