From bbc7c47e3eadfe0ae3ac57419b1c9b8b2ed3e3d4 Mon Sep 17 00:00:00 2001
From: 19626 <1962676589@qq.com>
Date: 星期四, 06 四月 2023 17:30:41 +0800
Subject: [PATCH] 修改按钮 4.6
---
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