车辆对接

This commit is contained in:
wangshiming
2021-12-17 17:36:35 +08:00
parent 49e4042c4c
commit 17354d05ec
7 changed files with 137 additions and 164 deletions

View File

@ -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: '操作',