edit
This commit is contained in:
@ -37,9 +37,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</ng-template>
|
||||
<ng-template st-row="contactsPhone" let-item let-index="index">
|
||||
<div style="color: #52c41a;" (click)="addPromoter(item)">
|
||||
{{ item.contactsPhone }}
|
||||
<ng-template st-row="promotersTelephone" let-item let-index="index">
|
||||
<div style="color: #52c41a;cursor: pointer;" (click)="addPromoter(item)">
|
||||
{{ item.promotersTelephone || '添加' }}
|
||||
</div>
|
||||
</ng-template>
|
||||
</st>
|
||||
|
||||
@ -11,7 +11,7 @@ import { UsermanageService } from '../../../services/usercenter.service';
|
||||
})
|
||||
export class FreightComponentsUserComponent implements OnInit {
|
||||
_$expand = false;
|
||||
ui: SFUISchema = { '*': { spanLabelFixed: 120, grid: {lg: 8, md: 12, sm: 12, xs: 24 }, enter: () => this.st.load() } };
|
||||
ui: SFUISchema = { '*': { spanLabelFixed: 120, grid: { lg: 8, md: 12, sm: 12, xs: 24 }, enter: () => this.st.load() } };
|
||||
schema: SFSchema = this.initSF();
|
||||
columns: STColumn[] = this.initST();
|
||||
@ViewChild('st', { static: false }) st!: STComponent;
|
||||
@ -190,19 +190,19 @@ export class FreightComponentsUserComponent implements OnInit {
|
||||
return [
|
||||
{ title: '用户姓名', className: 'text-center', index: 'name' },
|
||||
{ title: '手机号', className: 'text-center', index: 'telephone' },
|
||||
{ title: '身份证件号', className: 'text-center', render: 'certificateNumber' },
|
||||
{ title: '身份证件号', className: 'text-center', index: 'certificateNumber' },
|
||||
{ title: '常用服务', className: 'text-center', index: 'unifiedSocialCreditCode' },
|
||||
{ title: '推广业务员', className: 'text-center', index: 'promotersTelephone', render: 'promotersTelephone' },
|
||||
{ title: '申请时间', className: 'text-center', index: 'createTime', type: 'date' },
|
||||
{
|
||||
title: '状态',
|
||||
className: 'text-center',
|
||||
index: 'stateLocked',
|
||||
index: 'certificationStatus',
|
||||
type: 'badge',
|
||||
badge: {
|
||||
10: { text: '待审核', color: 'default' },
|
||||
20: { text: ' 已成功', color: 'success' },
|
||||
30: { text: '已驳回', color: 'warning' }
|
||||
0: { text: '待审核', color: 'processing' },
|
||||
1: { text: '已成功', color: 'success' },
|
||||
2: { text: '已驳回', color: 'warning' }
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -218,10 +218,12 @@ export class FreightComponentsUserComponent implements OnInit {
|
||||
},
|
||||
{
|
||||
text: '冻结',
|
||||
iif: item => item.stateLocked === 0,
|
||||
click: (item: any) => this.userAction(0)
|
||||
},
|
||||
{
|
||||
text: '启用',
|
||||
iif: item => item.stateLocked === 1,
|
||||
click: (item: any) => this.userAction(1)
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user