This commit is contained in:
Taric Xin
2022-05-07 15:45:20 +08:00
parent e199994d96
commit 4744abad33
2 changed files with 6 additions and 2 deletions

View File

@ -79,7 +79,9 @@ export class SupplyManagementBulkComponent extends BasicTableComponent implement
beforeReq = (requestOptions: STRequestOptions) => { beforeReq = (requestOptions: STRequestOptions) => {
const a: any = {}; const a: any = {};
if (this.resourceStatus) { if (this.resourceStatus) {
a.resourceStatus = this.resourceStatus; Object.assign(requestOptions.body, {
resourceStatus: this.resourceStatus
});
} }
const params: any = Object.assign({}, this.sf?.value || {}); const params: any = Object.assign({}, this.sf?.value || {});
delete params._$expand; delete params._$expand;

View File

@ -75,7 +75,9 @@ export class SupplyManagementVehicleComponent extends BasicTableComponent implem
...params ...params
}; };
if (this.resourceStatus) { if (this.resourceStatus) {
a.resourceStatus = this.resourceStatus; Object.assign(requestOptions.body, {
resourceStatus: this.resourceStatus
});
} }
if (this.sf) { if (this.sf) {
Object.assign(requestOptions.body, { Object.assign(requestOptions.body, {