黄千龙
2023-04-12 51f6dc7bc93a89c97ebc17e8c908f7f6be6566dc
force-app/main/default/lwc/lexOSHSubmit/lexOSHSubmit.js
@@ -13,7 +13,7 @@
   qisStatus;
   OSHstaff;
   OSHstaffEmail;
    err;
    @wire(CurrentPageReference)
     getStateParameters(currentPageReference) {
             console.log(111);
@@ -37,9 +37,9 @@
        }).then(result => {
            this.IsLoading = false;
            this.qisReportId = result.Id;
            this.qisStatus = result.QIStatus;
            this.OSHstaff = result.OSHstaff;
            this.OSHstaffEmail = result.OSHstaffEmail;
            this.qisStatus = result.qIStatus;
            this.OSHstaff = result.oSHstaff;
            this.OSHstaffEmail = result.oSHstaffEmail;
            console.log('this.qisStatus='+this.qisStatus);
            console.log('this.OSHstaff='+this.OSHstaff);
            console.log('this.OSHstaffEmail='+this.OSHstaffEmail);
@@ -86,8 +86,14 @@
              }).then(result =>{
                 console.log('result'+result);
                 if (result!='成功') {
                    alert(result);
                 }
                        this.err = result;
                        const evt = new ShowToastEvent({
                            title : '更新失败',
                            message: this.err,
                            variant: 'error'
                        });
                        this.dispatchEvent(evt);
                    }
                this.dispatchEvent(new CloseActionScreenEvent());
                this.updateRecordView(this.recordId);
              }).catch(error => {