update 分发资料下载
This commit is contained in:
@@ -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 = '导出文件'
|
||||
|
||||
Reference in New Issue
Block a user