【修改】调整下载传参

This commit is contained in:
zhoulingpo
2023-05-25 14:10:18 +08:00
parent fdd0c1f108
commit 65c24c1663
4 changed files with 73 additions and 13 deletions
+8 -2
View File
@@ -67,7 +67,8 @@
<el-col :span="20" style="padding-left: 15px">
<div class="table">
<vxe-table ref="xTable" :data="tableData" @checkbox-all="selectAllEvent" @checkbox-change="selectChangeEvent"
:empty-render="{name: 'NotData'}" align="center" border stripe v-table-min-height="'calc(100vh - 320px)'">
:empty-render="{name: 'NotData'}" align="center" border stripe
v-table-min-height="'calc(100vh - 320px)'">
<vxe-column type="checkbox" width="60"></vxe-column>
<vxe-column show-overflow show-header-overflow type="seq" title="序号" width="77">
<template #default="{ row, rowIndex }">
@@ -198,6 +199,7 @@ import { downloadFile } from "../../utils/downloadFile";
import { formatDate } from '@/utils/date'
import VueTagsInput from '@johmun/vue-tags-input';
import labelModalVue from './reportManager/labelModal.vue';
import {sendTrackEvent} from "@/utils/quickTracking";
export default {
name: "ReportManager",
components: {
@@ -718,6 +720,10 @@ export default {
},
// 预览
previewRow(row) {
sendTrackEvent({
eventName: 'preview_click',
params: {id:row.id,name:row.name}
})
// this.fullscreen = false;
// // 更新预览水印的时间戳
// this.watermarkText = `${this.$store.state.userInfo.usname} ${formatDate(+new Date(), 'yyyy年MM月dd日 hh:mm:ss')}`;
@@ -736,7 +742,7 @@ export default {
// cancelButtonText: '取消',
// type: 'warning'
// }).then(() => {
this.$api.report.reportDownload({ fileId: row.fileId,repostId:row.id }).then(res => {
this.$api.report.reportDownload({ reportId:row.id }).then(res => {
downloadFile(res);
})
// })