unknown
2023-07-06 a0e8bc7f67367c16448794069cb24b403c60d43d
force-app/main/default/lwc/lexMainFixtureSelect/lexMainFixtureSelect.js
@@ -1,6 +1,5 @@
import { LightningElement, track, wire, api } from 'lwc';
import { CurrentPageReference,NavigationMixin } from 'lightning/navigation';
import { CloseActionScreenEvent } from 'lightning/actions';
import init from '@salesforce/apex/MainFixtureSelectButtonController.init';
export default class lexMainFixtureSelect extends LightningElement {
@@ -20,14 +19,11 @@
   connectedCallback(){
      init({
         recordId:this.recordId
      }).then(res=>{
         window.open("/apex/MainFixtureSelect?pt_recid=" + res, "_top");
         this.dispatchEvent(new CloseActionScreenEvent());
      }).catch(err=>{
         console.log(err);
         this.dispatchEvent(new CloseActionScreenEvent());
      })
      window.open("/apex/MainFixtureSelect?pt_recid=" + this.recordId, "_top");
   }
   closeAction() {
        //返回当前的备品申请
      window.open("/"+this.recordId,'_self');
    }
}