fengxiang
2018-07-06 309d1f9d649daa08bb9b068af014749f6d4a5bce
src/app/business/entity/grid.ts
@@ -66,8 +66,10 @@
            this.data = pageData.data.map(row => {
                row['index'] = index++;
                return row;
            });
            });
            this.total = pageData.total;
            const pages = Math.ceil(this.total / this.pageSize);
            this.pageIndex = this.pageIndex >  pages ? pages : this.pageIndex;
        }
    }
    refreshStatus() {
@@ -83,7 +85,7 @@
        );
        this.selectedIndexs = this.selectedIndexs == null ? [] : this.selectedIndexs;
      }
    constructor(config: object) {
    constructor(config?: object) {
        if (config != null) {
            const keys = Object.getOwnPropertyNames(config);
            for (const index in keys) {
@@ -111,3 +113,8 @@
        return arr;
    }
}
export interface ResultBean<T> {
  code?: number;
  data?: T;
  message?: string;
}