diff --git a/src/views/Report/ReportDetail.vue b/src/views/Report/ReportDetail.vue index 807a384..945d953 100644 --- a/src/views/Report/ReportDetail.vue +++ b/src/views/Report/ReportDetail.vue @@ -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) } },