king
2021-09-26 0f22c04237fbe746887feafafca36d5cf996d0e0
src/tabviews/custom/components/card/data-card/index.jsx
@@ -45,7 +45,7 @@
  }
  UNSAFE_componentWillMount () {
    const { data, initdata, BID } = this.props
    const { data, initdata, BID, BData } = this.props
    let _config = fromJS(this.props.config).toJS()
    let _card = null
@@ -112,6 +112,7 @@
        item.key = index
        item.$$uuid = item[_config.setting.primaryKey] || ''
        item.$$BID = BID || ''
        item.$$BData = BData || ''
        item.$Index = index + 1 + ''
        return item
      })
@@ -150,6 +151,7 @@
      sync: _sync,
      data: _data,
      BID: BID || '',
      BData: BData || '',
      config: _config,
      card: _card,
      search: Utils.initMainSearch(_config.search),
@@ -174,7 +176,7 @@
  }
  UNSAFE_componentWillReceiveProps (nextProps) {
    const { sync, config, BID, selected } = this.state
    const { sync, config, BID, BData, selected } = this.state
    if (sync && !is(fromJS(this.props.data), fromJS(nextProps.data))) {
      let _data = []
@@ -184,6 +186,7 @@
          item.key = index
          item.$$uuid = item[config.setting.primaryKey] || ''
          item.$$BID = BID || ''
          item.$$BData = BData || ''
          item.$Index = index + 1 + ''
          return item
        })