车辆对接
This commit is contained in:
@ -77,7 +77,7 @@ export class VehicleComponentsListComponent implements OnInit {
|
||||
ui: {
|
||||
widget: 'select',
|
||||
serverSearch: true,
|
||||
searchDebounceTime: 300,
|
||||
searchDebounceTime: 250,
|
||||
searchLoadingText: '搜索中...',
|
||||
onSearch: (q: any) => {
|
||||
if (!!q) {
|
||||
@ -85,12 +85,18 @@ export class VehicleComponentsListComponent implements OnInit {
|
||||
.request(this.service.$api_get_getCarLicenseListByCarNo, {
|
||||
carNo: q
|
||||
})
|
||||
.pipe(map((res: any[]) => (res as any[]).map((i) => ({ label: i.carNo, value: i.carNo } as SFSchemaEnum))))
|
||||
.pipe(map((res: any) => (res.records as any[]).map((i) => (
|
||||
{ label: i.carNo, value: i.carNo
|
||||
} as SFSchemaEnum)
|
||||
)
|
||||
)
|
||||
)
|
||||
.toPromise();
|
||||
} else {
|
||||
return of([]);
|
||||
}
|
||||
},
|
||||
width: 250
|
||||
} as SFSelectWidgetSchema,
|
||||
},
|
||||
carNoColor: {
|
||||
@ -234,7 +240,7 @@ export class VehicleComponentsListComponent implements OnInit {
|
||||
},
|
||||
{ title: '所有人', className: 'text-center', index: 'carOwner' },
|
||||
{ title: '是否挂靠', className: 'text-center', render: 'isSelf', },
|
||||
{ title: '挂靠协议', className: 'text-center', index: 'carNo' },
|
||||
{ title: '挂靠协议', className: 'text-center', render: 'approvalAuditStatus' },
|
||||
|
||||
{
|
||||
title: '操作',
|
||||
|
||||
Reference in New Issue
Block a user