From f3a8b609580d160f2d15b0c2fab28784a38cba71 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@prec-tech.com>
Date: 星期二, 04 七月 2023 17:44:48 +0800
Subject: [PATCH] 备品附属品选择 附属品追加

---
 force-app/main/default/lwc/lexTenderingUsedAttachmentButton/lexTenderingUsedAttachmentButton.js |   31 ++++---------------------------
 1 files changed, 4 insertions(+), 27 deletions(-)

diff --git a/force-app/main/default/lwc/lexTenderingUsedAttachmentButton/lexTenderingUsedAttachmentButton.js b/force-app/main/default/lwc/lexTenderingUsedAttachmentButton/lexTenderingUsedAttachmentButton.js
index ad4fa58..3e419d9 100644
--- a/force-app/main/default/lwc/lexTenderingUsedAttachmentButton/lexTenderingUsedAttachmentButton.js
+++ b/force-app/main/default/lwc/lexTenderingUsedAttachmentButton/lexTenderingUsedAttachmentButton.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 lexTenderingUsedAttachmentButton extends LightningElement {
     @api recordId;//褰撳墠杩欐潯鏁版嵁鐨刬d
     id;//杩斿洖鍊肩殑id  Tender_information__c鎷涙爣椤圭洰鐨刬d
@@ -18,37 +17,15 @@
            }
          }
      }
-    
+    //鎷涙爣椤圭洰 鏌ョ湅闄勪欢(鏃�)
     connectedCallback(){
         init({
             recordId: this.recordId
         }).then(result => {
             this.IsLoading = false;
             this.id = result.Id;
-            this.AttachmentButton();
+            window.open(`/apex/QLMAttachmentPreview?parentId=${this.id}`);
             this.dispatchEvent(new CloseActionScreenEvent());
-        }).catch(error => {
-            console.log("error"+error);
-        }).finally(() => {
-            
-        });        
+        })       
     }
-    
-    //鏌ョ湅闄勪欢(鏃�)
-    AttachmentButton(){
-        window.open(`/apex/QLMAttachmentPreview?parentId=${this.id}`);
-    }
-
-    showToast(msg,type) {
-        const event = new ShowToastEvent({
-            message: msg,
-            variant: type
-        });
-        this.dispatchEvent(event);
-    }
-}
-
-// var From= function(){
-//     window.open( "/apex/QLMAttachmentPreview?parentId={!URLENCODE(Tender_information__c.Id)}");
-//     }
-//     From();
\ No newline at end of file
+}
\ No newline at end of file

--
Gitblit v1.9.1