diff --git a/src/router/modules/report.js b/src/router/modules/report.js index e64224c..f3271c7 100644 --- a/src/router/modules/report.js +++ b/src/router/modules/report.js @@ -33,7 +33,13 @@ const routes = [ } } ] - } + }, + // 全屏报告 + { + path: '/report/fullscreen', + name: 'fullscreen', + component: () => import('../../views/Report/ReportFullscreenView.vue') + }, ] export default routes diff --git a/src/views/Report/ReportDetail.vue b/src/views/Report/ReportDetail.vue index 10eceba..16823a0 100644 --- a/src/views/Report/ReportDetail.vue +++ b/src/views/Report/ReportDetail.vue @@ -55,8 +55,11 @@
报告详情 - 报告下载 +
+ 全屏查看 + 报告下载 +
@@ -278,6 +281,10 @@ export default { } }, + // 跳转到新页签单独查看pdf + fullscreenView(){ + window.open('/report/fullscreen?id='+this.$route.query.id+'&reportId='+ this.row.id) + }, // 下载 downloadRow(row) { // this.$confirm('此操作将下载所选数据文件, 是否继续?', '提示', { @@ -302,7 +309,6 @@ export default { this.$api.report.getReportDetail(this.reportId).then(res => { this.row = res.data this.isAdmin = this.$store.getters.userInfo.usid==this.row.createUserId - // 需要给分数/2 this.handleFile(this.row.fileList[0]) }) }, diff --git a/src/views/Report/ReportFullscreenView.vue b/src/views/Report/ReportFullscreenView.vue new file mode 100644 index 0000000..f0b782f --- /dev/null +++ b/src/views/Report/ReportFullscreenView.vue @@ -0,0 +1,298 @@ + + + + +