123
chenjingwu
2024-04-11 8d006ac357a60d77f086c37f2ae7338530a607f2
force-app/main/default/lwc/lexSpecilaApplyCreateLwc/lexSpecilaApplyCreateLwc.js
@@ -1,11 +1,3 @@
/*
 * @Description:
 * @version:
 * @Author: chen jing wu
 * @Date: 2023-06-25 10:06:08
 * @LastEditors: chen jing wu
 * @LastEditTime: 2023-06-25 10:54:46
 */
import { LightningElement,api, track, wire } from 'lwc';
import {CurrentPageReference} from 'lightning/navigation';
import { CloseActionScreenEvent } from 'lightning/actions';
@@ -13,7 +5,8 @@
import { NavigationMixin } from 'lightning/navigation';
import { encodeDefaultFieldValues } from 'lightning/pageReferenceUtils';
import init from '@salesforce/apex/OpportunityLightingButtonController.initForSpecilaApplyCreateButton';
import lwcCSS from '@salesforce/resourceUrl/lwcCSS';
import {loadStyle} from 'lightning/platformResourceLoader';
export default class LexSpecilaApplyCreateLwc extends NavigationMixin(LightningElement) {
    @api oppId;
    oppName;
@@ -36,6 +29,9 @@
        }
    }
    connectedCallback(){
        Promise.all([
            loadStyle(this, lwcCSS)
           ]);
        init({
            recordId: this.oppId
        }).then(result=>{
@@ -62,4 +58,4 @@
        });
        this.dispatchEvent(new CloseActionScreenEvent());
    }
}
}