edit
This commit is contained in:
@ -113,7 +113,7 @@ export class UserCenterComponentsDriverCaptainComponent implements OnInit {
|
||||
|
||||
exportList() {
|
||||
const params = this.reqParams;
|
||||
this.service.downloadFile(this.service.$api_export_driver_cap, params);
|
||||
this.service.downloadFile(this.service.$api_export_driver_cap, {...params, pageSize: -1});
|
||||
}
|
||||
|
||||
private initSF(): SFSchema {
|
||||
|
||||
@ -61,7 +61,7 @@ export class UserCenterComponentsDriverConfigComponent implements OnInit {
|
||||
|
||||
exportList() {
|
||||
const params = this.reqParams;
|
||||
this.service.downloadFile(this.service.$api_export_driver_cap, params);
|
||||
this.service.downloadFile(this.service.$api_export_driver_cap, { ...params, pageSize: -1 });
|
||||
}
|
||||
|
||||
private initSF(): SFSchema {
|
||||
|
||||
@ -26,7 +26,13 @@ export class UserCenterComponentsDriverComponent implements OnInit {
|
||||
promotersTelephone = '';
|
||||
|
||||
resourceStatus: any = 10;
|
||||
constructor(public service: UsermanageService, private modal: NzModalService, private router: Router, private ar: ActivatedRoute,private modalHelper: ModalHelper) {}
|
||||
constructor(
|
||||
public service: UsermanageService,
|
||||
private modal: NzModalService,
|
||||
private router: Router,
|
||||
private ar: ActivatedRoute,
|
||||
private modalHelper: ModalHelper
|
||||
) {}
|
||||
|
||||
/**
|
||||
* 查询参数
|
||||
@ -134,7 +140,7 @@ export class UserCenterComponentsDriverComponent implements OnInit {
|
||||
|
||||
exportList() {
|
||||
const params = this.reqParams;
|
||||
this.service.downloadFile(this.service.$api_export_driver, params);
|
||||
this.service.downloadFile(this.service.$api_export_driver, { ...params, pageSize: -1 });
|
||||
}
|
||||
|
||||
private initSF(): SFSchema {
|
||||
@ -223,7 +229,7 @@ export class UserCenterComponentsDriverComponent implements OnInit {
|
||||
{ label: '全部', value: '' },
|
||||
{ label: '用户注册', value: 1 },
|
||||
{ label: '货主添加', value: 2 },
|
||||
{ label: '运营添加', value: 3 },
|
||||
{ label: '运营添加', value: 3 }
|
||||
],
|
||||
default: '',
|
||||
ui: {
|
||||
@ -249,18 +255,18 @@ export class UserCenterComponentsDriverComponent implements OnInit {
|
||||
};
|
||||
}
|
||||
add() {
|
||||
this.modalHelper.create(CarSettleAddDriverComponent, { size: 900 }).subscribe((res) => {
|
||||
this.modalHelper.create(CarSettleAddDriverComponent, { size: 900 }).subscribe(res => {
|
||||
this.st.load();
|
||||
});
|
||||
}
|
||||
private initST(): STColumn[] {
|
||||
return [
|
||||
{ title: '司机姓名', className: 'text-center', index: 'name' , width: 150},
|
||||
{ title: '手机号', className: 'text-center', index: 'mobile',width: 150 },
|
||||
{ title: '司机姓名', className: 'text-center', index: 'name', width: 150 },
|
||||
{ title: '手机号', className: 'text-center', index: 'mobile', width: 150 },
|
||||
{ title: '身份证号码', className: 'text-center', index: 'identityNo', width: 200 },
|
||||
{ title: '当前车辆', className: 'text-center', render: 'carNo' , width: 200},
|
||||
{ title: '驾驶证审核人', className: 'text-center', index: 'approvalUserName' , width: 200},
|
||||
{ title: '审核时间', className: 'text-center', index: 'approvalTime' , width: 200},
|
||||
{ title: '当前车辆', className: 'text-center', render: 'carNo', width: 200 },
|
||||
{ title: '驾驶证审核人', className: 'text-center', index: 'approvalUserName', width: 200 },
|
||||
{ title: '审核时间', className: 'text-center', index: 'approvalTime', width: 200 },
|
||||
{
|
||||
title: '实名认证状态',
|
||||
className: 'text-center',
|
||||
@ -271,9 +277,8 @@ export class UserCenterComponentsDriverComponent implements OnInit {
|
||||
0: { text: '待审核', color: 'default' },
|
||||
1: { text: '通过', color: 'success' },
|
||||
2: { text: '驳回', color: 'warning' }
|
||||
}
|
||||
, width: 180
|
||||
|
||||
},
|
||||
width: 180
|
||||
},
|
||||
{
|
||||
title: '驾驶证状态',
|
||||
@ -286,8 +291,8 @@ export class UserCenterComponentsDriverComponent implements OnInit {
|
||||
20: { text: '审核通过', color: 'success' },
|
||||
30: { text: '驳回', color: 'warning' },
|
||||
40: { text: '证件过期', color: 'error' }
|
||||
}
|
||||
, width: 180
|
||||
},
|
||||
width: 180
|
||||
},
|
||||
{
|
||||
title: '从业资格证状态',
|
||||
@ -300,24 +305,31 @@ export class UserCenterComponentsDriverComponent implements OnInit {
|
||||
20: { text: '审核通过', color: 'success' },
|
||||
30: { text: '驳回', color: 'warning' },
|
||||
40: { text: '证件过期', color: 'error' }
|
||||
}
|
||||
, width: 180
|
||||
},
|
||||
width: 180
|
||||
},
|
||||
{ title: '推广业务员', className: 'text-center', render: 'promotersTelephone', width: 180 },
|
||||
{
|
||||
title: '注册渠道',
|
||||
className: 'text-center',
|
||||
index: 'source',
|
||||
type: 'enum',
|
||||
enum: { 1: '用户注册', 2: '货主添加', 3: '运营添加' },
|
||||
width: 150
|
||||
},
|
||||
{ title: '推广业务员', className: 'text-center', render: 'promotersTelephone' , width: 180},
|
||||
{ title: '注册渠道', className: 'text-center', index: 'source', type: 'enum', enum: { 1: '用户注册', 2: '货主添加', 3: '运营添加' }, width: 150 },
|
||||
{ title: '注册时间', className: 'text-center', index: 'createTime', width: 200 },
|
||||
{
|
||||
title: '操作',
|
||||
width: '110px',
|
||||
className: 'text-center',
|
||||
fixed:'right',
|
||||
fixed: 'right',
|
||||
buttons: [
|
||||
{
|
||||
text: '查看<br/>',
|
||||
click: item => {
|
||||
this.router.navigate(['./detail', item.appUserId], { relativeTo: this.ar });
|
||||
},
|
||||
acl: { ability: ['USERCENTER-DRIVER-LIST-view'] },
|
||||
acl: { ability: ['USERCENTER-DRIVER-LIST-view'] }
|
||||
},
|
||||
// {
|
||||
// text: '基础设置',
|
||||
@ -327,13 +339,13 @@ export class UserCenterComponentsDriverComponent implements OnInit {
|
||||
{
|
||||
text: '资金账户',
|
||||
click: item => this.showAccountDetail(item),
|
||||
acl: { ability: ['USERCENTER-DRIVER-LIST-account'] },
|
||||
acl: { ability: ['USERCENTER-DRIVER-LIST-account'] }
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
}
|
||||
viewCar(item: any) {
|
||||
this.router.navigate(['/vehicle/list/detail/' + item.carId] );
|
||||
this.router.navigate(['/vehicle/list/detail/' + item.carId]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user