king
2021-10-03 3bdcb8da222aaedcc1b6b279d1d038fe3b714570
src/tabviews/custom/components/card/data-card/index.jsx
@@ -256,7 +256,19 @@
  checkTopLine = () => {
    const { config, data } = this.state
    if (!data || data.length === 0) return
    if (!data || data.length === 0) {
      this.setState({
        activeKey: '',
        selectKeys: [],
        selectedData: []
      })
      MKEmitter.emit('resetSelectLine', config.uuid, '', '')
      if (config.setting.$hasSyncModule) {
        MKEmitter.emit('syncBalconyData', config.uuid, [], false)
      }
      return
    }
    this.setState({
      activeKey: 0,
@@ -364,9 +376,19 @@
        total: 0,
        loading: false
      })
      if (selected !== 'false') {
        setTimeout(() => {
          this.checkTopLine()
        }, 200)
        if (selected === 'init') {
          this.setState({selected: 'false'})
        }
      } else {
      MKEmitter.emit('resetSelectLine', config.uuid, '', '')
      if (config.setting.$hasSyncModule) {
        MKEmitter.emit('syncBalconyData', config.uuid, [], false)
        }
      }
      return
    }
@@ -409,10 +431,10 @@
        }
      } else {
        MKEmitter.emit('resetSelectLine', config.uuid, '', '')
      }
      if (config.setting.$hasSyncModule) {
        MKEmitter.emit('syncBalconyData', config.uuid, [], false)
      }
      }
      this.setState({
        activeKey: '',