Browse Source

月报编辑、查看:添加埋点

洪海涛 4 years ago
parent
commit
ee6b2e6ba3

+ 1 - 1
src/views/monthlyReport/childrenPage/editReport/components/PushAndBanck.vue

@@ -62,7 +62,7 @@ export default {
     // 判断是否显示逗号
     isComma(label) {
       if (label.search(/裸奔上线次数/) > -1) {
-        if (this.isShowItem('全量回滚率')) {
+        if (this.isShowItem('裸奔上线率')) {
           return ','
         } else {
           return ''

+ 9 - 1
src/views/monthlyReport/childrenPage/editReport/index.vue

@@ -191,7 +191,7 @@
       :show-dialog="false"
       :title="'取消月报'"
       width="320px"
-      @succes="$router.push({ path: '/monthlyReport/index' })"
+      @succes="$router.push({ path: '/monthlyReport/index' });window.log({ c: 'report_edit', d: 'report_edit_cancel' })"
       @cancel="$refs.dialogCancel.visible = false"
     >
       <div class="report-delete">
@@ -468,6 +468,7 @@ export default {
             this.$store.commit('monthlyReportEdit/SET_LOADING', false)
           }
           if (key === 'cb') {
+            window.log({ c: 'report_edit', d: 'report_edit_save' })
             this.$message.success('保存成功!')
             // this.$router.push({ path: '/monthlyReport/index' })
           }
@@ -481,18 +482,21 @@ export default {
         this.$store.dispatch('monthlyReportEdit/confirmReport', {
           id: this.$route.query.subReportId,
           callback: () => {
+            window.log({ c: 'report_edit', d: 'report_edit_confirm' })
             this.$store.commit('monthlyReportEdit/SET_LOADING', false)
             this.$router.push({ path: '/monthlyReport/index' })
           }
         })
       })
     },
+    // 删除月报
     deleteReport(key) {
       this.$refs['dialogDelete'].visible = false
       if (key === '删除') {
         this.$store.dispatch('monthlyReportEdit/deleteReport', {
           key,
           callback: () => {
+            window.log({ c: 'report_edit', d: 'report_edit_delete' })
             this.$router.push({ path: '/monthlyReport/index' })
           }
         })
@@ -500,12 +504,14 @@ export default {
         // this.$message('删除操作已取消!')
       }
     },
+    // 月报发布确认
     publishAllReport(key) {
       this.$refs['dialogPublishAll'].visible = false
       this.$store.commit('monthlyReportEdit/SET_LOADING', true)
       this.$store.dispatch('monthlyReportEdit/publishAllReport', {
         id: this.$route.query.reportId,
         callback: () => {
+          window.log({ c: 'report_edit', d: 'report_edit_push' })
           this.$store.commit('monthlyReportEdit/SET_LOADING', false)
           this.$router.push({ path: '/monthlyReport/index' })
         }
@@ -531,6 +537,7 @@ export default {
       this.$store.dispatch('monthlyReportEdit/sendReport', {
         id: this.$route.query.reportId,
         callback: () => {
+          window.log({ c: 'report_edit', d: 'report_edit_send' })
           this.$store.commit('monthlyReportEdit/SET_LOADING', false)
           // this.$store.commit('monthlyReportEdit/SET_LOADING', false)
           this.$router.push({ path: '/monthlyReport/index' })
@@ -567,6 +574,7 @@ export default {
           subReportIds: list
         },
         callback: () => {
+          window.log({ c: 'report_edit', d: 'report_edit_return' })
           this.$store.commit('monthlyReportEdit/SET_LOADING', false)
           this.$message.success('退回成功!')
           this.$router.push({ path: '/monthlyReport/index' })