| | |
| | | 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() { |
| | |
| | | ); |
| | | 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) { |
| | |
| | | return arr; |
| | | } |
| | | } |
| | | export interface ResultBean<T>{ |
| | | export interface ResultBean<T> { |
| | | code?: number; |
| | | data?: T; |
| | | message?: string; |
| | | } |
| | | } |