19626
2023-10-31 fd9df05c48c09b4d7f39a3b401882bda226dedea
force-app/main/default/lwc/tenderLost/tenderLost.js
@@ -6,7 +6,8 @@
import LinkedHospitals from '@salesforce/apex/TenderLostController.LinkedHospitals';
import { ShowToastEvent } from 'lightning/platformShowToastEvent';
import { CloseActionScreenEvent } from 'lightning/actions';
import {loadStyle} from 'lightning/platformResourceLoader'
import tnederDeletePageCss from '@salesforce/resourceUrl/tnederDeletePageCss';
export default class TenderLost extends LightningElement {
    @api
    recordid;
@@ -66,6 +67,9 @@
    //初始化
    connectedCallback(){
        Promise.all([
            loadStyle(this, tnederDeletePageCss)
        ]);
        // this.tenId = this.getQueryVariable('id');
        this.tenId = this.recordid 
        InitData({ParamIdStr:this.tenId}).then(response=>{
@@ -120,7 +124,7 @@
                    // this.Alert("保存成功",false,true);
                    this.showToast("保存成功",'success')
                    window.location.href = '/'+this.recordid
                    window.open('/lightning/n/PCLLostReportPageLwc#pageStatus=Create&oppId=' + response + '&lostType=失单');
                    window.open('/apex/PCLLostReportPageLwc?pageStatus=Create&oppId=' + response + '&lostType=失单');
                    // top.window.close();
                    // window.location.hash = "Refresh"+"=="+response;
                }else{