From e94c2991dba6c0dbefc2c26bb0967344cc01c2ca Mon Sep 17 00:00:00 2001
From: zz <1842059105@qq.com>
Date: 星期三, 10 五月 2023 19:21:21 +0800
Subject: [PATCH] 小 修改

---
 force-app/main/default/lwc/lexTenderingAttachmentButton/lexTenderingAttachmentButton.js |   21 ++++-----------------
 1 files changed, 4 insertions(+), 17 deletions(-)

diff --git a/force-app/main/default/lwc/lexTenderingAttachmentButton/lexTenderingAttachmentButton.js b/force-app/main/default/lwc/lexTenderingAttachmentButton/lexTenderingAttachmentButton.js
index c9f5295..f32c741 100644
--- a/force-app/main/default/lwc/lexTenderingAttachmentButton/lexTenderingAttachmentButton.js
+++ b/force-app/main/default/lwc/lexTenderingAttachmentButton/lexTenderingAttachmentButton.js
@@ -2,7 +2,6 @@
 import { CurrentPageReference } from "lightning/navigation";
 import { CloseActionScreenEvent } from 'lightning/actions';
 import  init  from '@salesforce/apex/TenderingButtonController.initTenderingController';
-import { ShowToastEvent } from 'lightning/platformShowToastEvent';
 export default class lexTenderingAttachmentButton extends LightningElement {
     @api recordId;//褰撳墠杩欐潯鏁版嵁鐨刬d
     id;//杩斿洖鍊肩殑id  Tender_information__c鎷涙爣椤圭洰鐨刬d
@@ -18,28 +17,16 @@
            }
          }
      }
-    
+    //鎷涙爣椤圭洰鏌ョ湅闄勪欢
     connectedCallback(){
         init({
             recordId: this.recordId
         }).then(result => {
             this.IsLoading = false;
             this.id = result.Id;
-            this.AttachmentButton();
+            window.open(`/apex/TenderInformationUploadPdf?id=${this.id}`);
             this.dispatchEvent(new CloseActionScreenEvent());
-        })       
+        })    
     }
     
-    //鎷涙爣椤圭洰鏌ョ湅闄勪欢
-    AttachmentButton(){
-        window.open(`/apex/TenderInformationUploadPdf?id=${this.id}`);
-    }
-
-    showToast(msg,type) {
-        const event = new ShowToastEvent({
-            message: msg,
-            variant: type
-        });
-        this.dispatchEvent(event);
-    }
-}
+}
\ No newline at end of file

--
Gitblit v1.9.1