|
@@ -271,6 +271,8 @@ export default {
|
|
|
subReportId: this.$route.query.subReportId
|
|
|
})
|
|
|
}
|
|
|
+ // 数据埋点
|
|
|
+ this.monthlyReportBuriedPoint()
|
|
|
},
|
|
|
destroyed() {
|
|
|
this.indexShow = false
|
|
@@ -489,7 +491,30 @@ export default {
|
|
|
if (res.code === 200) {
|
|
|
this.monthlyReportPreView = res.data
|
|
|
}
|
|
|
+ },
|
|
|
+ // 埋点
|
|
|
+ monthlyReportBuriedPoint() {
|
|
|
+ const { pageType, type } = this.$route.query
|
|
|
+ if (type !== 'create') {
|
|
|
+ // 月报编辑
|
|
|
+ if (pageType === 'editAll') {
|
|
|
+ window.log({ c: 'report_view', d: 'report_view_edit' })
|
|
|
+ }
|
|
|
+ // 月报浏览
|
|
|
+ if (pageType === 'readAll') {
|
|
|
+ window.log({ c: 'report_view', d: 'report_view_only' })
|
|
|
+ }
|
|
|
+ // 单业务线编辑
|
|
|
+ if (pageType === 'edit') {
|
|
|
+ window.log({ c: 'report_view', d: 'report_view_only_edit' })
|
|
|
+ }
|
|
|
+ // 单业务线浏览
|
|
|
+ if (pageType === 'read') {
|
|
|
+ window.log({ c: 'report_view', d: 'report_view' })
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
</script>
|