fix bug
This commit is contained in:
@ -34,21 +34,21 @@ export class VoucherManagementComponent extends BasicTableComponent implements O
|
||||
beforeReq = (requestOptions: STRequestOptions) => {
|
||||
if (this.sf) {
|
||||
Object.assign(requestOptions.body, {
|
||||
...this.sf.value
|
||||
...this.sf?.value
|
||||
});
|
||||
if (this.sf.value.createTime) {
|
||||
if (this.sf?.value.createTime) {
|
||||
Object.assign(requestOptions.body, {
|
||||
createTime: {
|
||||
start: this.sf.value.createTime?.[0] || null,
|
||||
end: this.sf.value.createTime?.[1] || null
|
||||
start: this.sf?.value.createTime?.[0] || null,
|
||||
end: this.sf?.value.createTime?.[1] || null
|
||||
}
|
||||
});
|
||||
}
|
||||
if (this.sf.value.vctime) {
|
||||
if (this.sf?.value.vctime) {
|
||||
Object.assign(requestOptions.body, {
|
||||
vctime: {
|
||||
start: this.sf.value.vctime?.[0] || null,
|
||||
end: this.sf.value.vctime?.[1] || null
|
||||
start: this.sf?.value.vctime?.[0] || null,
|
||||
end: this.sf?.value.vctime?.[1] || null
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user