fengxiang
2018-01-04 72120bbe920425f80d3beb08c08af24151246006
src/app/core/pipe/tyep-handle.pipe.ts
@@ -16,12 +16,15 @@
  constructor(private dateService: DateService) {
  }
  transform(value: any, col?: Column): any {
  transform(value: any, col?: Column, row?: any ): any {
       const t = Types.Date;
       const type  = col.type;
       if (type != null && type.name != null) {
       if ( value != null && value !== '' && type != null && type.name != null) {
         value = this.transformHandle(value, type.name, type.format);
       }
       if (col.format !== null && col.format instanceof Function ) {
            value = col.format(value, col, row);
       }
       return value;
  }
  private transformHandle(value: any, type: Types, format: any): any{