This commit is contained in:
Taric Xin
2022-02-16 09:50:50 +08:00
parent e431261f9d
commit 5f36f92aa7
2 changed files with 16 additions and 0 deletions

View File

@ -31,6 +31,14 @@ export class DriverAccountComponent implements OnInit {
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, {
createTime: {
start: this.sf.value.createTime?.[0] || '',
end: this.sf.value.createTime?.[1] || ''
}
});
}
}
return requestOptions;
};

View File

@ -37,6 +37,14 @@ export class FreightAccountComponent implements OnInit {
Object.assign(requestOptions.body, { accountType: 1 });
if (this.sf) {
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;
};