Parcourir la source

生成报告pdf页面的获取报告详情接口增加IsReplace字段让后端去替换静态资源地址

yujinwen il y a 1 mois
Parent
commit
946e157e31
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1 1
      src/views/report/reportDetailPdf.vue
  2. 1 1
      src/views/smartReport/detailPdf.vue

+ 1 - 1
src/views/report/reportDetailPdf.vue

@@ -115,7 +115,7 @@ export default {
   },
   methods: {
     async getreportdetail() {
-      const { Data,Ret  } = await reportDetail({ ReportCode: this.id });
+      const { Data,Ret  } = await reportDetail({ ReportCode: this.id,IsReplace:1 });
         if (Ret !== 200) return
         this.reportInfo = Data.Report;
         this.configInfo = {

+ 1 - 1
src/views/smartReport/detailPdf.vue

@@ -100,7 +100,7 @@ export default {
       }
     },
     async getreportdetail() {
-      const { Data, Ret } = await reportDetail({ ReportCode: this.id });
+      const { Data, Ret } = await reportDetail({ ReportCode: this.id,IsReplace:1 });
       if (Ret !== 200) return;
       
       this.reportInfo = Data.Report;