From af908216bb0012fe849e3b49b3039c7ba238f8f0 Mon Sep 17 00:00:00 2001
From: liangxiaozhen <liangxiaozhen>
Date: 星期五, 11 八月 2023 14:35:43 +0800
Subject: [PATCH] 补充controller,修改变量,主页bug修改

---
 force-app/main/default/lwc/lexTenderingHospitalButton/lexTenderingHospitalButton.js |   28 ++--------------------------
 1 files changed, 2 insertions(+), 26 deletions(-)

diff --git a/force-app/main/default/lwc/lexTenderingHospitalButton/lexTenderingHospitalButton.js b/force-app/main/default/lwc/lexTenderingHospitalButton/lexTenderingHospitalButton.js
index 6999b54..044ae5f 100644
--- a/force-app/main/default/lwc/lexTenderingHospitalButton/lexTenderingHospitalButton.js
+++ b/force-app/main/default/lwc/lexTenderingHospitalButton/lexTenderingHospitalButton.js
@@ -24,18 +24,13 @@
         init({
             recordId: this.recordId
         }).then(result => {
-            console.log(result)
                 this.IsLoading = false;
                 this.id = result.Id;
                 this.name = result.name;
                 this.Environment_Url = result.Environment_Url
                 this.HospitalButton();
                 this.dispatchEvent(new CloseActionScreenEvent());
-        }).catch(error => {
-            console.log("error"+error);
-        }).finally(() => {
-            
-        });        
+        })       
     }
 
     //鏂板缓鍖婚櫌
@@ -45,25 +40,6 @@
         +'&00N10000009HFQT='+encodeURIComponent('鎷涙爣椤圭洰')
         +'&RecordType=01210000000QemG'
         +'&retURL='+ encodeURIComponent(this.id);
-        console.log('url',url)
         window.location.href = url;
     }
-}
-
-
-// var foo = function() {
-
-//     var TenderId = '{!Tender_information__c.Id}';
-//     var Tendername = '{!Tender_information__c.Name}';
-//     var HospitalSource= '鎷涙爣椤圭洰';
-    
-//     var url = '{!$Label.Environment_Url}'+'001/e?CF00N10000009I0o7='+encodeURIComponent(Tendername)
-//     +'&CF00N10000009I0o7_lkid='+encodeURIComponent(TenderId)
-//     +'&00N10000009HFQT='+encodeURIComponent(HospitalSource)
-    
-//     +'&RecordType=01210000000QemG'
-//     +'&retURL='+ encodeURIComponent(TenderId);
-//     window.top.location.href = url;
-    
-//     }
-//     foo();
\ No newline at end of file
+}
\ No newline at end of file

--
Gitblit v1.9.1