Browse Source

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

yujinwen 1 month ago
parent
commit
946e157e31
2 changed files with 2 additions and 2 deletions
  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: {
   methods: {
     async getreportdetail() {
     async getreportdetail() {
-      const { Data,Ret  } = await reportDetail({ ReportCode: this.id });
+      const { Data,Ret  } = await reportDetail({ ReportCode: this.id,IsReplace:1 });
         if (Ret !== 200) return
         if (Ret !== 200) return
         this.reportInfo = Data.Report;
         this.reportInfo = Data.Report;
         this.configInfo = {
         this.configInfo = {

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

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