fix bug
This commit is contained in:
		| @ -8,7 +8,7 @@ import { DataService } from '../../../services/data.service'; | ||||
|  | ||||
| @Component({ | ||||
|   selector: 'app-datatable-partnertable', | ||||
|   templateUrl: './partnertable.component.html', | ||||
|   templateUrl: './partnertable.component.html' | ||||
| }) | ||||
| export class DatatablePartnertableComponent implements OnInit { | ||||
|   @ViewChild('st', { static: false }) st!: STComponent; | ||||
| @ -24,7 +24,7 @@ export class DatatablePartnertableComponent implements OnInit { | ||||
|     public service: DataService, | ||||
|     private modalSrv: NzModalService, | ||||
|     private modal: ModalHelper, | ||||
|     private envSrv: EAEnvironmentService, | ||||
|     private envSrv: EAEnvironmentService | ||||
|   ) {} | ||||
|  | ||||
|   /** | ||||
| @ -47,7 +47,7 @@ export class DatatablePartnertableComponent implements OnInit { | ||||
|    * 选中行 | ||||
|    */ | ||||
|   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._$expand = false; | ||||
|     this.isLoading = true | ||||
|     this.isLoading = true; | ||||
|   } | ||||
|   /** | ||||
|    * 程序初始化入口 | ||||
|    */ | ||||
|   ngOnInit() { | ||||
|     this.initSF(); | ||||
|     this.initST() | ||||
|     this.initST(); | ||||
|   } | ||||
|  | ||||
|   /** | ||||
| @ -84,33 +84,37 @@ export class DatatablePartnertableComponent implements OnInit { | ||||
|           title: '合伙人名称', | ||||
|           type: 'string', | ||||
|           ui: { placeholder: '请输入' }, | ||||
|           readOnly: false, | ||||
|           readOnly: false | ||||
|         }, | ||||
|         phone: { | ||||
|           title: '合伙人类型', | ||||
|           type: 'string', | ||||
|           ui: {  | ||||
|           ui: { | ||||
|             widget: 'select', | ||||
|             placeholder: '请输入' }, | ||||
|           readOnly: false, | ||||
|             placeholder: '请输入' | ||||
|           }, | ||||
|           readOnly: false | ||||
|         }, | ||||
|         phone01: { | ||||
|           title: '合伙人状态', | ||||
|           type: 'string', | ||||
|           ui: {  | ||||
|           ui: { | ||||
|             widget: 'select', | ||||
|             placeholder: '请输入' }, | ||||
|           readOnly: false, | ||||
|             placeholder: '请输入' | ||||
|           }, | ||||
|           readOnly: false | ||||
|         }, | ||||
|         createTime: { | ||||
|           type: 'string', | ||||
|           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() { | ||||
|     this.columns = [ | ||||
|       { title: '合伙人名称', index: 'name', className: 'text-center' }, | ||||
|       { title: '合伙人名称', index: 'networkTransporterName', className: 'text-center' }, | ||||
|       { title: '注册时间', index: 'telephone', className: 'text-center' }, | ||||
|       { title: '注册时间', index: 'roleName', className: 'text-center' }, | ||||
|       { title: '业务员', index: 'lastLoginDate', className: 'text-center' }, | ||||
| @ -127,23 +131,21 @@ export class DatatablePartnertableComponent implements OnInit { | ||||
|         index: 'stateLocked', | ||||
|         className: 'text-center', | ||||
|         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' } | ||||
|     ]; | ||||
|   } | ||||
|   | ||||
|  | ||||
|   /** | ||||
|    * 数据列表状态变化事件 | ||||
|    */ | ||||
|   change(change: STChange) { | ||||
|     // console.log(change); | ||||
|   } | ||||
|  | ||||
|   | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user