edit
This commit is contained in:
@ -21,7 +21,7 @@
|
||||
|
||||
<nz-card>
|
||||
<!-- 数据列表 -->
|
||||
<st #st multiSort [data]="tabType===1?service.$api_get_freight_list:service.$api_get_enterprise_admin_list"
|
||||
<st #st multiSort [data]="service.$api_get_freight_list"
|
||||
[columns]="tabType===1?enterColumns:adminColumns"
|
||||
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
|
||||
[res]="{ reName: { list: 'data.records', total: 'data.total' } }"
|
||||
|
||||
@ -32,7 +32,7 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit {
|
||||
isActived: false
|
||||
}
|
||||
];
|
||||
constructor(public service: UsermanageService, private router: Router, private modal: NzModalService, private ar: ActivatedRoute) {}
|
||||
constructor(public service: UsermanageService, private router: Router, private modal: NzModalService) {}
|
||||
|
||||
/**
|
||||
* 查询参数
|
||||
@ -128,16 +128,18 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit {
|
||||
this.tabType = item.type;
|
||||
this.expandToggle(false);
|
||||
this.sf?.reset();
|
||||
// setTimeout(() => {
|
||||
// this.st.load(1);
|
||||
// }, 100);
|
||||
this.st.data = this.tabType === 1 ? this.service.$api_get_freight_list : this.service.$api_get_enterprise_admin_list;
|
||||
setTimeout(() => {
|
||||
this.st.load(1);
|
||||
}, 100);
|
||||
}
|
||||
|
||||
private adminAuditUser(params: any, modal: any) {
|
||||
this.service.request(this.service.$api_audit_enterprise_admin, params, 'POST', false).subscribe(res => {
|
||||
this.service.request(this.service.$api_audit_enterprise_admin, params).subscribe(res => {
|
||||
if (res) {
|
||||
this.service.msgSrv.success('审核成功');
|
||||
modal.destroy();
|
||||
this.st.load(1);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -204,7 +206,7 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit {
|
||||
fixed: 'right',
|
||||
width: '180px',
|
||||
className: 'text-center',
|
||||
buttons: [{ text: '审核', click: _record => this.ViewAdimin(_record) }]
|
||||
buttons: [{ text: '审核', click: _record => this.ViewAdimin(_record), iif: (item: any) => item.approvalStatus === 10 }]
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user