From 9587297f13ea444c3f3b43417b6c7bee83fe82d9 Mon Sep 17 00:00:00 2001
From: 黄千龙 <huangqianlong@prec-tech.com>
Date: 星期二, 04 四月 2023 14:46:18 +0800
Subject: [PATCH] 黄千龙修改按钮(更新至2023.4.4)

---
 force-app/main/default/lwc/lexOSHSubmit/lexOSHSubmit.js |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/force-app/main/default/lwc/lexOSHSubmit/lexOSHSubmit.js b/force-app/main/default/lwc/lexOSHSubmit/lexOSHSubmit.js
index e4901c7..65d0f97 100644
--- a/force-app/main/default/lwc/lexOSHSubmit/lexOSHSubmit.js
+++ b/force-app/main/default/lwc/lexOSHSubmit/lexOSHSubmit.js
@@ -13,7 +13,7 @@
 	qisStatus;
 	OSHstaff;
 	OSHstaffEmail;
-
+    err;
     @wire(CurrentPageReference)
      getStateParameters(currentPageReference) {
              console.log(111);
@@ -86,8 +86,14 @@
         		}).then(result =>{
         			console.log('result'+result);
         			if (result!='鎴愬姛') {
-        				alert(result); 
-        			}
+                        this.err = result;
+                        const evt = new ShowToastEvent({
+                            title : '鏇存柊澶辫触',
+                            message: this.err,
+                            variant: 'error'
+                        });
+                        this.dispatchEvent(evt);
+                    }
                 this.dispatchEvent(new CloseActionScreenEvent());
                 this.updateRecordView(this.recordId);
         		}).catch(error => {

--
Gitblit v1.9.1