From 35910c355f74e736e2068a0ffb7f39ae9615d8e1 Mon Sep 17 00:00:00 2001
From: chenjingwu <chenjingwu@prec-tech.com>
Date: 星期五, 24 五月 2024 16:29:00 +0800
Subject: [PATCH] 1

---
 force-app/main/default/lwc/lexTenderingUsedAttachmentButton/lexTenderingUsedAttachmentButton.js |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/force-app/main/default/lwc/lexTenderingUsedAttachmentButton/lexTenderingUsedAttachmentButton.js b/force-app/main/default/lwc/lexTenderingUsedAttachmentButton/lexTenderingUsedAttachmentButton.js
index 7c0e891..ad4fa58 100644
--- a/force-app/main/default/lwc/lexTenderingUsedAttachmentButton/lexTenderingUsedAttachmentButton.js
+++ b/force-app/main/default/lwc/lexTenderingUsedAttachmentButton/lexTenderingUsedAttachmentButton.js
@@ -27,10 +27,14 @@
             this.id = result.Id;
             this.AttachmentButton();
             this.dispatchEvent(new CloseActionScreenEvent());
-        })        
+        }).catch(error => {
+            console.log("error"+error);
+        }).finally(() => {
+            
+        });        
     }
     
-    //鎷涙爣椤圭洰 鏌ョ湅闄勪欢(鏃�)
+    //鏌ョ湅闄勪欢(鏃�)
     AttachmentButton(){
         window.open(`/apex/QLMAttachmentPreview?parentId=${this.id}`);
     }
@@ -41,6 +45,10 @@
             variant: type
         });
         this.dispatchEvent(event);
-        this.dispatchEvent(new CloseActionScreenEvent());
     }
 }
+
+// var From= function(){
+//     window.open( "/apex/QLMAttachmentPreview?parentId={!URLENCODE(Tender_information__c.Id)}");
+//     }
+//     From();
\ No newline at end of file

--
Gitblit v1.9.1