unknown
2023-07-20 44ed00f66817d069afafb09c19e7ff87162b65c2
force-app/main/default/lwc/lexFeedbackReport/lexFeedbackReport.js
@@ -3,12 +3,10 @@
import { ShowToastEvent } from 'lightning/platformShowToastEvent';
import { CurrentPageReference } from 'lightning/navigation';
import init from '@salesforce/apex/RentalApplyFaultController.init';
import updateRentalApplyFaultStatus from '@salesforce/apex/RentalApplyFaultController.updateRentalApplyFaultStatus';
import init from '@salesforce/apex/LexRentalApplyFaultController.init';
import updateRentalApplyFaultStatus from '@salesforce/apex/LexRentalApplyFaultController.updateRentalApplyFaultStatus';
export default class lexFeedbackReport extends LightningElement {
   @api recordId;
   IsLoading = true;
   @wire(CurrentPageReference)
   getStateParameters(currentPageReference){
      if(currentPageReference) {
@@ -24,6 +22,7 @@
      init({
         recordId: this.recordId
      }).then(res=>{
         if(res){
         if(res.status__c!='已发送'){
            this.showToast('只有已发送的检测分析报告才能发送','warning');
            return;
@@ -39,6 +38,9 @@
               this.showToast(res,'error');
            }
         })
         }else{
            this.showToast('未查询到数据','warning');
         }
      })
   }