king
2022-08-16 c6d0dcdccdb898e1abcdb7fb8312d3b7b653743f
src/tabviews/custom/components/timeline/normal-timeline/index.jsx
@@ -27,7 +27,8 @@
    sync: false,               // 是否统一请求数据
    data: null,                // 数据
    BData: '',
    card: null
    card: null,
    description: false
  }
  /**
@@ -322,6 +323,8 @@
          message: '未获取到快递信息',
          duration: 10
        })
      } else if (/查询无结果/.test(res)) {
        this.setState({description: res, data: [], loading: false})
      } else {
        let data = res.split(/\n/).filter(Boolean)
@@ -429,7 +432,7 @@
  }
  render() {
    const { config, loading, data } = this.state
    const { config, loading, data, description } = this.state
    return (
      <div className="normal-timeline-box" id={'anchor' + config.uuid} style={{...config.style}}>
@@ -447,7 +450,7 @@
          {data.map(item => this.getMknodes(item))}
        </div> : null}
        {data && data.length === 0 ? <div className="card-row-list" style={{height: config.wrap.contentHeight}}>
          <Empty description={false}/>
          <Empty description={description}/>
        </div> : null}
      </div>
    )