fix bug
This commit is contained in:
		| @ -83,6 +83,12 @@ export class WithdrawalsRecordComponent extends BasicTableComponent { | ||||
|     if (item) { | ||||
|       params = [item.id]; | ||||
|     } else { | ||||
|       console.log(this.selectedRows); | ||||
|        | ||||
|       if (this.selectedRows.length <= 0) { | ||||
|         this.service.msgSrv.error('请选择提现单!'); | ||||
|         return; | ||||
|       } | ||||
|       params = this.selectedRows.map(node => node.id); | ||||
|     } | ||||
|     const modal = this.nzModalService.create({ | ||||
|  | ||||
| @ -107,6 +107,11 @@ export class PartnerAccountManagementWithdrawalsRecordComponent implements OnIni | ||||
|     if (item) { | ||||
|       params = [item.id]; | ||||
|     } else { | ||||
|          | ||||
|       if (this.selectedRows.length <= 0) { | ||||
|         this.service.msgSrv.error('请选择提现单!'); | ||||
|         return; | ||||
|       } | ||||
|       params = this.selectedRows.map(node => node.id); | ||||
|     } | ||||
|     const modal = this.nzModalService.create({ | ||||
| @ -117,6 +122,10 @@ export class PartnerAccountManagementWithdrawalsRecordComponent implements OnIni | ||||
|           label: '拒绝', | ||||
|           type: 'default', | ||||
|           onClick: () => { | ||||
|             if (!this.msg || this.msg.trim().length === 0) { | ||||
|               this.service.msgSrv.warning('请填写拒绝原因 '); | ||||
|               return false; | ||||
|             } | ||||
|             this.service | ||||
|               .request(this.service.$api_disagree_refund, { | ||||
|                 refundApplicationId: params, | ||||
| @ -129,6 +138,8 @@ export class PartnerAccountManagementWithdrawalsRecordComponent implements OnIni | ||||
|                   this.st.load(1); | ||||
|                 } | ||||
|               }); | ||||
|             return false; | ||||
|  | ||||
|           } | ||||
|         }, | ||||
|         { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user