Browse Source

oss地址补充,收方单预览

laiguoran 2 years ago
parent
commit
5e51f64c9f
2 changed files with 2 additions and 0 deletions
  1. 1 0
      app/controller/report_controller.js
  2. 1 0
      app/view/report/rpt_individual.ejs

+ 1 - 0
app/controller/report_controller.js

@@ -372,6 +372,7 @@ module.exports = app => {
                 // console.log('pageSize: ' + pageSize);
                 const renderData = {
                     size: pageSize,
+                    OSS_PATH: ctx.app.config.fujianOssPath,
                     // orientation: params.orientation,
                 };
                 await ctx.render('report/rpt_individual.ejs', renderData);

+ 1 - 0
app/view/report/rpt_individual.ejs

@@ -32,6 +32,7 @@
 </body>
 <SCRIPT type="text/javascript">
     const SCREEN_DPI = [96, 96];
+    const OSS_PATH = '<%- OSS_PATH %>';
     const WAIT_TIME_EXPORT = 300000;
     const current_stage_status = 3;
     const PAGE_SHOW = {closeWatermark: 0, closeExportPdf: 0, closeExportExcel: 0, showArchive: 0};