fix bug
This commit is contained in:
@ -85,10 +85,10 @@ export class SystemLogsComponent implements OnInit {
|
||||
requestOptions.body.operateType = '1';
|
||||
if (this.sf) {
|
||||
Object.assign(requestOptions.body, {
|
||||
...this.sf.value,
|
||||
...this.sf?.value,
|
||||
operateType: '1',
|
||||
endTime: this.sf.value.time?.[1] || null,
|
||||
startTime: this.sf.value.time?.[0] || null
|
||||
endTime: this.sf?.value.time?.[1] || null,
|
||||
startTime: this.sf?.value.time?.[0] || null
|
||||
});
|
||||
}
|
||||
return requestOptions;
|
||||
|
||||
@ -64,10 +64,10 @@ export class SystemSupplyLogsComponent implements OnInit {
|
||||
requestOptions.body.operateType = '4'
|
||||
if (this.sf) {
|
||||
Object.assign(requestOptions.body, {
|
||||
...this.sf.value,
|
||||
...this.sf?.value,
|
||||
operateType: '4',
|
||||
endTime: this.sf.value.time?.[1] || null,
|
||||
startTime: this.sf.value.time?.[0] || null
|
||||
endTime: this.sf?.value.time?.[1] || null,
|
||||
startTime: this.sf?.value.time?.[0] || null
|
||||
});
|
||||
}
|
||||
return requestOptions;
|
||||
|
||||
@ -63,10 +63,10 @@ export class SystemWaybillLogsComponent implements OnInit {
|
||||
requestOptions.body.operateType = '3'
|
||||
if (this.sf) {
|
||||
Object.assign(requestOptions.body, {
|
||||
...this.sf.value,
|
||||
...this.sf?.value,
|
||||
operateType: '3',
|
||||
endTime: this.sf.value.time?.[1] || null,
|
||||
startTime: this.sf.value.time?.[0] || null
|
||||
endTime: this.sf?.value.time?.[1] || null,
|
||||
startTime: this.sf?.value.time?.[0] || null
|
||||
});
|
||||
}
|
||||
return requestOptions;
|
||||
|
||||
@ -93,10 +93,10 @@ export class UserLogsComponent implements OnInit {
|
||||
beforeReq = (requestOptions: STRequestOptions) => {
|
||||
if (this.sf) {
|
||||
Object.assign(requestOptions.body, {
|
||||
...this.sf.value,
|
||||
...this.sf?.value,
|
||||
time: {
|
||||
start: this.sf.value.time?.[0] || null,
|
||||
end: this.sf.value.time?.[1] || null
|
||||
start: this.sf?.value.time?.[0] || null,
|
||||
end: this.sf?.value.time?.[1] || null
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@ -94,10 +94,10 @@ export class VersionLogsComponent implements OnInit {
|
||||
beforeReq = (requestOptions: STRequestOptions) => {
|
||||
if (this.sf) {
|
||||
Object.assign(requestOptions.body, {
|
||||
...this.sf.value,
|
||||
...this.sf?.value,
|
||||
publishTime: {
|
||||
start: this.sf.value.time?.[0] || null,
|
||||
end: this.sf.value.time?.[1] || null
|
||||
start: this.sf?.value.time?.[0] || null,
|
||||
end: this.sf?.value.time?.[1] || null
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user