fix bug
This commit is contained in:
@ -50,13 +50,13 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit {
|
||||
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] || '',
|
||||
end: this.sf.value.createTime?.[1] || ''
|
||||
start: this.sf?.value.createTime?.[0] || '',
|
||||
end: this.sf?.value.createTime?.[1] || ''
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -240,7 +240,7 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit {
|
||||
}
|
||||
|
||||
exportList() {
|
||||
const params = { ...this.sf.value, flag: this.tabType, listSource: 2, pageSize: -1 };
|
||||
const params = { ...this.sf?.value, flag: this.tabType, listSource: 2, pageSize: -1 };
|
||||
this.service.downloadFile(this.service.$api_export_enterprise, params);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user