king
2020-11-16 3ca91a731665962918a026f521c556f4745ebf35
src/tabviews/zshare/normalTable/index.jsx
@@ -45,7 +45,7 @@
    refreshdata: PropTypes.func,     // 表格中排序列、页码的变化时刷新
    handleTableId: PropTypes.func,   // 数据切换
    chgSelectData: PropTypes.func,   // 数据切换
    refreshbyaction: PropTypes.func, // 数据切换
    refreshbyaction: PropTypes.func, // 按钮执行完成后刷新
  }
  state = {
@@ -200,6 +200,12 @@
      return
    }
    MKEmitter.removeListener('resetTable', this.resetTable)
  }
  updateStatus = (type, positon, btn) => {
    if (type === 'refresh') {
      this.props.refreshbyaction(positon, btn)
    }
  }
  // 字段透视
@@ -604,7 +610,7 @@
                  MenuName={this.props.MenuName}
                  columns={this.props.logcolumns}
                  ContainerId={this.props.ContainerId}
                  updateStatus={this.props.refreshbyaction}
                  updateStatus={this.updateStatus}
                />
              )
            } else if (btn.OpenType === 'popview') {
@@ -616,7 +622,7 @@
                  selectedData={[record]}
                  BData={this.props.BData}
                  setting={this.props.setting}
                  updateStatus={this.props.refreshbyaction}
                  updateStatus={this.updateStatus}
                />
              )
            } else if (btn.OpenType === 'tab' || btn.OpenType === 'blank') {
@@ -627,7 +633,7 @@
                  selectedData={[record]}
                  MenuID={this.props.MenuID}
                  setting={this.props.setting}
                  updateStatus={this.props.refreshbyaction}
                  updateStatus={this.updateStatus}
                />
              )
            } else if (btn.OpenType === 'innerpage' || btn.OpenType === 'outerpage') {
@@ -637,7 +643,7 @@
                  btn={btn}
                  selectedData={[record]}
                  setting={this.props.setting}
                  updateStatus={this.props.refreshbyaction}
                  updateStatus={this.updateStatus}
                />
              )
            }
@@ -988,17 +994,24 @@
    this.props.handleTableId(this.props.tableId, _id, _data)
  }
  resetTable = (id) => {
  resetTable = (id, repage) => {
    const { MenuID, tableId } = this.props
    if (id !== (MenuID + tableId)) return
    if (repage === 'false') {
      this.setState({
        selectedRowKeys: [],
        activeIndex: null
      })
    } else {
    this.setState({
      pageIndex: 1,
      selectedRowKeys: [],
      activeIndex: null
    })
  }
  }
  render() {
    const { setting, pickup, statFValue } = this.props