ソースを参照

分析反馈流程优化

洪海涛 4 年 前
コミット
d672d67545

+ 5 - 3
src/views/monthlyReport/v1/childrenPage/editReport/components/MrTable/Analysis.vue

@@ -177,7 +177,7 @@ export default {
       this.$forceUpdate()
     },
     delItem(index) {
-      console.log('删除')
+      // console.log('删除')
       this.analyticFeedback.analyticContents.splice(index, 1)
     },
     addSubItem(index) {
@@ -193,7 +193,7 @@ export default {
       this.$forceUpdate()
     },
     delSubItem(index, subindex) {
-      console.log(index, subindex)
+      // console.log(index, subindex)
       this.analyticFeedback.analyticContents[index].improvementItems.splice(
         subindex,
         1
@@ -205,7 +205,7 @@ export default {
       this.isBg = true
     },
     normalDialogCancel() {
-      console.log(210, '这里隐藏了时间', this.$refs['dialogConfirm'].visible)
+      // console.log(210, '这里隐藏了时间', this.$refs['dialogConfirm'].visible)
       if (!this.$refs['dialogConfirm'].visible) {
         this.isBg = false
       }
@@ -216,9 +216,11 @@ export default {
       this.$refs.normalDialog.visible = true
     },
     updateModule(key) {
+      // console.log(key)
       const { analyticFeedback, rowIndex } = this
       if (key && key === 'Submission') {
         analyticFeedback.isCommitted = true
+        analyticFeedback.feedbackType = 'feedback_commit'
       }
       this.oldBaseData = _.cloneDeep(this.baseData)
       this.$emit('upData', {

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

@@ -127,7 +127,7 @@ export default {
   methods: {
     setHold(index, subIndex, subItem) {
       subItem.isProgressEdit = false
-      console.log(this.analyticFeedback)
+      // console.log(this.analyticFeedback)
       if (subItem.isHold) {
         subItem.isHold = false
         this.$forceUpdate()
@@ -136,7 +136,7 @@ export default {
       this.$refs.Hold.open(index, subIndex, subItem.holdReason)
     },
     upHold({ index, subIndex, holdReason }) {
-      console.log({ index, subIndex, holdReason })
+      // console.log({ index, subIndex, holdReason })
       this.analyticFeedback.analyticContents[index].improvementItems[
         subIndex
       ].isHold = true

+ 12 - 8
src/views/monthlyReport/v1/childrenPage/editReport/components/MrTable/index.vue

@@ -450,7 +450,7 @@ export default {
         this.tableData.splice(scope.$index, 1)
       }
       if (btnItem.value === '链接') {
-        console.log(scope)
+        // console.log(scope)
         this.$refs['LinkEdit'].open(scope.row.operationTarget || '', scope.$index)
         // console.log(btnItem, scope, this.columns)
       }
@@ -466,13 +466,13 @@ export default {
         })
       }
       if (btnItem.value === '分析反馈') {
-        console.log(293, btnItem, scope)
+        // console.log(293, btnItem, scope)
         this.$refs.Analysis.open(scope.row.analyticFeedback, scope.$index)
       }
     },
     // 另存为
     saveAsRow(command, row, item) {
-      console.log(414)
+      // console.log(414)
       this.$store.commit('monthlyReportEdit/SAVE_AS', {
         tableHeaders: this.columns,
         tableRows: row,
@@ -488,7 +488,11 @@ export default {
         this.tableData[rowIndex].analyticFeedback = _.cloneDeep(
           analyticFeedback
         )
-        this.setAnalyticFeedback('feedbackType')
+        let feedbackType = ''
+        if (analyticFeedback.hasOwnProperty('feedbackType')) {
+          feedbackType = 'feedbackType'
+        }
+        this.setAnalyticFeedback(feedbackType)
       }
     },
     addTableData() {
@@ -578,13 +582,13 @@ export default {
         const run = (arr) => {
           arr.forEach((elm) => {
             if (elm.domKey === this.domKey) {
-              console.log(elm)
+              // console.log(elm)
               obj = _.cloneDeep(elm)
             }
             if (elm.content.length) {
               elm.content.forEach((item) => {
                 if (item.domKey === this.domKey) {
-                  console.log(elm)
+                  // console.log(elm)
                   obj = _.cloneDeep(elm)
                 }
               })
@@ -691,12 +695,12 @@ export default {
     },
     // 修改链接
     linkEditChange({ rowIndex, addresLink }) {
-      console.log(rowIndex, addresLink)
+      // console.log(rowIndex, addresLink)
       this.tableData[rowIndex].operationTarget = addresLink
     },
     // 页面跳转
     goto(url) {
-      console.log(url)
+      // console.log(url)
       url && window.open(url, '_blank')
     }
   }

+ 2 - 2
src/views/monthlyReport/v1/childrenPage/editReport/components/OverallOverviewOfTheClient/onlineQuestion.vue

@@ -135,8 +135,8 @@ export default {
       this.tabData = this.pageData.filter(
         (elm) => elm.clientType === this.active
       )[0]
-      console.log(this.tabData)
-      console.log(this.tabData.onlineProblemCopywriters)
+      // console.log(this.tabData)
+      // console.log(this.tabData.onlineProblemCopywriters)
 
       this.pieData = this.tabData.onlineProblemCopywriters.filter(elm => elm.total)
       this.option.series[0].data = this.pieData

+ 1 - 1
src/views/monthlyReport/v1/childrenPage/editReport/components/OverallOverviewOfTheClient/qualityProcess.vue

@@ -218,7 +218,7 @@ export default {
       // if (this.pieData.length) {
       //   this.myChart.setOption(this.option)
       // }
-      console.log(this.option)
+      // console.log(this.option)
       this.myChart.setOption(this.option)
     }
   }

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

@@ -76,7 +76,7 @@ export default {
     },
     refreshReport() {
       this.$refs.dialogRefresh.visible = false
-      console.log('refreshReport', this.activeName, 30, this.subTabsActive, this.tabKey)
+      // console.log('refreshReport', this.activeName, 30, this.subTabsActive, this.tabKey)
       this.animateClass = 'refresh-animate-start'
       this.$store.dispatch('monthlyReportEdit/refreshReport', {
         domKey: this.domKey,

+ 2 - 2
src/views/monthlyReport/v1/childrenPage/editReport/components/core.vue

@@ -223,7 +223,7 @@ export default {
     }
   },
   mounted() {
-    console.log(212)
+    // console.log(212)
     if (
       this.baseData &&
       this.baseData.children &&
@@ -336,7 +336,7 @@ export default {
       if (this.baseData.content.length) {
         params.normalAreaName = this.baseData.content[0].value
       }
-      console.log(params)
+      // console.log(params)
       this.$nextTick(() => {
         this.$refs.markingIssues.openModal(params)
       })