Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop

This commit is contained in:
wangshiming
2022-02-16 10:00:50 +08:00
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 }); 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;
}; };

View File

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