Ver código fonte

脚本生成快照url调整

wy 10 meses atrás
pai
commit
4f327af6cb
1 arquivos alterados com 4 adições e 1 exclusões
  1. 4 1
      src/plugins/ibps/index.js

+ 4 - 1
src/plugins/ibps/index.js

@@ -78,8 +78,11 @@ export default {
         }
         }
         const downloadReport = (src, where, type = 6) => {
         const downloadReport = (src, where, type = 6) => {
             // 目前可用type    6:生成报表的pdf文件【默认】   7:生成报表的word文件   3:生成报表的excel文件
             // 目前可用type    6:生成报表的pdf文件【默认】   7:生成报表的word文件   3:生成报表的excel文件
-            return `${BASE_URL}demo/reportServlet?action=${type}&file=${encodeURIComponent(src)}.rpx&print=1&srcType=file&paramString=${getParams(where)}`
+            //console.log('downloadReport',`${BASE_URL}demo/reportServlet?action=${type}&file=${encodeURIComponent(REPORT_PATH + '/' + src)}&print=1&srcType=file&paramString=${getParams(where)}`)
+            // return `${BASE_URL}demo/reportServlet?action=${type}&file=${encodeURIComponent(src)}.rpx&print=1&srcType=file&paramString=${getParams(where)}`
+            return `${BASE_URL}demo/reportServlet?action=${type}&file=${encodeURIComponent(REPORT_PATH + '/' + src)}&print=1&srcType=file&paramString=${getParams(where)}`
         }
         }
+      
         const timer = setInterval(() => { // 定时循环添加参数
         const timer = setInterval(() => { // 定时循环添加参数
             if (getToken()) {
             if (getToken()) {
                 // 报表路径
                 // 报表路径