reuse
This commit is contained in:
@ -58,9 +58,6 @@ export class UserCenterComponentsDriverCaptainComponent extends BasicTableCompon
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.ar.url.subscribe(params => {
|
||||
this.st?.load(1);
|
||||
});
|
||||
}
|
||||
dataProcess(data: STData[]): STData[] {
|
||||
return data.map((i, index) => {
|
||||
|
||||
@ -63,9 +63,6 @@ export class UserCenterComponentsDriverComponent extends BasicTableComponent imp
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.ar.url.subscribe(params => {
|
||||
this.st?.load(1);
|
||||
});
|
||||
}
|
||||
|
||||
selectChange(e: any) {
|
||||
|
||||
@ -25,8 +25,6 @@ export class FreightComponentsListComponent extends BasicTableComponent implemen
|
||||
|
||||
loadingList = true;
|
||||
|
||||
sfValue = { enterpriseName: '', contactName: '' };
|
||||
|
||||
constructor(
|
||||
public service: UsermanageService,
|
||||
private modal: NzModalService,
|
||||
@ -36,6 +34,7 @@ export class FreightComponentsListComponent extends BasicTableComponent implemen
|
||||
public searchDrawerService: SearchDrawerService
|
||||
) {
|
||||
super(searchDrawerService);
|
||||
this.sfValue = { enterpriseName: '', contactName: '' };
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
@ -49,23 +48,23 @@ export class FreightComponentsListComponent extends BasicTableComponent implemen
|
||||
|
||||
beforeReq = (requestOptions: STRequestOptions) => {
|
||||
Object.assign(requestOptions.body, { listSource: 1 });
|
||||
if (this.sf) {
|
||||
if (this.sfValue) {
|
||||
Object.assign(requestOptions.body, {
|
||||
...this.sf?.value
|
||||
...this.sfValue
|
||||
});
|
||||
if (this.sf?.value.createTime) {
|
||||
if (this.sfValue.createTime) {
|
||||
Object.assign(requestOptions.body, {
|
||||
createTime: {
|
||||
start: this.sf?.value.createTime[0],
|
||||
end: this.sf?.value.createTime[1]
|
||||
start: this.sfValue.createTime[0],
|
||||
end: this.sfValue.createTime[1]
|
||||
}
|
||||
});
|
||||
}
|
||||
if (this.sf?.value.approvalTime) {
|
||||
if (this.sfValue.approvalTime) {
|
||||
Object.assign(requestOptions.body, {
|
||||
approvalTime: {
|
||||
start: this.sf?.value.approvalTime[0],
|
||||
end: this.sf?.value.approvalTime[1]
|
||||
start: this.sfValue.approvalTime[0],
|
||||
end: this.sfValue.approvalTime[1]
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -518,7 +517,7 @@ export class FreightComponentsListComponent extends BasicTableComponent implemen
|
||||
const params = { listSource: 1, pageSize: -1 };
|
||||
if (this.sf) {
|
||||
Object.assign(params, {
|
||||
...this.sf?.value
|
||||
...this.sfValue
|
||||
});
|
||||
}
|
||||
this.service.downloadFile(this.service.$api_export_enterprise, params);
|
||||
|
||||
@ -36,11 +36,7 @@ export class FreightComponentsUserComponent extends BasicTableComponent implemen
|
||||
this.st?.load(1);
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.ar.url.subscribe(params => {
|
||||
this.st?.load(1);
|
||||
});
|
||||
}
|
||||
ngOnInit() {}
|
||||
|
||||
beforeReq = (requestOptions: STRequestOptions) => {
|
||||
Object.assign(requestOptions.body, { certificationStatus: this.resourceStatus });
|
||||
|
||||
@ -56,9 +56,6 @@ export class VehicleComponentsAuditComponent extends BasicTableComponent impleme
|
||||
ngOnInit() {
|
||||
this.initSF();
|
||||
this.initST();
|
||||
this.ar.url.subscribe(params => {
|
||||
this.st?.load(1);
|
||||
});
|
||||
}
|
||||
|
||||
search() {
|
||||
|
||||
@ -48,9 +48,6 @@ export class VehicleComponentsListComponent extends BasicTableComponent implemen
|
||||
ngOnInit() {
|
||||
this.initSF();
|
||||
this.initST();
|
||||
this.ar.url.subscribe(params => {
|
||||
this.st?.load(1);
|
||||
});
|
||||
}
|
||||
dataProcess(data: STData[]): STData[] {
|
||||
return data.map((i, index) => {
|
||||
|
||||
Reference in New Issue
Block a user