From af0cf4a4c55406b80584acfa0a126af7e826d124 Mon Sep 17 00:00:00 2001
From: 李彤 <litong@prec-tech.com>
Date: 星期六, 02 四月 2022 17:56:46 +0800
Subject: [PATCH] 目标录入相关判断修改_1
---
force-app/main/default/pages/ViewAgencyContactDecryptInfo.page | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/force-app/main/default/pages/ViewAgencyContactDecryptInfo.page b/force-app/main/default/pages/ViewAgencyContactDecryptInfo.page
index 1e39a35..90b12a1 100644
--- a/force-app/main/default/pages/ViewAgencyContactDecryptInfo.page
+++ b/force-app/main/default/pages/ViewAgencyContactDecryptInfo.page
@@ -12,7 +12,7 @@
</apex:repeat>
</apex:pageBlockSection>
<script>
- var config = {
+ var config = {
SobjectName : "{!SobjectName}",
ApiPrefix:"{!ApiPrefix}",
AWSToSobjectMap:{!AWSToSobjectMapJson},
@@ -20,14 +20,27 @@
AWSToSobjectEncryptedMap:{!AWSToSobjectEncryptedMapJson}
};
var staticResources = JSON.parse('{!staticResource}');
+ var staticResourceAWSContact = JSON.parse('{!staticResourceAWSContact}');
function QuerySobjectFromAWS() {
AWSService.query(staticResources.queryUrl, '{!AWSDataId}', queryBack, staticResources.token);
+ console.log('Query contact by awsid:'+'{!awsContactId}');
+ if('{!awsContactId}'){
+ AWSService.query(staticResourceAWSContact.queryUrl, '{!awsContactId}', queryBack, staticResources.token);
+ }
+
}
var queryBack = function queryBack(data) {
if(!data.object){
console.log('data.object is ' + data.object);
return;
}
+ console.log('Data from AWS:'+JSON.stringify(data.object));
+ if('{!awsContactId}'){
+ data.object.name = data.object.lastName;
+ data.object.type = data.object.type;
+ data.object.doctorDivision1 = data.object.doctorDivision1;
+ }
+ console.log('Data from AWS:'+JSON.stringify(data.object));
for(let f in config.AWSToSobjectNonEncryptedMap){
let t = "[title='"+config.ApiPrefix+config.AWSToSobjectNonEncryptedMap[f]+"']";
--
Gitblit v1.9.1