edit
This commit is contained in:
		| @ -29,6 +29,14 @@ export class RechargeRecordComponent implements OnInit { | |||||||
|   beforeReq = (requestOptions: STRequestOptions) => { |   beforeReq = (requestOptions: STRequestOptions) => { | ||||||
|     if (this.sf) { |     if (this.sf) { | ||||||
|       Object.assign(requestOptions.body, { ...this.sf.value }); |       Object.assign(requestOptions.body, { ...this.sf.value }); | ||||||
|  |       if (this.sf.value.createTime) { | ||||||
|  |         Object.assign(requestOptions.body, { | ||||||
|  |           createTime: { | ||||||
|  |             start: this.sf.value.createTime?.[0] || '', | ||||||
|  |             end: this.sf.value.createTime?.[1] || '' | ||||||
|  |           } | ||||||
|  |         }); | ||||||
|  |       } | ||||||
|     } |     } | ||||||
|     return requestOptions; |     return requestOptions; | ||||||
|   }; |   }; | ||||||
| @ -79,7 +87,7 @@ export class RechargeRecordComponent implements OnInit { | |||||||
|   } |   } | ||||||
|  |  | ||||||
|   exportList() { |   exportList() { | ||||||
|     this.service.exportStart( { ...this.sf.value, pageSize: -1 }, this.service.$api_get_exportPageByOperator,); |     this.service.exportStart({ ...this.sf.value, pageSize: -1 }, this.service.$api_get_exportPageByOperator); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   private initSF(): SFSchema { |   private initSF(): SFSchema { | ||||||
| @ -117,9 +125,10 @@ export class RechargeRecordComponent implements OnInit { | |||||||
|           title: '充值时间', |           title: '充值时间', | ||||||
|           type: 'string', |           type: 'string', | ||||||
|           ui: { |           ui: { | ||||||
|             widget: 'date', |             widget: 'sl-from-to-search', | ||||||
|             mode: 'range', |             format: 'yyyy-MM-dd', | ||||||
|             format: 'yyyy-MM-dd' |             placeholder: '请选择', | ||||||
|  |             nzShowTime: true | ||||||
|           } as SFDateWidgetSchema |           } as SFDateWidgetSchema | ||||||
|         }, |         }, | ||||||
|         roleName: { |         roleName: { | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user