From 3419066d82b93d834b71b7b88a38fa9526e86f8a Mon Sep 17 00:00:00 2001
From: chenjingwu <chenjingwu@prec-tech.com>
Date: 星期五, 12 四月 2024 14:34:38 +0800
Subject: [PATCH] 123
---
force-app/main/default/lwc/lexStartTrading/lexStartTrading.js | 25 ++++++++++++++++---------
1 files changed, 16 insertions(+), 9 deletions(-)
diff --git a/force-app/main/default/lwc/lexStartTrading/lexStartTrading.js b/force-app/main/default/lwc/lexStartTrading/lexStartTrading.js
index 682de42..6e6caee 100644
--- a/force-app/main/default/lwc/lexStartTrading/lexStartTrading.js
+++ b/force-app/main/default/lwc/lexStartTrading/lexStartTrading.js
@@ -69,16 +69,23 @@
console.log('start result==========',result);
if(result!=null){
this.showToast('宸叉垚鍔熻浆鍖栬浠�','success');
- window.open('/lightning/r/Opportunity/'+result+'/view','_parent');
- // this[NavigationMixin.GenerateUrl]({
- // type: "standard__recordPage",
- // attributes: {
- // recordId: result,
- // objectApiName:"Opportunity",
- // actionName:"edit"
- // }
- // })
+ console.log(result);
+ // window.location = '/lightning/r/Opportunity/'+result+'/view';
+ this[NavigationMixin.Navigate]({
+ type: "standard__recordPage",
+ attributes: {
+ recordId: result,
+ actionName:"edit"
+ },
+ state: {
+ nooverride: '1',
+ backgroundContext: '/lightning/r/Opportunity/'+result+'/view'
+ }
+ });
}
+ }).catch(error=>{
+ console.log('error');
+ console.log(error);
});
// .catch(err=>{
// console.log("start error:");
--
Gitblit v1.9.1