소스 검색

月报:分析反馈

洪海涛 4 년 전
부모
커밋
331ebb3405
1개의 변경된 파일5개의 추가작업 그리고 6개의 파일을 삭제
  1. 5 6
      src/views/monthlyReport/childrenPage/editReport/components/MrTable/index.vue

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

@@ -446,7 +446,6 @@ export default {
   //   }
   // },
   mounted() {
-    console.log(this.subReportInfo)
     this.$nextTick(() => {
       this.setAnalyticFeedbackTitle()
       this.init()
@@ -682,10 +681,10 @@ export default {
       let obj = null
       const run = (arr) => {
         arr.forEach((elm) => {
-          console.log(elm, '分析反馈')
           if (elm.domKey === this.domKey) {
+            console.log(elm, 686)
             if (!version) {
-              version = elm.domKey
+              version = elm.version
             }
             obj = _.cloneDeep(elm)
           }
@@ -748,7 +747,7 @@ export default {
         // this.tabsActive.indexOf('本月重点问题') > -1
         this.isExpand
       ) {
-        const { obj, version } = this.getTableObjAndVersion()
+        const { obj } = this.getTableObjAndVersion()
         const params = {
           reportId: this.$route.query.reportId,
           subReportName: this.subReportName,
@@ -760,10 +759,10 @@ export default {
         if (this.$route.query.pageType === 'readAll' && obj) {
           params.subReportName = `${obj.title}`
           // 获取查看完整月报状态下的子月报ID的version
-          params.version = version || ''
+          params.version = obj.version || 0
         } else {
           // 获取查看单个子月报状态下的子月报ID的version
-          params.version = this.version || ''
+          params.version = this.version || 0
         }
         // 提交数据
         if (obj && obj.content[0].tableRows.length) {