From 07390e2fcb4adf27c928335bf27ae7939c5a80ad Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期二, 23 五月 2023 11:28:12 +0800
Subject: [PATCH] bakcup20230523

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

diff --git a/force-app/main/default/lwc/lexTenderingIntentionButton/lexTenderingIntentionButton.js b/force-app/main/default/lwc/lexTenderingIntentionButton/lexTenderingIntentionButton.js
index 49140bd..a322e7d 100644
--- a/force-app/main/default/lwc/lexTenderingIntentionButton/lexTenderingIntentionButton.js
+++ b/force-app/main/default/lwc/lexTenderingIntentionButton/lexTenderingIntentionButton.js
@@ -1,15 +1,12 @@
 import { LightningElement,wire,track,api} from 'lwc';
 import { CurrentPageReference } from "lightning/navigation";
 import { CloseActionScreenEvent } from 'lightning/actions';
-import { NavigationMixin } from 'lightning/navigation';
 import  init  from '@salesforce/apex/TenderingButtonController.initTenderingController';
-import { updateRecord } from 'lightning/uiRecordApi';
 import { ShowToastEvent } from 'lightning/platformShowToastEvent';
 export default class lexTenderingIntentionButton extends LightningElement {
     @api recordId;//褰撳墠杩欐潯鏁版嵁鐨刬d
     id;//杩斿洖鍊肩殑id  Tender_information__c鎷涙爣椤圭洰鐨刬d
     IsLoading = true;
-
     @wire(CurrentPageReference)
      getStateParameters(currentPageReference) {
          if (currentPageReference) {
@@ -21,8 +18,7 @@
            }
          }
      }
-    
-
+    //鎷涙爣椤圭洰鏂板缓鎰忓悜
     connectedCallback(){
         init({
             recordId: this.recordId
@@ -30,46 +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());
             }
-        }).catch(error => {
-            console.log("error"+error);
-        }).finally(() => {
-            
-        });        
+        })       
     }
-
-    //鎷涙爣椤圭洰鏂板缓鎰忓悜
-    IntentionButton(){
-            // alert('濉啓澶卞崟鎶ュ憡璇风洿鎺ョ偣鍑绘嫑鏍囬〉闈€�愬け鍗曘�戞寜閽�');
-            this.showToast('濉啓澶卞崟鎶ュ憡璇风洿鎺ョ偣鍑绘嫑鏍囬〉闈€�愬け鍗曘�戞寜閽�','success');
-            var url = '/apex/NewAndEditLead?' + '00N10000009HKS5=' + this.id
-            + '&LeadSource=鎷涙爣缃�' + '&RecordTypeId=01210000000QiRf' + '&retURL=%2F' + this.id ;
-            window.open(url);
-    }
-
-
-    updateRecordView() {
-        updateRecord({fields: { Id: this.recordId }});
-    }
-
     showToast(msg,type) {
-        console.log(msg,type);
         const event = new ShowToastEvent({
-            // title: title,
             message: msg,
             variant: type
         });
         this.dispatchEvent(event);
     }
-}
-
-
-// var foo = function(){
-//     alert('濉啓澶卞崟鎶ュ憡璇风洿鎺ョ偣鍑绘嫑鏍囬〉闈€�愬け鍗曘�戞寜閽�');
-//     var url = '/apex/NewAndEditLead?' + '00N10000009HKS5=' + '{!Tender_information__c.Id}'
-//     + '&LeadSource=鎷涙爣缃�' + '&RecordTypeId=01210000000QiRf' + '&retURL=%2F' + '{!Tender_information__c.Id}' ;
-//     window.open(url);
-//     }
-//     foo();
\ No newline at end of file
+}
\ No newline at end of file

--
Gitblit v1.9.1