From d117f4fc33bfdbbd698a46abc2bc6c4070d7c6ee Mon Sep 17 00:00:00 2001
From: LiJinHuan <lijinhuan@prec-tech.com>
Date: 星期二, 04 七月 2023 18:34:14 +0800
Subject: [PATCH] 排队展示挪公用后更新

---
 force-app/main/default/lwc/lexEquipmentRentalApply_FromSA/lexEquipmentRentalApply_FromSA.js |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/force-app/main/default/lwc/lexEquipmentRentalApply_FromSA/lexEquipmentRentalApply_FromSA.js b/force-app/main/default/lwc/lexEquipmentRentalApply_FromSA/lexEquipmentRentalApply_FromSA.js
index 7b0a7bb..5512f33 100644
--- a/force-app/main/default/lwc/lexEquipmentRentalApply_FromSA/lexEquipmentRentalApply_FromSA.js
+++ b/force-app/main/default/lwc/lexEquipmentRentalApply_FromSA/lexEquipmentRentalApply_FromSA.js
@@ -85,7 +85,7 @@
                     console.log(error);
                 })
             }else{
-                this.showToast(res,'warning');
+                this.showToast(res,'error');
                 return;
             }
         })
@@ -94,10 +94,11 @@
 
     showToast(message, type) {
         const evt = new ShowToastEvent({
-            title: '',
+            title: 'Error',
             message: message,
             variant: type
         });
         this.dispatchEvent(evt);
+        this.dispatchEvent(new CloseActionScreenEvent());
     }
 }
\ No newline at end of file

--
Gitblit v1.9.1