123
chenjingwu
2024-04-19 ba36fa065238db22975a0895821f73cb351a31a6
force-app/main/default/lwc/lexCreateEvent/lexCreateEvent.js
@@ -4,7 +4,7 @@
 * @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";
@@ -45,18 +45,10 @@
        })
    }
    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) {