edit
This commit is contained in:
@ -252,7 +252,7 @@
|
||||
<sv-title>关联企业</sv-title>
|
||||
<st #st [columns]="columns" [data]="service.$api_get_driver_projects" size="small"
|
||||
[req]="{ method: 'POST', allInBody: true, params: {appUserId:route.snapshot.params.id} }" [page]="{ show: false }"
|
||||
style="width: 100%;">
|
||||
[res]="{ reName: { list: 'data' } }" style="width: 100%;">
|
||||
</st>
|
||||
</sv-container>
|
||||
</nz-card>
|
||||
|
||||
@ -20,5 +20,14 @@
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.imgBox {
|
||||
display: flex;
|
||||
|
||||
img {
|
||||
width : 200px !important;
|
||||
height: 160px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -82,11 +82,11 @@ export class UserCenterComponentsDriverDetailComponent implements OnInit {
|
||||
}
|
||||
});
|
||||
// 获取载具信息
|
||||
// this.service.request(this.service.$api_get_driver_car_license, { appUserId: this.route.snapshot.params.id }).subscribe(res => {
|
||||
// if (res) {
|
||||
// this.carList = res;
|
||||
// }
|
||||
// });
|
||||
this.service.request(this.service.$api_get_driver_car_license, { appUserId: [this.route.snapshot.params.id] }).subscribe(res => {
|
||||
if (res) {
|
||||
this.carList = res;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/** 启用/冻结司机 */
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
</div>
|
||||
<div nz-col [nzXl]="_$expand ? 24 : 6" [nzLg]="24" [nzSm]="24" [nzXs]="24" class="text-right"
|
||||
[class.expend-options]="_$expand">
|
||||
<button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)">导出</button>
|
||||
<button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="exportList()">导出</button>
|
||||
<button nz-button nzType="primary" [disabled]="!sf.valid" [nzLoading]="service.http.loading"
|
||||
(click)="st?.load(1)">查询</button>
|
||||
<button nz-button (click)="resetSF()">重置</button>
|
||||
|
||||
@ -89,6 +89,11 @@ export class UserCenterComponentsDriverComponent implements OnInit {
|
||||
this._$expand = false;
|
||||
}
|
||||
|
||||
exportList() {
|
||||
const params = this.reqParams;
|
||||
this.service.downloadFile(this.service.$api_export_driver, params);
|
||||
}
|
||||
|
||||
private initSF(): SFSchema {
|
||||
return {
|
||||
properties: {
|
||||
|
||||
Reference in New Issue
Block a user