UI
This commit is contained in:
@ -22,7 +22,11 @@ export class FreightComponentsUserComponent extends BasicTableComponent implemen
|
||||
|
||||
resourceStatus: any = 0;
|
||||
|
||||
constructor(public service: UsermanageService, private modal: NzModalService, private router: Router, private ar: ActivatedRoute,
|
||||
constructor(
|
||||
public service: UsermanageService,
|
||||
private modal: NzModalService,
|
||||
private router: Router,
|
||||
private ar: ActivatedRoute,
|
||||
public searchDrawerService: SearchDrawerService
|
||||
) {
|
||||
super(searchDrawerService);
|
||||
@ -32,7 +36,6 @@ export class FreightComponentsUserComponent extends BasicTableComponent implemen
|
||||
this.st?.load(1);
|
||||
}
|
||||
|
||||
|
||||
ngOnInit() {
|
||||
this.ar.url.subscribe(params => {
|
||||
this.st?.load(1);
|
||||
@ -114,6 +117,16 @@ export class FreightComponentsUserComponent extends BasicTableComponent implemen
|
||||
});
|
||||
}
|
||||
|
||||
exportList() {
|
||||
const params = { certificationStatus: this.resourceStatus, pageSize: -1 };
|
||||
if (this.sf) {
|
||||
Object.assign(params, {
|
||||
...this.sf?.value
|
||||
});
|
||||
}
|
||||
this.service.downloadFile(this.service.$api_get_user_list_export, params);
|
||||
}
|
||||
|
||||
private initSF(): SFSchema {
|
||||
return {
|
||||
properties: {
|
||||
@ -157,7 +170,7 @@ export class FreightComponentsUserComponent extends BasicTableComponent implemen
|
||||
],
|
||||
default: '',
|
||||
ui: {
|
||||
widget: 'select',
|
||||
widget: 'select'
|
||||
}
|
||||
},
|
||||
promotersTelephone: {
|
||||
@ -165,7 +178,7 @@ export class FreightComponentsUserComponent extends BasicTableComponent implemen
|
||||
type: 'string',
|
||||
maxLength: 11,
|
||||
ui: {
|
||||
placeholder: '请输入手机号',
|
||||
placeholder: '请输入手机号'
|
||||
}
|
||||
},
|
||||
effectiveDate: {
|
||||
@ -174,7 +187,7 @@ export class FreightComponentsUserComponent extends BasicTableComponent implemen
|
||||
ui: {
|
||||
widget: 'date',
|
||||
mode: 'range',
|
||||
format: 'yyyy-MM-dd',
|
||||
format: 'yyyy-MM-dd'
|
||||
} as SFDateWidgetSchema
|
||||
}
|
||||
}
|
||||
@ -212,19 +225,19 @@ export class FreightComponentsUserComponent extends BasicTableComponent implemen
|
||||
click: (item: any) => {
|
||||
this.router.navigate(['./view', item.appUserId], { relativeTo: this.ar });
|
||||
},
|
||||
acl: { ability: ['USERCENTER-FREIGHT-USER-view'] },
|
||||
acl: { ability: ['USERCENTER-FREIGHT-USER-view'] }
|
||||
},
|
||||
{
|
||||
text: '冻结',
|
||||
iif: item => item.stateLocked === 0,
|
||||
click: (item: any) => this.userAction(0, [item.appUserId]),
|
||||
acl: { ability: ['USERCENTER-FREIGHT-USER-lock'] },
|
||||
acl: { ability: ['USERCENTER-FREIGHT-USER-lock'] }
|
||||
},
|
||||
{
|
||||
text: '启用',
|
||||
iif: item => item.stateLocked === 1,
|
||||
click: (item: any) => this.userAction(1, [item.appUserId]),
|
||||
acl: { ability: ['USERCENTER-FREIGHT-USER-lock'] },
|
||||
acl: { ability: ['USERCENTER-FREIGHT-USER-lock'] }
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user