ソースを参照

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

yujinwen 1 ヶ月 前
コミット
946e157e31

+ 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;