黄千龙
2023-04-04 9587297f13ea444c3f3b43417b6c7bee83fe82d9
force-app/main/default/lwc/lexOSHSubmit/lexOSHSubmit.js
@@ -13,7 +13,7 @@
   qisStatus;
   OSHstaff;
   OSHstaffEmail;
    err;
    @wire(CurrentPageReference)
     getStateParameters(currentPageReference) {
             console.log(111);
@@ -86,7 +86,13 @@
              }).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);