update 分发资料下载

This commit is contained in:
zhaoxiao
2022-04-26 16:26:12 +08:00
parent d7af76158c
commit ac5c1feb73
@@ -58,6 +58,7 @@
<span slot="action" class="action-span-cell" slot-scope="text, record" v-if="canOperate">
<a @click="handleDistribute(record.id)" v-has="'fileMaintenance:distribute'">分发</a>
<a @click="handleDownload(record)" v-has="'fileMaintenance:download'">下载</a>
<a @click="handleDelete(record.id)" v-has="'fileMaintenance:delete'">删除</a>
</span>
</a-table>
@@ -202,6 +203,13 @@ export default {
this.distributeModalVisible = true
this.isBatchDistribute = false
},
/**
* 下载
* @param record
*/
handleDownload(record) {
downloadFile(`sys/common/download/${record.fileId}`, record.fileName)
},
handleExportXls(fileName) {
if (!fileName || typeof fileName != 'string') {
fileName = '导出文件'