| | |
| | | import otherButtonInSubmitCompetitorReport from '@salesforce/apex/ReportController.updateForSubmitCompetitorReportButton'; |
| | | import { updateRecord } from 'lightning/uiRecordApi'; |
| | | import init from '@salesforce/apex/ReportController.initForSubmitCompetitorReportButton'; |
| | | |
| | | import { ShowToastEvent } from 'lightning/platformShowToastEvent'; |
| | | export default class LexSubmitCompetitorReport extends LightningElement { |
| | | @api recordId; |
| | | IsLoading = true; |
| | |
| | | recordId: this.recordId |
| | | }).then(result=>{ |
| | | this.submit(); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | this.IsLoading = false; |
| | | }); |
| | | |
| | | } |
| | | |
| | | showToast(msg,type) { |
| | | const event = new ShowToastEvent({ |
| | | title: '', |
| | | message: msg, |
| | | variant: type |
| | | }); |
| | | this.dispatchEvent(event); |
| | | } |
| | | |
| | | |
| | |
| | | otherButtonInSubmitCompetitorReport({ |
| | | recordId: this.recordId |
| | | }).then(result=>{ |
| | | this.showToast("提交对手竞争报告成功","success") |
| | | this.updateRecordView(this.recordId); |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | | }); |
| | | } |
| | | } |