This commit is contained in:
wangshiming
2022-04-19 13:10:42 +08:00
parent 094ca57d6a
commit b8870850b4
2 changed files with 8 additions and 4 deletions

View File

@ -12,7 +12,6 @@ import { DataService } from '../../../services/data.service';
providers: [DatePipe] providers: [DatePipe]
}) })
export class DatatableMancustomtableComponent implements OnInit { export class DatatableMancustomtableComponent implements OnInit {
url = `/user`;
@ViewChild('st', { static: false }) st!: STComponent; @ViewChild('st', { static: false }) st!: STComponent;
@ViewChild('sf', { static: false }) sf!: SFComponent; @ViewChild('sf', { static: false }) sf!: SFComponent;
_$expand = false; _$expand = false;
@ -20,6 +19,7 @@ export class DatatableMancustomtableComponent implements OnInit {
mode = 'year'; mode = 'year';
date: any = null; date: any = null;
defineDate = []; defineDate = [];
columns: STColumn[] =[];
resourceStatus: number = 1; resourceStatus: number = 1;
time: any = ['2022-01-01 00:00:00']; time: any = ['2022-01-01 00:00:00'];
dateFormat = 'yyyy'; dateFormat = 'yyyy';
@ -61,7 +61,8 @@ export class DatatableMancustomtableComponent implements OnInit {
} }
} }
}; };
columns: STColumn[] = [ initST() {
this.columns =[
{ title: '部门', index: 'department', className: 'text-center', width: '200px' }, { title: '部门', index: 'department', className: 'text-center', width: '200px' },
{ title: '业务员', index: 'salesmen', className: 'text-center', width: '200px' }, { title: '业务员', index: 'salesmen', className: 'text-center', width: '200px' },
{ title: '已认证货主数', index: 'certifiedCount', className: 'text-center', width: '100px', iif: ()=> { { title: '已认证货主数', index: 'certifiedCount', className: 'text-center', width: '100px', iif: ()=> {
@ -94,6 +95,7 @@ export class DatatableMancustomtableComponent implements OnInit {
}, },
{ title: '未激活货主数', index: 'notActiveCount', className: 'text-center', width: '120px' } { title: '未激活货主数', index: 'notActiveCount', className: 'text-center', width: '120px' }
]; ];
}
/** /**
* 查询参数 * 查询参数
*/ */
@ -121,6 +123,7 @@ export class DatatableMancustomtableComponent implements OnInit {
constructor(public service: DataService, private datePipe: DatePipe) {} constructor(public service: DataService, private datePipe: DatePipe) {}
ngOnInit(): void { ngOnInit(): void {
this.initSF(); this.initSF();
this.initST();
} }
/** /**
* 初始化查询表单 * 初始化查询表单
@ -239,7 +242,8 @@ export class DatatableMancustomtableComponent implements OnInit {
this.resourceStatus = e + 1; this.resourceStatus = e + 1;
// this.initST(); // this.initST();
setTimeout(() => { setTimeout(() => {
this.st.load(); this.initST();
// this.st.load(1);
}, 500); }, 500);
} }
} }

View File

@ -130,7 +130,7 @@ export class TaxManagementIndividualCollectComponent implements OnInit {
} }
} as SFDateWidgetSchema } as SFDateWidgetSchema
}, },
enterpriseInfoId: { nsrmc: {
type: 'string', type: 'string',
title: '网络货运人', title: '网络货运人',
ui: { ui: {