Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop
This commit is contained in:
		| @ -19,7 +19,7 @@ export class DatatableMancustomtableComponent implements OnInit { | |||||||
|   mode = 'year'; |   mode = 'year'; | ||||||
|   date: any = null; |   date: any = null; | ||||||
|   defineDate = []; |   defineDate = []; | ||||||
|   columns: STColumn[] =[]; |   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,41 +61,104 @@ export class DatatableMancustomtableComponent implements OnInit { | |||||||
|       } |       } | ||||||
|     } |     } | ||||||
|   }; |   }; | ||||||
|  initST() { |   initST() { | ||||||
|   this.columns =[ |     this.columns = [ | ||||||
|     { title: '部门', index: 'department', className: 'text-center', width: '200px' }, |       { title: '部门', index: 'department', className: 'text-center', width: '150px' }, | ||||||
|     { title: '业务员', index: 'salesmen', className: 'text-center', width: '200px' }, |       { title: '业务员', index: 'salesmen', className: 'text-center', width: '150px' }, | ||||||
|     { title: '已认证货主数', index: 'certifiedCount', className: 'text-center', width: '100px', iif: ()=>  { |       { | ||||||
|       console.log(this.resourceStatus); |         title: '已认证货主数', | ||||||
|       return this.resourceStatus !== 1 |         index: 'certifiedCount', | ||||||
|  |         className: 'text-center', | ||||||
|  |         width: '150px', | ||||||
|  |         iif: () => { | ||||||
|  |           return this?.resourceStatus !== 1 ? false : true; | ||||||
|  |         } | ||||||
|  |       }, | ||||||
|  |       { title: '已认证合伙人', index: 'certifiedCount', className: 'text-center', width: '150px' , | ||||||
|  |       iif: () => { | ||||||
|  |         return this?.resourceStatus !== 2 ? false : true; | ||||||
|  |       }}, | ||||||
|  |       { title: '新增合伙人数', index: 'addCount', className: 'text-center', width: '150px'  , | ||||||
|  |       iif: () => { | ||||||
|  |         return this?.resourceStatus !== 2 ? false : true; | ||||||
|  |       }}, | ||||||
|  |       { title: '合伙人活跃率', index: 'alivePer', className: 'text-center', width: '150px' , | ||||||
|  |       iif: () => { | ||||||
|  |         return this?.resourceStatus !== 2 ? false : true; | ||||||
|  |       } }, | ||||||
|  |       { title: '活跃合伙人数', index: 'aliveCount', className: 'text-center', width: '150px' , | ||||||
|  |       iif: () => { | ||||||
|  |         return this?.resourceStatus !== 2 ? false : true; | ||||||
|  |       } }, | ||||||
|  |       { title: '沉默合伙人数', index: 'silentCount', className: 'text-center', width: '150px' , | ||||||
|  |       iif: () => { | ||||||
|  |         return this?.resourceStatus !== 2 ? false : true; | ||||||
|  |       } }, | ||||||
|  |       { title: '流失合伙人数', index: 'drainCount', className: 'text-center', width: '150px'  , | ||||||
|  |       iif: () => { | ||||||
|  |         return this?.resourceStatus !== 2 ? false : true; | ||||||
|  |       }}, | ||||||
|  |       { title: '未激活合伙人数', index: 'notActiveCount', className: 'text-center', width: '150px' , | ||||||
|  |       iif: () => { | ||||||
|  |         return this?.resourceStatus !== 2 ? false : true; | ||||||
|  |       } }, | ||||||
|  |  | ||||||
|     } }, |       { | ||||||
|     { title: '已认证合伙人', index: 'certifiedCount', className: 'text-center', width: '100px' }, |         title: '新增货主数', | ||||||
|     { title: '新增合伙人数', index: 'addCount', className: 'text-center', width: '100px' }, |         index: 'addCount', | ||||||
|     { title: '合伙人活跃率', index: 'alivePer', className: 'text-center', width: '100px' }, |         className: 'text-center', | ||||||
|     { title: '活跃合伙人数', index: 'aliveCount', className: 'text-center', width: '100px' }, |         width: '150px', | ||||||
|     { title: '沉默合伙人数', index: 'silentCount', className: 'text-center', width: '100px' }, |         iif: () => { | ||||||
|     { title: '流失合伙人数', index: 'drainCount', className: 'text-center', width: '100px' }, |           return this?.resourceStatus !== 1 ? false : true; | ||||||
|     { title: '未激活合伙人数', index: 'notActiveCount', className: 'text-center', width: '100px' }, |         } | ||||||
|  |       }, | ||||||
|     { title: '新增货主数', index: 'addCount', className: 'text-center', width: '100px' }, |       { | ||||||
|     { title: '货主活跃率', index: 'alivePer', className: 'text-center', width: '100px' }, |         title: '货主活跃率', | ||||||
|     { |         index: 'alivePer', | ||||||
|       title: '活跃货主数', |         className: 'text-center', | ||||||
|       index: 'aliveCount', |         width: '150px', | ||||||
|       className: 'text-center', |         iif: () => { | ||||||
|       width: '100px' |           return this?.resourceStatus !== 1 ? false : true; | ||||||
|     }, |         } | ||||||
|     { title: '沉默货主数', index: 'silentCount', className: 'text-center', width: '100px' }, |       }, | ||||||
|     { |       { | ||||||
|       title: '流失货主数', |         title: '活跃货主数', | ||||||
|       index: 'drainCount', |         index: 'aliveCount', | ||||||
|       className: 'text-right', |         className: 'text-center', | ||||||
|       width: '100px', |         width: '150px', | ||||||
|     }, |         iif: () => { | ||||||
|     { title: '未激活货主数', index: 'notActiveCount', className: 'text-center', width: '120px' } |           return this?.resourceStatus !== 1 ? false : true; | ||||||
|   ]; |         } | ||||||
|  } |       }, | ||||||
|  |       { | ||||||
|  |         title: '沉默货主数', | ||||||
|  |         index: 'silentCount', | ||||||
|  |         className: 'text-center', | ||||||
|  |         width: '150px', | ||||||
|  |         iif: () => { | ||||||
|  |           return this?.resourceStatus !== 1 ? false : true; | ||||||
|  |         } | ||||||
|  |       }, | ||||||
|  |       { | ||||||
|  |         title: '流失货主数', | ||||||
|  |         index: 'drainCount', | ||||||
|  |         className: 'text-right', | ||||||
|  |         width: '150px', | ||||||
|  |         iif: () => { | ||||||
|  |           return this?.resourceStatus !== 1 ? false : true; | ||||||
|  |         } | ||||||
|  |       }, | ||||||
|  |       { | ||||||
|  |         title: '未激活货主数', | ||||||
|  |         index: 'notActiveCount', | ||||||
|  |         className: 'text-center', | ||||||
|  |         width: '150px', | ||||||
|  |         iif: () => { | ||||||
|  |           return this?.resourceStatus !== 1 ? false : true; | ||||||
|  |         } | ||||||
|  |       } | ||||||
|  |     ]; | ||||||
|  |   } | ||||||
|   /** |   /** | ||||||
|    * 查询参数 |    * 查询参数 | ||||||
|    */ |    */ | ||||||
| @ -238,12 +301,10 @@ export class DatatableMancustomtableComponent implements OnInit { | |||||||
|   } |   } | ||||||
|   selectChange(e: number) { |   selectChange(e: number) { | ||||||
|     console.log(e); |     console.log(e); | ||||||
|      |  | ||||||
|     this.resourceStatus = e + 1; |     this.resourceStatus = e + 1; | ||||||
|     // this.initST(); |  | ||||||
|     setTimeout(() => { |     setTimeout(() => { | ||||||
|       this.initST(); |       this.st?.resetColumns(); | ||||||
|       // this.st.load(1); |       this.st?.load(1); | ||||||
|     }, 500); |     }, 500); | ||||||
|   } |   } | ||||||
| } | } | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user