From ead4df22dca33a867279471821ca675f91dec760 Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期六, 14 五月 2022 18:44:54 +0800
Subject: [PATCH] FixIssue0514
---
force-app/main/default/pages/NEWCreateSWOQuote.page | 42 +++++++++++++++++++++++++++++++++++++++++-
1 files changed, 41 insertions(+), 1 deletions(-)
diff --git a/force-app/main/default/pages/NEWCreateSWOQuote.page b/force-app/main/default/pages/NEWCreateSWOQuote.page
index 6278a46..b2e2489 100644
--- a/force-app/main/default/pages/NEWCreateSWOQuote.page
+++ b/force-app/main/default/pages/NEWCreateSWOQuote.page
@@ -938,7 +938,7 @@
<th>INTERNAL ONLY</th>
</tr>
<apex:repeat value="{!mailList}" var="mail" id="lines">
- <tr>
+ <tr id="{!mail.mm.AWS_Data_Id__c}" onmouseover="showPI('{!mail.mm.AWS_Data_Id__c}')">
<td><apex:outputLink value="/apex/SendEmail?id={!mail.mm.ID}&type=Quotes&typeid={!Id}&openType=View">View</apex:outputLink> <apex:outputLink value="/apex/SendEmail?id={!mail.mm.ID}&type=Quotes&typeid={!Id}&openType=Reply">Reply</apex:outputLink></td>
<td><apex:outputField value="{!mail.mm.DATE__c}" /></td>
<td><apex:outputField value="{!mail.mm.FROM__c}" /></td>
@@ -967,6 +967,46 @@
<table border="0">
</table>
+<script>
+ var mailListObj = JSON.parse('{!awsDataIdStr}');
+ var staticResourceMailMerge = JSON.parse('{!staticResourceMailMerge}')
+ var mailList = []
+ var PIDataObjList = {}
+
+
+ function showPI(awsId) {
+ if (awsId) {
+ document.getElementById(awsId).children[2].children[0].children[0].innerText = PIDataObjList[awsId].author
+ document.getElementById(awsId).children[5].children[0].innerText = PIDataObjList[awsId].premaryRecipient
+ document.getElementById(awsId).children[6].children[0].innerText = PIDataObjList[awsId].cc
+ }
+ }
+
+
+ for (var i = 0; i < mailListObj.length; i++) {
+ mailList.push(mailListObj[i])
+ }
+ var queryBack = function queryBack(data) {
+ console.log(data)
+ if (data.object) {
+ for (var i = 0; i < data.object.length; i++) {
+ var PIDataObj = {};
+ PIDataObj.author = data.object[i].author
+ PIDataObj.premaryRecipient = data.object[i].premaryRecipient
+ PIDataObj.cc = data.object[i].cc
+ PIDataObjList[data.object[i].dataId] = PIDataObj;
+ }
+ }
+ unblockUI();
+ };
+ document.body.onload = function () {
+ blockme();
+ console.log('appendToOnloadQueue');
+ let searchPayload = new Object();
+ searchPayload.dataIds = mailList;
+ AWSService.search(staticResourceMailMerge.searchUrl, JSON.stringify(searchPayload), queryBack, staticResourceMailMerge.token);
+ }
+</script>
</apex:form>
<!-- <apex:relatedList list="ProcessSteps"/> -->
</apex:page>
\ No newline at end of file
--
Gitblit v1.9.1