This commit is contained in:
wangshiming
2022-04-28 20:26:30 +08:00
parent 6cc12ff451
commit 2aeaa09e14
112 changed files with 339 additions and 339 deletions

View File

@ -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

View File

@ -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] || ''
}
});
}