fix bug
This commit is contained in:
		| @ -4,7 +4,7 @@ | |||||||
|  * @Author       : Shiming |  * @Author       : Shiming | ||||||
|  * @Date         : 2022-01-18 09:51:21 |  * @Date         : 2022-01-18 09:51:21 | ||||||
|  * @LastEditors  : Shiming |  * @LastEditors  : Shiming | ||||||
|  * @LastEditTime : 2022-05-06 16:57:23 |  * @LastEditTime : 2022-05-06 17:09:51 | ||||||
|  * @FilePath     : \\tms-obc-web\\proxy.conf.js |  * @FilePath     : \\tms-obc-web\\proxy.conf.js | ||||||
|  * Copyright (C) 2022 huzhenhong. All rights reserved. |  * Copyright (C) 2022 huzhenhong. All rights reserved. | ||||||
|  */ |  */ | ||||||
| @ -30,7 +30,7 @@ module.exports = { | |||||||
|   // }, |   // }, | ||||||
|   '//api': { |   '//api': { | ||||||
|     target: { |     target: { | ||||||
|       host: 'tms-api-test.eascs.com', |       host: 'tms-api-dev.eascs.com', | ||||||
|       protocol: 'https:', |       protocol: 'https:', | ||||||
|       port: 443 |       port: 443 | ||||||
|     }, |     }, | ||||||
|  | |||||||
| @ -83,6 +83,12 @@ export class WithdrawalsRecordComponent extends BasicTableComponent { | |||||||
|     if (item) { |     if (item) { | ||||||
|       params = [item.id]; |       params = [item.id]; | ||||||
|     } else { |     } else { | ||||||
|  |       console.log(this.selectedRows); | ||||||
|  |        | ||||||
|  |       if (this.selectedRows.length <= 0) { | ||||||
|  |         this.service.msgSrv.error('请选择提现单!'); | ||||||
|  |         return; | ||||||
|  |       } | ||||||
|       params = this.selectedRows.map(node => node.id); |       params = this.selectedRows.map(node => node.id); | ||||||
|     } |     } | ||||||
|     const modal = this.nzModalService.create({ |     const modal = this.nzModalService.create({ | ||||||
|  | |||||||
| @ -107,6 +107,11 @@ export class PartnerAccountManagementWithdrawalsRecordComponent implements OnIni | |||||||
|     if (item) { |     if (item) { | ||||||
|       params = [item.id]; |       params = [item.id]; | ||||||
|     } else { |     } else { | ||||||
|  |          | ||||||
|  |       if (this.selectedRows.length <= 0) { | ||||||
|  |         this.service.msgSrv.error('请选择提现单!'); | ||||||
|  |         return; | ||||||
|  |       } | ||||||
|       params = this.selectedRows.map(node => node.id); |       params = this.selectedRows.map(node => node.id); | ||||||
|     } |     } | ||||||
|     const modal = this.nzModalService.create({ |     const modal = this.nzModalService.create({ | ||||||
| @ -117,6 +122,10 @@ export class PartnerAccountManagementWithdrawalsRecordComponent implements OnIni | |||||||
|           label: '拒绝', |           label: '拒绝', | ||||||
|           type: 'default', |           type: 'default', | ||||||
|           onClick: () => { |           onClick: () => { | ||||||
|  |             if (!this.msg || this.msg.trim().length === 0) { | ||||||
|  |               this.service.msgSrv.warning('请填写拒绝原因 '); | ||||||
|  |               return false; | ||||||
|  |             } | ||||||
|             this.service |             this.service | ||||||
|               .request(this.service.$api_disagree_refund, { |               .request(this.service.$api_disagree_refund, { | ||||||
|                 refundApplicationId: params, |                 refundApplicationId: params, | ||||||
| @ -129,6 +138,8 @@ export class PartnerAccountManagementWithdrawalsRecordComponent implements OnIni | |||||||
|                   this.st.load(1); |                   this.st.load(1); | ||||||
|                 } |                 } | ||||||
|               }); |               }); | ||||||
|  |             return false; | ||||||
|  |  | ||||||
|           } |           } | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user