Преглед изворни кода

fix:历史报告下载报告-查看更多跳转处理

zhangsiya пре 1 година
родитељ
комит
2c697943ea

+ 2 - 1
apps/bigmember_pc/src/components/report-data/ReportList.vue

@@ -464,7 +464,8 @@ export default {
       const totalList = item.marketProfile ? this.sortMarketOverview(item.marketProfile) : []
       const options = {
         totalList: totalList,
-        sid: item.id
+        sid: item.id,
+        tab: 'history'
       }
       this.downloadReportFun(options)
     },

+ 4 - 1
apps/bigmember_pc/src/views/analysisReport/components/ReportDownloadDialog.vue

@@ -97,7 +97,6 @@ export default {
     }
   },
   created() {
-    console.log(this.options)
     this.getEmail()
     this.getResidueCount()
   },
@@ -176,6 +175,10 @@ export default {
     },
     // 查看更多
     viewMore () {
+      const id = this.options.sid
+      if(this.options.tab === 'history' && id) {
+        this.$router.push(`/desktop/report_analysis?id=${id}`)
+      }
       this.options.visible = false
     },
     // 去充值