From 69dc5df6ec51f6f7f6737c61d9c4c1e7757a2b96 Mon Sep 17 00:00:00 2001
From: Li Jun <buli@deloitte.com.cn>
Date: 星期四, 17 三月 2022 21:05:08 +0800
Subject: [PATCH] PIPLFixBugs0317V1

---
 force-app/main/default/pages/StraightBackAddress.page |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/force-app/main/default/pages/StraightBackAddress.page b/force-app/main/default/pages/StraightBackAddress.page
index 89b7177..9dca379 100644
--- a/force-app/main/default/pages/StraightBackAddress.page
+++ b/force-app/main/default/pages/StraightBackAddress.page
@@ -355,7 +355,7 @@
                     PIData[Id] = temp;
                 };
                 for(var i=0;i<tableDataStr.length;i++){
-                    if(tableDataStr[i].address.Contacts__r){
+                    if(tableDataStr[i].address.AWS_Data_Id__c){
                         correct++;
                         AWSService.queryRepair(staticResource.queryUrl,tableDataStr[i].address.AWS_Data_Id__c,tableDataStr[i].address.Id,tableDataStr[i].address.Contacts__r.AWS_Data_Id__c,searchCallBack,staticResource.token);
                     } 
@@ -379,6 +379,7 @@
                 let queryBack = function queryBack(result) {
                     let contacts = result.object;
                     if(contacts == null){
+                        console.log('鏌ヨ鑱旂郴浜虹殑鏁版嵁 == null')
                         return;
                     }
                     for(var i=0;i<result.object.length;i++){
@@ -441,7 +442,7 @@
                 '\n閭紪: '+PIData[awsDataId].zipCode+
                 '\n璇︾粏鍦板潃: '+PIData[awsDataId].detailedAddress
             }else{
-                piInformation = '鑱旂郴浜�: null'+
+                piInformation = '鑱旂郴浜�: '+
                 '\n鐢佃瘽: '+PIData[awsDataId].telephone+
                 '\n閭紪: '+PIData[awsDataId].zipCode+
                 '\n璇︾粏鍦板潃: '+PIData[awsDataId].detailedAddress
@@ -452,9 +453,12 @@
             let y=window.event.y; 
             createDiv.style.left=x;  
             createDiv.style.top=y;  
+            createDiv.style.width = '100px';
+            createDiv.style.height = '100px';
             createDiv.style.background="#dddddd";
             createDiv.style.position = "absolute";
             parentNode.appendChild(createDiv);  
+            parentNode.style.position = "relative";
         }
 
         function hidePIDiv(awsDataId){
@@ -631,9 +635,9 @@
                                         <td align="left"  style="vertical-align: inherit;border-width: 0px 1px 1px 0px;">
                                             <apex:outputfield value="{!or.address.Customer__c}" />
                                         </td>
-                                        <td align="left"  style="vertical-align: inherit;border-width: 0px 1px 1px 0px;" aws-data-id="{!or.address.AWS_Data_Id__c}">
+                                        <td align="left"  style="vertical-align: inherit;border-width: 0px 1px 1px 0px;" aws-data-id="{!or.address.AWS_Data_Id__c}" >
                                             <!-- <apex:outputfield value="{!or.address.Contacts__c}" id="{!or.address.Contacts__c}_{!or.address.Id}"/> -->
-                                            <a href="#" id="{!or.address.Id}" onmouseover="showPIDiv('{!or.address.Id}')" onmouseout="hidePIDiv('{!or.address.Id}')"  aws-data-id="{!or.address.Contacts__r.AWS_Data_Id__c}">{!or.address.Contacts__r.Name}</a>
+                                            <a href="#" id="{!or.address.Id}"   aws-data-id="{!or.address.Contacts__r.AWS_Data_Id__c}" onmouseover="showPIDiv('{!or.address.Id}')" onmouseout="hidePIDiv('{!or.address.Id}')">{!or.address.Contacts__r.Name}</a>
                                         </td>
                                         <td align="left" style="vertical-align: inherit;border-width: 0px 1px 1px 0px;">
                                             <apex:outputText value="{!or.address.Telephone__c}" />
@@ -650,9 +654,9 @@
                                         <td align="left" style="vertical-align: inherit;border-width: 0px 1px 1px 0px;">
                                             <apex:outputText value="{!or.address.Detailed_Address__c}" />
                                         </td>
-                                        <td align="center" style="vertical-align: inherit;width:30px;">
+                                        <!-- <td align="center" style="vertical-align: inherit;width:30px;">
                                             <apex:commandButton value=" 缂栬緫 " onclick="onEditorJs('{!or.address.id}');return false;" style="background:#98c1fbf7;display:{!or.canEdit};"/>
-                                        </td>
+                                        </td> -->
                                         <td align="center" style="vertical-align: inherit;width:30px;">
                                             <apex:commandButton value=" 澶嶅埗 " onclick="onCopyJs('{!or.address.id}');return false;" style="background: #98c1fbf7;display:{!or.canCopy};"/>
                                         </td>
@@ -671,6 +675,7 @@
                     </apex:outputPanel>
                 </apex:pageblocksection>
             </apex:pageBlock>
+            
         </div>
         <div id="tab03">
             <apex:pageBlock id="oppBlock2" tabStyle="Report">
@@ -713,6 +718,7 @@
                 </script>
             </apex:pageBlock>
         </div>        
+        
     </apex:form>
     <apex:outputPanel id="checEventFrame">
       <script type="text/javascript">

--
Gitblit v1.9.1