Forráskód Böngészése

Merge branch 'http_mock' into http_test

洪海涛 4 éve
szülő
commit
a0500abb25

+ 6 - 6
src/views/monthlyReport/childrenPage/editReport/components/MrTable/Analysis.vue

@@ -110,16 +110,16 @@
         </span>
       </div>
       <el-button
-type="text"
-icon="el-icon-plus"
-@click.stop="addItem"
+        type="text"
+        icon="el-icon-plus"
+        @click.stop="addItem"
         >新增问题
       </el-button>
       <template slot="save">
         <el-button
-type="primary"
-size="small"
-@click.stop="openDialogConfirm"
+          type="primary"
+          size="small"
+          @click.stop="openDialogConfirm"
           >提交<!-- @click.stop="updateModule('Submission')" -->
         </el-button>
       </template>

+ 2 - 0
src/views/monthlyReport/childrenPage/editReport/components/MrTable/TableExpandRow.vue

@@ -141,6 +141,7 @@ export default {
         subIndex
       ].isHold = true
       if (holdReason) {
+        window.log({ c: 'report_view', d: 'report_view_Feeback_hold' })
         this.analyticFeedback.analyticContents[index].improvementItems[
           subIndex
         ].holdReason = holdReason
@@ -162,6 +163,7 @@ export default {
         item.progress = 0
       }
       item.isProgressEdit = !item.isProgressEdit
+      window.log({ c: 'report_view', d: 'report_view_Feedback_upload' })
       this.$forceUpdate()
       this.$emit('upAnalyticFeedback')
     }

+ 2 - 1
src/views/monthlyReport/childrenPage/editReport/components/MrTable/index.vue

@@ -5,7 +5,7 @@
       <!-- :data="[...paging.tableData].splice(0,2)" -->
       <!--  :data="tableData" -->
       <el-table
-        :data="[...paging.tableData].splice(0,2)"
+        :data="tableData"
         border
         style="width: 100%; margin-top: 10px"
         highlight-current-row
@@ -540,6 +540,7 @@ export default {
     upDataAnalysis({ rowIndex, analyticFeedback }) {
       // console.log({ rowIndex, analyticFeedback })
       if (this.pageType.search(/edit/) < 0) {
+        window.log({ c: 'report_view', d: 'report_view_Feedback' })
         // console.log(rowIndex, analyticFeedback)
         this.feedbackIndex = rowIndex
         this.tableData[rowIndex].analyticFeedback = _.cloneDeep(

+ 25 - 0
src/views/monthlyReport/childrenPage/editReport/index.vue

@@ -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>