edit
This commit is contained in:
		| @ -31,6 +31,14 @@ export class DriverAccountComponent implements OnInit { | |||||||
|     Object.assign(requestOptions.body, { accountType: 2 }); |     Object.assign(requestOptions.body, { accountType: 2 }); | ||||||
|     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; | ||||||
|   }; |   }; | ||||||
|  | |||||||
| @ -37,6 +37,14 @@ export class FreightAccountComponent implements OnInit { | |||||||
|     Object.assign(requestOptions.body, { accountType: 1 }); |     Object.assign(requestOptions.body, { accountType: 1 }); | ||||||
|     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; | ||||||
|   }; |   }; | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user