| | |
| | | dict: localStorage.getItem('lang') !== 'en-US' ? zhCN : enUS, // 字典 |
| | | config: null, // 图表配置信息 |
| | | pageIndex: 1, |
| | | empty: false, |
| | | loading: false, // 数据加载状态 |
| | | data: null, // 数据 |
| | | total: null |
| | |
| | | } |
| | | |
| | | render() { |
| | | const { config, empty, loading, data, pageIndex, total } = this.state |
| | | const { config, loading, data, pageIndex, total } = this.state |
| | | |
| | | let _total = config.setting.pageSize * pageIndex |
| | | let pageable = config.pageable && config.setting.laypage |
| | |
| | | ))} |
| | | </div> : null} |
| | | {pageable ? <div className={'prev-page ' + (total <= _total ? 'disabled' : '')} onClick={this.nextPage}><div><div><img src={nextImg} alt=""/></div></div></div> : null} |
| | | {empty ? <Empty description={false}/> : null} |
| | | {data && data.length === 0 ? <Empty description={false}/> : null} |
| | | </div> |
| | | ) |
| | | } |