edit
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { STChange, STColumn, STComponent, STData, STRequestOptions } from '@delon/abc/st';
|
||||
import { SFComponent, SFSchema, SFUISchema } from '@delon/form';
|
||||
import { SFComponent, SFDateWidgetSchema, SFSchema, SFUISchema } from '@delon/form';
|
||||
import { NzModalService } from 'ng-zorro-antd/modal';
|
||||
import { UsermanageService } from '../../../services/usercenter.service';
|
||||
import { AuditAdminComponent } from './audit-admin/audit-admin.component';
|
||||
@ -37,7 +37,11 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit {
|
||||
beforeReq = (requestOptions: STRequestOptions) => {
|
||||
if (this.sf) {
|
||||
Object.assign(requestOptions.body, {
|
||||
...this.sf.value
|
||||
...this.sf.value,
|
||||
createTime: {
|
||||
start: this.sf.value.createTime?.[0] || '',
|
||||
end: this.sf.value.createTime?.[1] || ''
|
||||
}
|
||||
});
|
||||
}
|
||||
Object.assign(requestOptions.body, { flag: this.tabType, listSource: 2 });
|
||||
@ -151,10 +155,10 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit {
|
||||
initEnterST(): STColumn[] {
|
||||
return [
|
||||
{ title: '企业名称', className: 'text-center', index: 'enterpriseName', width: 350 },
|
||||
{ title: '企业税号', className: 'text-center', index: 'unifiedSocialCreditCode', width: 180 },
|
||||
{ title: '企业税号', className: 'text-center', index: 'unifiedSocialCreditCode', width: 190 },
|
||||
{ title: '管理员', className: 'text-center', index: 'contacter', width: 150 },
|
||||
{ title: '手机号', className: 'text-center', index: 'mobile', width: 140 },
|
||||
{ title: '申请时间', className: 'text-center', index: 'createTime', width: 160 },
|
||||
{ title: '注册时间', className: 'text-center', index: 'createTime', width: 170 },
|
||||
{
|
||||
title: '审核状态',
|
||||
className: 'text-center',
|
||||
@ -287,6 +291,19 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit {
|
||||
expand: (value: boolean) => value
|
||||
}
|
||||
}
|
||||
},
|
||||
createTime: {
|
||||
title: '注册时间',
|
||||
type: 'string',
|
||||
ui: {
|
||||
widget: 'sl-from-to-search',
|
||||
format: 'yyyy-MM-dd',
|
||||
placeholder: '请选择',
|
||||
nzShowTime: true,
|
||||
visibleIf: {
|
||||
expand: (value: boolean) => value
|
||||
}
|
||||
} as SFDateWidgetSchema
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user