From 87861ae5f1ed5456685f97f8a8e7625e47b9576d Mon Sep 17 00:00:00 2001
From: KKbes <1620284052@qq.com>
Date: 星期四, 13 四月 2023 11:12:26 +0800
Subject: [PATCH] Merge branch 'LEX_dev' of http://47.92.229.245:8089/r/lightningupdate into LEX_dev

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

diff --git a/force-app/main/default/lwc/lexOSHSubmit/lexOSHSubmit.js b/force-app/main/default/lwc/lexOSHSubmit/lexOSHSubmit.js
index e4901c7..0e82f06 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);
@@ -37,9 +37,9 @@
         }).then(result => {
             this.IsLoading = false;
             this.qisReportId = result.Id;
-            this.qisStatus = result.QIStatus;
-            this.OSHstaff = result.OSHstaff;
-            this.OSHstaffEmail = result.OSHstaffEmail;
+            this.qisStatus = result.qIStatus;
+            this.OSHstaff = result.oSHstaff;
+            this.OSHstaffEmail = result.oSHstaffEmail;
             console.log('this.qisStatus='+this.qisStatus);
             console.log('this.OSHstaff='+this.OSHstaff);
             console.log('this.OSHstaffEmail='+this.OSHstaffEmail);
@@ -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