19626
2023-05-15 f6a201e215d929bda9815e1689907d166a603519
force-app/main/default/lwc/lexOCSMToReport/lexOCSMToReport.js
@@ -4,7 +4,7 @@
 * @Author: chen jing wu
 * @Date: 2023-04-07 09:02:03
 * @LastEditors: chen jing wu
 * @LastEditTime: 2023-04-11 11:26:11
 * @LastEditTime: 2023-05-15 09:17:27
 */
import { api, wire,LightningElement } from 'lwc';
import { CurrentPageReference } from "lightning/navigation";
@@ -16,7 +16,7 @@
export default class LexOCSMToReport extends LightningElement {
    @api recordId;
    IsLoading = true;
    OCSMAdministrativeReportStatus;
    theOCSMAdministrativeReportStatus;
    awareDate;
@@ -43,7 +43,7 @@
        }).then(result => {
            console.log(result);
            if (result != null) {
                this.OCSMAdministrativeReportStatus = result.OCSMAdministrativeReportStatus;
                this.theOCSMAdministrativeReportStatus = result.theOCSMAdministrativeReportStatus;
                this.awareDate = result.awareDate;
                this.toReport();
            }
@@ -75,7 +75,7 @@
            return;
            }
        if(this.OCSMAdministrativeReportStatus == undefined && this.awareDate != undefined ){
        if(this.theOCSMAdministrativeReportStatus == undefined && this.awareDate != undefined ){
            updateForOCSMToReportButton({
                recordId: this.recordId
            }).then(result =>{