| | |
| | | * @Author: chen jing wu |
| | | * @Date: 2023-04-13 13:50:23 |
| | | * @LastEditors: chen jing wu |
| | | * @LastEditTime: 2023-10-10 17:34:10 |
| | | * @LastEditTime: 2023-10-18 21:03:42 |
| | | */ |
| | | import { api, wire,LightningElement } from 'lwc'; |
| | | import { CurrentPageReference } from "lightning/navigation"; |
| | |
| | | }) |
| | | } |
| | | createEvent(){ |
| | | this[NavigationMixin.Navigate]({ |
| | | type: 'standard__objectPage', |
| | | attributes: { |
| | | objectApiName: 'Event', |
| | | actionName: 'new' |
| | | }, |
| | | state: { |
| | | // retURL: '/apex/VFClosePage', |
| | | accid: this.accountId, |
| | | oid: this.recordId |
| | | } |
| | | }); |
| | | window.open( |
| | | "/apex/SimpleEventRegister?retURL=%2Fapex%2FVFClosePage&accid=" |
| | | + this.accountId + "&oid=" |
| | | + this.recordId + "&source=AccountPCL&save_new=1&sfdc.override=1"); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | } |
| | | showToast(msg,type) { |