fix bug
This commit is contained in:
@ -40,10 +40,10 @@ export class DriverAccountDetailComponent implements OnInit {
|
||||
});
|
||||
if (this.sf) {
|
||||
Object.assign(requestOptions.body, {
|
||||
...this.sf.value,
|
||||
...this.sf?.value,
|
||||
createTime: {
|
||||
start: this.sf.value?.createTime?.[0] || '',
|
||||
end: this.sf.value?.createTime?.[1] || ''
|
||||
start: this.sf?.value?.createTime?.[0] || '',
|
||||
end: this.sf?.value?.createTime?.[1] || ''
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -78,7 +78,7 @@ export class DriverAccountDetailComponent implements OnInit {
|
||||
exportList() {
|
||||
this.service.exportStart(
|
||||
{
|
||||
...this.sf.value,
|
||||
...this.sf?.value,
|
||||
pageSize: -1,
|
||||
ltdId: this.params.ltdId,
|
||||
projectId: this.params.projectId,
|
||||
@ -86,8 +86,8 @@ export class DriverAccountDetailComponent implements OnInit {
|
||||
roleId: this.params.roleId,
|
||||
bankType: this.params.bankType,
|
||||
createTime: {
|
||||
start: this.sf.value?.createTime?.[0] || '',
|
||||
end: this.sf.value?.createTime?.[1] || ''
|
||||
start: this.sf?.value?.createTime?.[0] || '',
|
||||
end: this.sf?.value?.createTime?.[1] || ''
|
||||
}
|
||||
},
|
||||
this.service.$api_get_exportAccountBalanceDriverByOperatorPage
|
||||
|
||||
@ -38,12 +38,12 @@ export class DriverAccountComponent extends BasicTableComponent implements OnIni
|
||||
beforeReq = (requestOptions: STRequestOptions) => {
|
||||
Object.assign(requestOptions.body, { accountType: 2 });
|
||||
if (this.sf) {
|
||||
Object.assign(requestOptions.body, { ...this.sf.value });
|
||||
if (this.sf.value.createTime) {
|
||||
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] || ''
|
||||
start: this.sf?.value.createTime?.[0] || '',
|
||||
end: this.sf?.value.createTime?.[1] || ''
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user