| | |
| | | }).then(result => { |
| | | this.refreshResult = result; |
| | | |
| | | |
| | | this.cancelSubmit().then(res=>{ |
| | | this.IsLoading=false; |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | |
| | | |
| | | async cancelSubmit(){ |
| | | if(this.refreshResult == '1') { |
| | | this.showToast('','状态更新完毕','success'); |
| | | this.showToast('','状态更新完毕!','success'); |
| | | // alert("状态更新完毕!"); |
| | | location.href = "/"+this.recordId; |
| | | |
| | | } else { |
| | | console.log("result:",this.refreshResult); |
| | | this.showToast('','更新失败,请联系管理员!','warning'); |
| | | // alert("更新失败,请联系管理员!"); |
| | | this.showToast('','更新失败!'+this.refreshResult,'warning'); |
| | | // this.showToast('','更新失败,请联系管理员!','warning'); |
| | | |
| | | } |
| | | |