king
2019-12-24 a859b8d276dcdc0a9a806498f4a6af845858e3a9
src/tabviews/commontable/index.jsx
@@ -44,7 +44,7 @@
    orderType: 'asc',
    search: '',
    configMap: {},
    BID: ''
    BIDs: ''
  }
  /**
@@ -146,6 +146,7 @@
        loading: true
      }, () => {
        this.improveSearch()
        console.log(this.state.tabviews)
        if (config.setting.onload !== 'false') {
          this.loadmaindata()
        }
@@ -477,6 +478,17 @@
    this.refs.mainButton.actionTrigger(btn, record)
  }
  handleTableId = (type, id) => {
    const { BIDs } = this.state
    this.setState({
      BIDs: {
        ...BIDs,
        [type]: id
      }
    })
  }
  UNSAFE_componentWillMount () {
    // 组件加载时,获取菜单数据
    this.loadconfig()
@@ -522,6 +534,7 @@
            loading={this.state.loading}
            refreshdata={this.refreshbytable}
            buttonTrigger={this.buttonTrigger}
            handleTableId={this.handleTableId}
          />
        }
        {setting && setting.onload !== 'false' && setting.tabshow !== 'vertical' && tabviews && tabviews.length > 0 && 
@@ -533,7 +546,7 @@
                  {_tab.label}
                </span>
              } key={`${index}`}>
                {_tab.type === 'SubTable' ? <SubTable SupMenuID={this.props.MenuID} MenuID={_tab.linkTab} BID={this.state.BID} /> : null}
                {_tab.type === 'SubTable' ? <SubTable SupMenuID={this.props.MenuID} MenuID={_tab.linkTab} Tab={_tab} BIDs={this.state.BIDs} /> : null}
              </TabPane>
            ))}
          </Tabs>