19626
2023-09-13 196df4d4bf1941546d349cadbf343655578ec280
force-app/main/default/lwc/lexNewSolutionClosingAttachment/lexNewSolutionClosingAttachment.js
@@ -1,3 +1,11 @@
/*
 * @Description:
 * @version:
 * @Author: chen jing wu
 * @Date: 2023-08-29 14:42:25
 * @LastEditors: chen jing wu
 * @LastEditTime: 2023-09-11 15:32:14
 */
import { api, wire,LightningElement } from 'lwc';
import { CurrentPageReference } from "lightning/navigation";
import { CloseActionScreenEvent } from 'lightning/actions';
@@ -8,7 +16,7 @@
import { NavigationMixin } from 'lightning/navigation';
import { encodeDefaultFieldValues } from 'lightning/pageReferenceUtils';
export default class LexNewSolutionClosingAttachment extends LightningElement {
export default class LexNewSolutionClosingAttachment extends NavigationMixin(LightningElement) {
    @api recordId;
    schemeType;
    @wire(CurrentPageReference)
@@ -28,11 +36,12 @@
    }
    showToast(msg,type) {
        const event = new ShowToastEvent({
        title: '',
        message: msg,
        variant: type
      });
      this.dispatchEvent(event);
            title: ' ',
            message: msg,
            variant: type,
            mode: 'sticky'
        });
        this.dispatchEvent(event);
    }
    connectedCallback(){
        init({