소스 검색

'改快手账户报表错误'

魏志佳 4 년 전
부모
커밋
9b469cdf75
2개의 변경된 파일11개의 추가작업 그리고 8개의 파일을 삭제
  1. 4 1
      src/views/dashboard/Analysis.vue
  2. 7 7
      src/views/modules/Statistics/KSAccountReport.vue

+ 4 - 1
src/views/dashboard/Analysis.vue

@@ -406,7 +406,10 @@
             console.log(res)
             if(res.success){
                this.visible=res.showPopup;
-               this.versionId=res.data.id;
+               if(res.data.id){
+                 this.versionId=res.data.id;
+               }
+               
             }
            
         })

+ 7 - 7
src/views/modules/Statistics/KSAccountReport.vue

@@ -1284,13 +1284,13 @@ export default {
     },
   },
   mounted() {
-    // this.accountHttp()
-    // new Promise((resolve, reject) => {
-    //   this.getEchartData('sectionChart', this.sectionOption)
-    //   resolve()
-    // }).then(()=>{
-    //   this.myChart.clear()
-    // })
+    this.accountHttp()
+    new Promise((resolve, reject) => {
+      this.getEchartData('sectionChart', this.sectionOption)
+      resolve()
+    }).then(()=>{
+      this.myChart.clear()
+    })
     
     postAction('/toutiao/videoReportDaily/getColumnJson', {
       columnType: 2