123
chenjingwu
2024-04-11 673fd6648381bb301577ebde009eaf731138c197
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:");