【修改】预览

This commit is contained in:
zhoulingpo
2023-05-11 17:33:27 +08:00
parent e231a299b9
commit 80b9fabf53
+9 -7
View File
@@ -955,13 +955,15 @@ export default {
}, },
// 预览 // 预览
previewRow(row) { previewRow(row) {
this.fullscreen = false; // this.fullscreen = false;
// 更新预览水印的时间戳 // // 更新预览水印的时间戳
this.watermarkText = `${this.$store.state.userInfo.usname} ${formatDate(+new Date(), 'yyyy年MM月dd日 hh:mm:ss')}`; // this.watermarkText = `${this.$store.state.userInfo.usname} ${formatDate(+new Date(), 'yyyy年MM月dd日 hh:mm:ss')}`;
this.$api.report.reportGetReportHtmlId({ id: row.id }).then(({ data }) => { // this.$api.report.reportGetReportHtmlId({ id: row.id }).then(({ data }) => {
this.content = data.content; // this.content = data.content;
this.dialogPreview = true; // this.dialogPreview = true;
}) // })
this.$router.push({path: '/report/detail', query: {id: this.$route.query.id, reportId: row.id}})
}, },
// 下载 // 下载
downloadRow(row) { downloadRow(row) {