king
2023-03-24 deab3ddf1990cd25b4692d1358ac9d50856644f0
src/tabviews/custom/components/table/normal-table/index.jsx
@@ -256,8 +256,7 @@
        start = pageSize * (pageIndex - 1) + 1
      }
      this.setState({
        data: result.data.map((item, index) => {
      let data = result.data.map((item, index) => {
          item.key = index
          item.$$uuid = item[setting.primaryKey] || ''
          item.$$key = '' + item.key + item.$$uuid
@@ -280,11 +279,21 @@
          }
          
          return item
        }),
      })
      this.setState({
        data: data,
        selectedData: [],
        total: result.total,
        loading: false
      })
      if (config.timer && config.clearField && result.data && result.data[0]) {
        let vals = (config.clearValue || '').split(',')
        if (vals.includes(result.data[0][config.clearField])) {
          this.timer && this.timer.stop()
        }
      }
    } else {
      this.setState({
        loading: false