| | |
| | | import { CurrentPageReference,NavigationMixin } from 'lightning/navigation'; |
| | | import { CloseActionScreenEvent } from 'lightning/actions'; |
| | | import { updateRecord } from 'lightning/uiRecordApi'; |
| | | import { ShowToastEvent } from 'lightning/platformShowToastEvent'; |
| | | |
| | | import deleteApply from '@salesforce/apex/AssetMaintainHeaderWebService.deleteApply'; |
| | | import applyPermission from '@salesforce/apex/AssetMaintainHeaderWebService.applyPermission'; |
| | |
| | | connectedCallback(){ |
| | | applyPermission().then(res=>{ |
| | | if(res=='false'){ |
| | | this.IsLoading = false; |
| | | this.showToast('没有删除申请的权限','error'); |
| | | }else if(confirm("是否确定删除?")){ |
| | | deleteApply({ |
| | | amhId:this.recordId |
| | | }).then(result=>{ |
| | | console.log("result2222:"+result); |
| | | if(result=='1'){ |
| | | this.showToast('已启动Batch,完成时会有邮件提醒','success'); |
| | | }else{ |