From 2f4492ee18f90274582fcc2bb06f5e9bf64136e8 Mon Sep 17 00:00:00 2001 From: buli <137736985@qq.com> Date: 星期五, 13 五月 2022 17:32:14 +0800 Subject: [PATCH] ProdBackup0513 --- force-app/main/default/pages/ViewUserFaultInfoDecryptInfo.page | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/force-app/main/default/pages/ViewUserFaultInfoDecryptInfo.page b/force-app/main/default/pages/ViewUserFaultInfoDecryptInfo.page index c2cde7e..c668edc 100644 --- a/force-app/main/default/pages/ViewUserFaultInfoDecryptInfo.page +++ b/force-app/main/default/pages/ViewUserFaultInfoDecryptInfo.page @@ -8,6 +8,8 @@ <apex:outputField html-data-id="{!encryptedAPI}" title="{!ApiPrefix}{!encryptedAPI}" value="{!User_FaultInfo__c[encryptedAPI]}" /> </apex:repeat> <apex:outputField html-data-id="CONTACT__c" title="{!ApiPrefix}CONTACT__c" value="{!User_FaultInfo__c['CONTACT__c']}" /> + <apex:outputField html-data-id="PHONE__c" title="{!ApiPrefix}PHONE__c" value="{!User_FaultInfo__c['PHONE__c']}" /> + <apex:outputField html-data-id="E_MAIL__c" title="{!ApiPrefix}E_MAIL__c" value="{!User_FaultInfo__c['E_MAIL__c']}" /> <apex:outputField html-data-id="UFContact__c" title="{!ApiPrefix}UFContact__c" value="{!User_FaultInfo__c['UFContact__c']}" /> </apex:pageBlockSection> <script> @@ -65,6 +67,24 @@ ele.title=''; ele.innerHTML = data.object.lastName; } + + let t1 = "[title='"+config.ApiPrefix+"PHONE__c']"; + let ele1 = document.querySelector(t1); + if(ele1){ + ele1.title=''; + if (data.object.phoneD == '') { + ele1.innerHTML = data.object.mobilePhoneD; + } else { + ele1.innerHTML = data.object.phoneD; + } + } + + let t2 = "[title='"+config.ApiPrefix+"E_MAIL__c']"; + let ele2 = document.querySelector(t2); + if(ele2){ + ele2.title=''; + ele1.innerHTML = data.object.emailD; + } }; var queryEndUserDBack = function queryEndUserDBack(data){ -- Gitblit v1.9.1