twysparks
2023-05-24 f0adfc7326311c6ba40281ffe48437d41a79bd32
force-app/main/default/lwc/lexCreateAssessmentReport/lexCreateAssessmentReport.js
@@ -10,9 +10,6 @@
    CloseActionScreenEvent
} from 'lightning/actions';
import init from '@salesforce/apex/buttonCampaignCtl.init';
import {
    ShowToastEvent
} from 'lightning/platformShowToastEvent';
export default class LexCreateAssessmentReport extends LightningElement {
    @api recordId;
@@ -56,16 +53,7 @@
        if (status == '公开中') {
            window.open("/apex/AssessmentReport?camid=" + this.Id, "_top");
        } else {
            this.ShowToastEvent("只有批准后才能创建报告!", "error")
            alert("只有批准后才能创建报告!");
        }
    }
    ShowToastEvent(msg, type) {
        const event = new ShowToastEvent({
            title: '',
            message: msg,
            variant: type
        });
        this.dispatchEvent(event);
    }
}