KKbes
2023-08-07 492f744d9d84289e27b2ddac9a9b4a2137fd11d6
force-app/main/default/lwc/lexProductRepairQuoteAsset/lexProductRepairQuoteAsset.js
@@ -17,18 +17,18 @@
        }
    }
     connectedCallback(){
    connectedCallback(){
        this.ProductRepairQuoteAsset()
        .then(result => {
           this.closeScreen();
        }).catch(error => {
         const event3 = new ShowToastEvent({
               const event3 = new ShowToastEvent({
                 title: '按钮跳转错误',
                 message:
               error.message,
              variant : 'error'
           });
           this.dispatchEvent(event3);
             });
             this.dispatchEvent(event3);
        });
    }
@@ -36,11 +36,11 @@
    
   async ProductRepairQuoteAsset(){
   window.open ('/apex/ProductRepairQuote?productid='+this.recordId+'&flag=asset', '', 'height=250, width=500, top=300, left=350,location=no')
     window.open ('/apex/ProductRepairQuote?productid='+this.recordId+'&flag=asset', '', 'height=250, width=500, top=300, left=350,location=no')
   }
   closeScreen(){
      this.IsLoading=false;
        this.dispatchEvent(new CloseActionScreenEvent());
    this.dispatchEvent(new CloseActionScreenEvent());
   }    
}