【修改】调整下载传参

This commit is contained in:
zhoulingpo
2023-05-25 14:45:17 +08:00
parent 02e9d548be
commit 1f9d6948f3
+3 -3
View File
@@ -257,10 +257,10 @@ export default {
}
},
// 预览
previewRow(id) {
previewRow(fileId,reportId) {
// this.watermarkText = `${this.$store.state.userInfo.usname} ${formatDate(+new Date(), 'yyyy年MM月dd日 hh:mm:ss')}`
// this.row = JSON.parse(this.$route.query.row)
this.$api.report.reportGetReportHtmlId({id: id}).then(({data}) => {
this.$api.report.reportGetReportHtmlId({fileId: fileId,reportId:reportId}).then(({data}) => {
this.content = data.content
})
},
@@ -272,7 +272,7 @@ export default {
this.showText=true
}else{
this.showText=false
this.previewRow(this.file.fileId)
this.previewRow(this.file.fileId,this.row.id)
}
},