From 114cf5ab00f53db6cba7ef6182496ccbbf8576b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E5=AD=90=E6=9D=8E=C2=B7De?= Date: Sun, 18 Jul 2021 18:19:14 +0800 Subject: [PATCH] Update index.vue --- report-ui/src/views/report/report/index.vue | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/report-ui/src/views/report/report/index.vue b/report-ui/src/views/report/report/index.vue index 77854969..c559c1ad 100644 --- a/report-ui/src/views/report/report/index.vue +++ b/report-ui/src/views/report/report/index.vue @@ -62,6 +62,7 @@ @@ -152,10 +154,11 @@ import { dataDictionary } from '@/api/common' import { getToken } from '@/utils/auth' import { reportPageList, addReport, editReport, delReport } from '@/api/report' import Dictionary from '@/components/Dictionary/index' +import Share from '@/views/report/report/components/share' var typeData export default { name: 'Report', - components: { Dictionary }, + components: { Dictionary, Share }, filters: { filterPushType(val) { for (var i = 0; i < typeData.dictionaryGroupOptions.length; i++) { @@ -204,6 +207,10 @@ export default { headers: { Authorization: getToken(), }, + + // 分享 + visibleForShareDialog: false, + reportCodeForShareDialog: '', } }, @@ -270,6 +277,11 @@ export default { this.reportCodeDisable = true } }, + // 分享 + share(val) { + this.reportCodeForShareDialog = val.reportCode + this.visibleForShareDialog = true + }, // 预览 preview(val) { var routeUrl = this.$router.resolve({