king
2020-10-26 c7df940632b5f238f524da651fbf27a91ff6ad36
src/tabviews/custom/components/card/data-card/index.jsx
@@ -29,7 +29,6 @@
    dict: localStorage.getItem('lang') !== 'en-US' ? zhCN : enUS, // 字典
    config: null,              // 图表配置信息
    pageIndex: 1,
    empty: false,
    loading: false,            // 数据加载状态
    data: null,                // 数据
    total: null
@@ -124,7 +123,7 @@
  }
  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
@@ -147,7 +146,7 @@
          ))}
        </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>
    )
  }