From 1b214a96d371ce90578fb7d6c14eecfcba5f87f0 Mon Sep 17 00:00:00 2001
From: 涂煌豪 <tuhuanghao@prec-tech.com>
Date: 星期一, 11 四月 2022 18:52:32 +0800
Subject: [PATCH] Sfdc2PoContactBatch修改
---
force-app/main/default/pages/ConsumTrialPDF.page | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/force-app/main/default/pages/ConsumTrialPDF.page b/force-app/main/default/pages/ConsumTrialPDF.page
index 0403041..5276d59 100644
--- a/force-app/main/default/pages/ConsumTrialPDF.page
+++ b/force-app/main/default/pages/ConsumTrialPDF.page
@@ -360,7 +360,9 @@
var form = jQuery("<form method='post'></form>");
jQuery(document.body).append(form);
- form.attr({"action":staticResourceFile.viewUnifiedContactUrl+"?from="+encodeURIComponent(window.location.href)});
+ let href = window.location.href
+ let arr = href.split('/')
+ form.attr({"action":staticResourceFile.viewUnifiedContactUrl+"?from="+encodeURIComponent(href)+"&fileName="+encodeURIComponent(arr[arr.length-1].split('?')[0])});
// form.attr({"action":"http://127.0.0.1:8080/a/d?from="+encodeURIComponent(window.location.href)});
let input = jQuery("<input type='hidden'/>");
input.attr({"name":"base64Str"});
@@ -476,9 +478,7 @@
let a2 = false;
var Foo = function(){
if(a1 && a2){
- setTimeout(function() {
- jsPdfDownload();
- }, 1500);
+ jsPdfDownload();
}
}
AWSService.search(staticResource.searchUrl, JSON.stringify({
--
Gitblit v1.9.1