| | |
| | | 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:"); |