From be8ca3316a9afeec26434b5eb359012aa0633d06 Mon Sep 17 00:00:00 2001
From: unknown <sunxia@prec-tech.com>
Date: 星期四, 11 五月 2023 17:39:21 +0800
Subject: [PATCH] Merge branch 'LEX_dev' of http://47.92.229.245:8089/r/lightningupdate into LEX_dev

---
 force-app/main/default/lwc/lexTenderingIntentionButton/lexTenderingIntentionButton.js |   23 ++++++++---------------
 1 files changed, 8 insertions(+), 15 deletions(-)

diff --git a/force-app/main/default/lwc/lexTenderingIntentionButton/lexTenderingIntentionButton.js b/force-app/main/default/lwc/lexTenderingIntentionButton/lexTenderingIntentionButton.js
index f5f5d53..a322e7d 100644
--- a/force-app/main/default/lwc/lexTenderingIntentionButton/lexTenderingIntentionButton.js
+++ b/force-app/main/default/lwc/lexTenderingIntentionButton/lexTenderingIntentionButton.js
@@ -7,7 +7,6 @@
     @api recordId;//褰撳墠杩欐潯鏁版嵁鐨刬d
     id;//杩斿洖鍊肩殑id  Tender_information__c鎷涙爣椤圭洰鐨刬d
     IsLoading = true;
-
     @wire(CurrentPageReference)
      getStateParameters(currentPageReference) {
          if (currentPageReference) {
@@ -15,10 +14,11 @@
            if (urlValue) {
              let str = `${urlValue}`;
              this.recordId = str;
+             console.log(this.recordId,'id');
            }
          }
      }
-    
+    //鎷涙爣椤圭洰鏂板缓鎰忓悜
     connectedCallback(){
         init({
             recordId: this.recordId
@@ -26,27 +26,20 @@
             if (result != null) {
                 this.IsLoading = false;
                 this.id = result.Id;
-                this.IntentionButton();
+                alert('濉啓澶卞崟鎶ュ憡璇风洿鎺ョ偣鍑绘嫑鏍囬〉闈€�愬け鍗曘�戞寜閽�');
+                // this.showToast('濉啓澶卞崟鎶ュ憡璇风洿鎺ョ偣鍑绘嫑鏍囬〉闈€�愬け鍗曘�戞寜閽�','success');
+                var url = '/apex/NewAndEditLead?' + '00N10000009HKS5=' + this.id
+                + '&LeadSource=鎷涙爣缃�' + '&RecordTypeId=01210000000QiRf' + '&retURL=%2F' + this.id ;
+                window.open(url);
                 this.dispatchEvent(new CloseActionScreenEvent());
             }
-        })      
+        })       
     }
-
-    //鎷涙爣椤圭洰鏂板缓鎰忓悜
-    IntentionButton(){
-            // alert('濉啓澶卞崟鎶ュ憡璇风洿鎺ョ偣鍑绘嫑鏍囬〉闈€�愬け鍗曘�戞寜閽�');
-            this.showToast('濉啓澶卞崟鎶ュ憡璇风洿鎺ョ偣鍑绘嫑鏍囬〉闈€�愬け鍗曘�戞寜閽�','success');
-            var url = '/apex/NewAndEditLead?' + '00N10000009HKS5=' + this.id
-            + '&LeadSource=鎷涙爣缃�' + '&RecordTypeId=01210000000QiRf' + '&retURL=%2F' + this.id ;
-            window.open(url);
-    }
-
     showToast(msg,type) {
         const event = new ShowToastEvent({
             message: msg,
             variant: type
         });
         this.dispatchEvent(event);
-        this.dispatchEvent(new CloseActionScreenEvent());
     }
 }
\ No newline at end of file

--
Gitblit v1.9.1