| | |
| | | |
| | | const event1 = new ShowToastEvent({ |
| | | message: |
| | | "已经取消!!", |
| | | "已经取消!", |
| | | variant : "error" |
| | | }); |
| | | const event4 = new ShowToastEvent({ |
| | |
| | | }).then(result => { |
| | | if (result != null) { |
| | | this.Campaign = result; |
| | | console.log(this.Campaign); |
| | | this.cancle().then(result=>{ |
| | | this.IsLoading=false; |
| | | this.dispatchEvent(new CloseActionScreenEvent()); |
| | |
| | | |
| | | |
| | | async cancle(){ |
| | | var checkUpdate=0; |
| | | if(this.Campaign.Status =='取消'){ |
| | | this.dispatchEvent(event1); |
| | | return; |
| | |
| | | message : result, |
| | | variant : 'error' |
| | | }) |
| | | checkUpdate +=1; |
| | | this.dispatchEvent(event7); |
| | | |
| | | } |
| | | }); |
| | | }else if(this.Campaign.Status =='公开中'){ |
| | |
| | | message : result, |
| | | variant : 'error' |
| | | }) |
| | | checkUpdate +=1; |
| | | this.dispatchEvent(event8); |
| | | } |
| | | }); |
| | | if(checkUpdate!=0){ |
| | | return; |
| | | } |
| | | await submitApprovalRequest({recordId : this.recordId}).then(result1=>{ |
| | | console.log(result1); |
| | | if(result1!=null){ |
| | |
| | | result2, |
| | | variant : 'error' |
| | | }); |
| | | checkUpdate +=1; |
| | | this.dispatchEvent(eventErroe3); |
| | | } |
| | | |
| | | }); |
| | | if(checkUpdate!=0){ |
| | | return; |
| | | } |
| | | const eventFail = new ShowToastEvent({ |
| | | message: |
| | | result1, |
| | | variant : 'error' |
| | | }); |
| | | checkUpdate +=1; |
| | | this.dispatchEvent(eventFail); |
| | | return; |
| | | } |
| | | }); |
| | | if(checkUpdate!=0){ |
| | | return; |
| | | } |
| | | window.location.reload(); |
| | | } |
| | | |