From d7393addacb96c1e5eb114ede852aa777df45232 Mon Sep 17 00:00:00 2001
From: 黄千龙 <huangqianlong@prec-tech.com>
Date: 星期三, 10 五月 2023 11:18:34 +0800
Subject: [PATCH] Merge branch 'LEX_dev' of http://47.92.229.245:8089/r/lightningupdate into LEX_dev
---
force-app/main/default/lwc/lexCancelApply/lexCancelApply.js | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/force-app/main/default/lwc/lexCancelApply/lexCancelApply.js b/force-app/main/default/lwc/lexCancelApply/lexCancelApply.js
index 04cee1d..e973f99 100644
--- a/force-app/main/default/lwc/lexCancelApply/lexCancelApply.js
+++ b/force-app/main/default/lwc/lexCancelApply/lexCancelApply.js
@@ -37,8 +37,7 @@
label: 'this is the aria-label value',
}).then(cancel=>{
- // this.IsLoading=false;
- // this.dispatchEvent(new CloseActionScreenEvent());
+
if(cancel) {
cancelApply({
taId : this.recordId
@@ -55,6 +54,9 @@
});
+ } else {
+ this.IsLoading=false;
+ this.dispatchEvent(new CloseActionScreenEvent());
}
});
@@ -65,8 +67,9 @@
async cancelSubmit(){
if(this.cancelResult == '1') {
await this.showToast("",'鍙栨秷鎴愬姛',"success");
- window.location.href = window.location;
-
+ setTimeout(function(){
+ window.location.href = window.location;
+ }, 1500 )
} else {
console.log("result:",this.cancelResult);
await this.showToast("",this.cancelResult,"warning");
--
Gitblit v1.9.1