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 @@
+ 分享
预览
设计
编辑
@@ -144,6 +145,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({