From 6ac2e9df968bfdc5ded01fa183994bd7f622d7ee Mon Sep 17 00:00:00 2001
From: zhangchunxu <1842059105@qq.com>
Date: 星期五, 04 八月 2023 13:54:16 +0800
Subject: [PATCH] 提交 经销商管理 侧边栏

---
 force-app/main/default/lwc/lexYanshoudanRequest/lexYanshoudanRequest.js |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/force-app/main/default/lwc/lexYanshoudanRequest/lexYanshoudanRequest.js b/force-app/main/default/lwc/lexYanshoudanRequest/lexYanshoudanRequest.js
index 97a70c1..687c05f 100644
--- a/force-app/main/default/lwc/lexYanshoudanRequest/lexYanshoudanRequest.js
+++ b/force-app/main/default/lwc/lexYanshoudanRequest/lexYanshoudanRequest.js
@@ -42,7 +42,6 @@
                 this.Id = result.Id;
 
                 this.YanshoudanRequest();
-                this.dispatchEvent(new CloseActionScreenEvent());
             }
         }).catch(error => {
             console.log(error);
@@ -58,10 +57,12 @@
             if (result != null) {
                 if (result.length > 0) {
                     var split = result.split(", ");
-                    alert(split[1]);
+                    this.ShowToastEvent(split[1], "error");
+                    this.dispatchEvent(new CloseActionScreenEvent());
                 }
             }
-            alert("宸茬粡鐢宠杩囦簡锛屼笉鍏佽閲嶆柊鐢宠");
+            this.ShowToastEvent("宸茬粡鐢宠杩囦簡锛屼笉鍏佽閲嶆柊鐢宠", "error");
+            this.dispatchEvent(new CloseActionScreenEvent());
         })
     }
 

--
Gitblit v1.9.1