From f955cf98e4f978a720b02e3b225da61cbee7af7a Mon Sep 17 00:00:00 2001
From: KKbes <1620284052@qq.com>
Date: 星期三, 26 七月 2023 16:50:07 +0800
Subject: [PATCH] 页面

---
 force-app/main/default/lwc/lexNewIntention/lexNewIntention.js |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/force-app/main/default/lwc/lexNewIntention/lexNewIntention.js b/force-app/main/default/lwc/lexNewIntention/lexNewIntention.js
index 7f95bc9..85f04dc 100644
--- a/force-app/main/default/lwc/lexNewIntention/lexNewIntention.js
+++ b/force-app/main/default/lwc/lexNewIntention/lexNewIntention.js
@@ -19,6 +19,7 @@
 
 	@api recordId;
 	AgencyOpportunity;
+	IsLoading=true;
 
 
 
@@ -45,7 +46,10 @@
             console.log(result);
             if (result != null) {
                 this.AgencyOpportunity = result;
-                this.newIntention();
+                this.newIntention().then(result=>{
+                	IsLoading=false;
+                	this.dispatchEvent(new CloseActionScreenEvent());
+                });
             }
         }).catch(error => {
             console.log("error");
@@ -58,7 +62,6 @@
 
     async newIntention(){
 		if(this.AgencyOpportunity.Is_Transformed__c == true){
-			this.dispatchEvent(new CloseActionScreenEvent());
 			this.dispatchEvent(event1);
 			return;
 		}
@@ -78,7 +81,6 @@
 					console.log('shortName return size 銆� 0')
 				}
 		}
-	this.dispatchEvent(new CloseActionScreenEvent());
 	var url = '/apex/NewAndEditLead?' + '00N10000009HKSP=' + this.AgencyOpportunity.Id
 	+ '&LeadSource=缁忛攢鍟�' + '&00N10000006qOFb=' + this.AgencyOpportunity.StageName__c 
 	+ '&00N10000006qOF0=' + this.AgencyOpportunity.Close_Forecasted_Date__c 

--
Gitblit v1.9.1