This commit is contained in:
Taric Xin
2021-12-20 15:15:13 +08:00
parent c3f31cc224
commit bce661246c
15 changed files with 272 additions and 124 deletions

View File

@ -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>

View File

@ -20,5 +20,14 @@
}
}
.imgBox {
display: flex;
img {
width : 200px !important;
height: 160px;
}
}
}
}

View File

@ -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;
}
});
}
/** 启用/冻结司机 */

View File

@ -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>

View File

@ -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: {