From 8475b9f98c8a4c95446f02be4bf2a64e359c359a Mon Sep 17 00:00:00 2001
From: liwentao <1376563863@qq.com>
Date: 星期五, 11 八月 2023 09:10:31 +0800
Subject: [PATCH] 与测试环境对比,部分代码已被人修改,删除其中的alert和部分硬编码,还原测试环境代码逻辑
---
force-app/main/default/lwc/lexAllReceivedFse/lexAllReceivedFse.js | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/force-app/main/default/lwc/lexAllReceivedFse/lexAllReceivedFse.js b/force-app/main/default/lwc/lexAllReceivedFse/lexAllReceivedFse.js
index f6ebf2b..f97ad18 100644
--- a/force-app/main/default/lwc/lexAllReceivedFse/lexAllReceivedFse.js
+++ b/force-app/main/default/lwc/lexAllReceivedFse/lexAllReceivedFse.js
@@ -25,13 +25,15 @@
init({
recordId: this.recordId
}).then(res=>{
- if(res.LoanerReceivedNgNum == 0){
+ console.log('loanerReceivedNgNum==='+ res.loanerReceivedNgNum);
+ if(res.loanerReceivedNgNum == 0){
const evt = new ShowToastEvent({
title : '鐜板満宸茬粡鍏ㄩ儴鏀跺埌瀹炵墿浜�',
message: '',
- variant: 'success'
+ variant: 'error'
});
this.dispatchEvent(evt);
+ this.dispatchEvent(new CloseActionScreenEvent());
}else{
getRaeSet({
recordId: this.recordId
@@ -57,9 +59,12 @@
}
})
+ .catch(err=>{
+ console.log('getRaeSet==='+err);
+ })
}
}).catch(err=>{
- console.log(err);
+ console.log('init==='+err);
})
}
}
\ No newline at end of file
--
Gitblit v1.9.1