import { LightningElement,api, track, wire } from 'lwc'; import {CurrentPageReference} from 'lightning/navigation'; import { CloseActionScreenEvent } from 'lightning/actions'; import { ShowToastEvent } from 'lightning/platformShowToastEvent'; export default class lexNewInsReport extends LightningElement { @api recordId; @api rentalApplyIds; IsLoading=true; //提示信息 msg; hasError; rentalApplyIds; connectedCallback(){ this.newInsReport().then(res=>{ this.IsLoading=false; if(this.msg==""){ this.dispatchEvent(new CloseActionScreenEvent()); this.closeAction(); } }); } async newInsReport(){ window.history.go(-1); window.open("/apex/OFSInsReportLayout?hpid"+this.recordId+"&rt=EndoscopeSystem", "_blank"); } }