Procházet zdrojové kódy

脚本生成快照url调整

wy před 10 měsíci
rodič
revize
4f327af6cb
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  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) => {
             // 目前可用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(() => { // 定时循环添加参数
             if (getToken()) {
                 // 报表路径