fix bug
This commit is contained in:
		| @ -8,7 +8,7 @@ import { DataService } from '../../../services/data.service'; | |||||||
|  |  | ||||||
| @Component({ | @Component({ | ||||||
|   selector: 'app-datatable-partnertable', |   selector: 'app-datatable-partnertable', | ||||||
|   templateUrl: './partnertable.component.html', |   templateUrl: './partnertable.component.html' | ||||||
| }) | }) | ||||||
| export class DatatablePartnertableComponent implements OnInit { | export class DatatablePartnertableComponent implements OnInit { | ||||||
|   @ViewChild('st', { static: false }) st!: STComponent; |   @ViewChild('st', { static: false }) st!: STComponent; | ||||||
| @ -24,7 +24,7 @@ export class DatatablePartnertableComponent implements OnInit { | |||||||
|     public service: DataService, |     public service: DataService, | ||||||
|     private modalSrv: NzModalService, |     private modalSrv: NzModalService, | ||||||
|     private modal: ModalHelper, |     private modal: ModalHelper, | ||||||
|     private envSrv: EAEnvironmentService, |     private envSrv: EAEnvironmentService | ||||||
|   ) {} |   ) {} | ||||||
|  |  | ||||||
|   /** |   /** | ||||||
| @ -47,7 +47,7 @@ export class DatatablePartnertableComponent implements OnInit { | |||||||
|    * 选中行 |    * 选中行 | ||||||
|    */ |    */ | ||||||
|   get selectedRows() { |   get selectedRows() { | ||||||
|     return this.st?.list.filter((item) => item.checked) || []; |     return this.st?.list.filter(item => item.checked) || []; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   /** |   /** | ||||||
| @ -60,17 +60,17 @@ export class DatatablePartnertableComponent implements OnInit { | |||||||
|   /** |   /** | ||||||
|    * 重置表单 |    * 重置表单 | ||||||
|    */ |    */ | ||||||
|    resetSF() { |   resetSF() { | ||||||
|     this.sf.reset(); |     this.sf.reset(); | ||||||
|     this._$expand = false; |     this._$expand = false; | ||||||
|     this.isLoading = true |     this.isLoading = true; | ||||||
|   } |   } | ||||||
|   /** |   /** | ||||||
|    * 程序初始化入口 |    * 程序初始化入口 | ||||||
|    */ |    */ | ||||||
|   ngOnInit() { |   ngOnInit() { | ||||||
|     this.initSF(); |     this.initSF(); | ||||||
|     this.initST() |     this.initST(); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   /** |   /** | ||||||
| @ -84,33 +84,37 @@ export class DatatablePartnertableComponent implements OnInit { | |||||||
|           title: '合伙人名称', |           title: '合伙人名称', | ||||||
|           type: 'string', |           type: 'string', | ||||||
|           ui: { placeholder: '请输入' }, |           ui: { placeholder: '请输入' }, | ||||||
|           readOnly: false, |           readOnly: false | ||||||
|         }, |         }, | ||||||
|         phone: { |         phone: { | ||||||
|           title: '合伙人类型', |           title: '合伙人类型', | ||||||
|           type: 'string', |           type: 'string', | ||||||
|           ui: { |           ui: { | ||||||
|             widget: 'select', |             widget: 'select', | ||||||
|             placeholder: '请输入' }, |             placeholder: '请输入' | ||||||
|           readOnly: false, |           }, | ||||||
|  |           readOnly: false | ||||||
|         }, |         }, | ||||||
|         phone01: { |         phone01: { | ||||||
|           title: '合伙人状态', |           title: '合伙人状态', | ||||||
|           type: 'string', |           type: 'string', | ||||||
|           ui: { |           ui: { | ||||||
|             widget: 'select', |             widget: 'select', | ||||||
|             placeholder: '请输入' }, |             placeholder: '请输入' | ||||||
|           readOnly: false, |           }, | ||||||
|  |           readOnly: false | ||||||
|         }, |         }, | ||||||
|         createTime: { |         createTime: { | ||||||
|           type: 'string', |           type: 'string', | ||||||
|           title: '注册时间', |           title: '注册时间', | ||||||
|           ui: { widget: 'sl-from-to', type: 'date', format: 'yyyy-MM-dd' } as SFDateWidgetSchema, |           ui: { widget: 'sl-from-to', type: 'date', format: 'yyyy-MM-dd', visibleIf: { | ||||||
|         }, |             _$expand: (value: boolean) => value, | ||||||
|  |           }, } as SFDateWidgetSchema | ||||||
|  |         } | ||||||
|       }, |       }, | ||||||
|       type: 'object', |       type: 'object' | ||||||
|     }; |     }; | ||||||
|     this.ui = { '*': { spanLabelFixed: 80, grid: { span: 8, gutter: 4 }, enter: () => this.st?.load(1) } }; |     this.ui = { '*': { spanLabelFixed: 120, grid: { span: 8, gutter: 4 }, enter: () => this.st?.load(1) } }; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   /** |   /** | ||||||
| @ -118,7 +122,7 @@ export class DatatablePartnertableComponent implements OnInit { | |||||||
|    */ |    */ | ||||||
|   initST() { |   initST() { | ||||||
|     this.columns = [ |     this.columns = [ | ||||||
|       { title: '合伙人名称', index: 'name', className: 'text-center' }, |       { title: '合伙人名称', index: 'networkTransporterName', className: 'text-center' }, | ||||||
|       { title: '注册时间', index: 'telephone', className: 'text-center' }, |       { title: '注册时间', index: 'telephone', className: 'text-center' }, | ||||||
|       { title: '注册时间', index: 'roleName', className: 'text-center' }, |       { title: '注册时间', index: 'roleName', className: 'text-center' }, | ||||||
|       { title: '业务员', index: 'lastLoginDate', className: 'text-center' }, |       { title: '业务员', index: 'lastLoginDate', className: 'text-center' }, | ||||||
| @ -127,14 +131,14 @@ export class DatatablePartnertableComponent implements OnInit { | |||||||
|         index: 'stateLocked', |         index: 'stateLocked', | ||||||
|         className: 'text-center', |         className: 'text-center', | ||||||
|         type: 'enum', |         type: 'enum', | ||||||
|         enum: { 0: '正常', 1: '冻结' }, |         enum: { 0: '正常', 1: '冻结' } | ||||||
|       }, |       }, | ||||||
|       { title: '客户数', index: 'lastLoginDate', className: 'text-center' }, |       { title: '客户数', index: 'lastLoginDate', className: 'text-center' }, | ||||||
|       { title: '收益额', index: 'lastLoginDate', className: 'text-center' }, |       { title: '收益额', index: 'lastLoginDate', className: 'text-center' }, | ||||||
|       { title: '已提现金额', index: 'lastLoginDate', className: 'text-center' }, |       { title: '已提现金额', index: 'lastLoginDate', className: 'text-center' }, | ||||||
|       { title: '订单数', index: 'lastLoginDate', className: 'text-center' }, |       { title: '订单数', index: 'lastLoginDate', className: 'text-center' }, | ||||||
|       { title: '订单金额', index: 'lastLoginDate', className: 'text-center' }, |       { title: '订单金额', index: 'lastLoginDate', className: 'text-center' }, | ||||||
|       { title: '应收订单数', index: 'lastLoginDate', className: 'text-center' }, |       { title: '应收订单数', index: 'lastLoginDate', className: 'text-center' } | ||||||
|     ]; |     ]; | ||||||
|   } |   } | ||||||
|  |  | ||||||
| @ -144,6 +148,4 @@ export class DatatablePartnertableComponent implements OnInit { | |||||||
|   change(change: STChange) { |   change(change: STChange) { | ||||||
|     // console.log(change); |     // console.log(change); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   |  | ||||||
| } | } | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user