This commit is contained in:
wangshiming
2022-04-08 16:54:58 +08:00
parent b0c9165b66
commit 0a4591acc3
2 changed files with 46 additions and 46 deletions

View File

@ -19,7 +19,7 @@ export class VehicleComponentsListComponent implements OnInit {
@ViewChild('st', { static: false }) st!: STComponent;
@ViewChild('sf', { static: false }) sf!: SFComponent;
constructor(public service: VehicleService, private modal: NzModalService, private router: Router, private ar: ActivatedRoute) { }
constructor(public service: VehicleService, private modal: NzModalService, private router: Router, private ar: ActivatedRoute) {}
/**
* 查询参数
@ -199,7 +199,7 @@ export class VehicleComponentsListComponent implements OnInit {
expand: (value: boolean) => value
}
}
},
}
// putOnRecord: {
// type: 'string',
// title: '是否已备案',
@ -278,7 +278,7 @@ export class VehicleComponentsListComponent implements OnInit {
text: '查看',
acl: { ability: ['VEHICLE-LIST-view'] },
click: item => {
this.router.navigate(['/vehicle/list/detail/' + item.id] );
this.router.navigate(['/vehicle/list/detail/' + item.id]);
// this.router.navigate(['./view', item.id], { relativeTo: this.ar, queryParams: { tenantId: item.tenantId } });
}
}
@ -308,11 +308,8 @@ export class VehicleComponentsListComponent implements OnInit {
}
// 导出
exportFire() {
this.service.request(this.service.$api_carLicense_export, this.reqParams).subscribe((res: any) => {
if(res) {
this.service.msgSrv.success('导出成功,请去右上角下载中心下载')
return
}
});
let params = Object.assign({}, this.reqParams || {});
params.pageSize = -1;
this.service.exportStart(params, this.service.$api_carLicense_export);
}
}