liuyn
2024-03-11 a87f1c3df03078814ee97ad0c8ac200a232419e9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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");
    }
}