edit
This commit is contained in:
@ -25,6 +25,11 @@ export class UserCenterComponentsDriverDetailComponent implements OnInit {
|
||||
tempalateDriverData = { ...this.driverDetail };
|
||||
licenseDetail: any = {};
|
||||
tempalateLicenseDetail = { ...this.licenseDetail };
|
||||
columns: STColumn[] = [
|
||||
{ title: '企业名称', className: 'text-center', index: 'enterpriseName' },
|
||||
{ title: '项目名称', className: 'text-center', index: 'projectName' },
|
||||
{ title: '角色', className: 'text-center', index: 'roleName' }
|
||||
];
|
||||
carList: any = [];
|
||||
|
||||
@ViewChild('redectModal', { static: false })
|
||||
@ -41,7 +46,7 @@ export class UserCenterComponentsDriverDetailComponent implements OnInit {
|
||||
constructor(
|
||||
private nzModalService: NzModalService,
|
||||
public service: UsermanageService,
|
||||
private route: ActivatedRoute,
|
||||
public route: ActivatedRoute,
|
||||
private datePipe: DatePipe
|
||||
) {}
|
||||
|
||||
@ -50,26 +55,18 @@ export class UserCenterComponentsDriverDetailComponent implements OnInit {
|
||||
}
|
||||
initData() {
|
||||
// 获取司机头部信息
|
||||
this.service
|
||||
.request(this.service.$api_get_user_detail, {
|
||||
appUserId: this.route.snapshot.params.id
|
||||
})
|
||||
.subscribe(res => {
|
||||
if (res) {
|
||||
this.userDetail = res;
|
||||
}
|
||||
});
|
||||
this.service.request(this.service.$api_get_user_detail, { appUserId: this.route.snapshot.params.id }).subscribe(res => {
|
||||
if (res) {
|
||||
this.userDetail = res;
|
||||
}
|
||||
});
|
||||
// 获取用户个人信息
|
||||
this.service
|
||||
.request(this.service.$api_get_user_identity, {
|
||||
id: this.route.snapshot.params.id
|
||||
})
|
||||
.subscribe(res => {
|
||||
if (res) {
|
||||
this.userIdentityDetail = res;
|
||||
this.tempalateUserIdentityDetail = { ...this.userIdentityDetail };
|
||||
}
|
||||
});
|
||||
this.service.request(this.service.$api_get_user_identity, { id: this.route.snapshot.params.id }).subscribe(res => {
|
||||
if (res) {
|
||||
this.userIdentityDetail = res;
|
||||
this.tempalateUserIdentityDetail = { ...this.userIdentityDetail };
|
||||
}
|
||||
});
|
||||
// 获取驾驶证信息
|
||||
this.service.request(this.service.$api_get_driver_license, { appUserId: this.route.snapshot.params.id }).subscribe(res => {
|
||||
if (res) {
|
||||
|
||||
Reference in New Issue
Block a user