king
2020-04-14 5e10a7ee4a5ef882d6b0d92b19b1a888ffcc6f7f
src/tabviews/managetable/index.jsx
@@ -19,6 +19,7 @@
import NotFount from '@/components/404'
import './index.scss'
const SecretKeyTable = asyncLoadComponent(() => import('./secretKeyTable'))
const SubTable = asyncLoadComponent(() => import('@/tabviews/subtable'))
const MainAction = asyncComponent(() => import('@/tabviews/zshare/actionList'))
const SubTabTable = asyncComponent(() => import('@/tabviews/subtabtable'))
@@ -72,8 +73,6 @@
   * @description 获取页面配置信息
   */
  async loadconfig () {
    // const { permAction } = this.props
    let param = {
      func: 'sPC_Get_LongParam',
      MenuID: this.props.MenuID
@@ -159,6 +158,18 @@
          operations: _operations
        })
      }
      let custabs = ['1586577325055l2ng7t75g7i4ek2ng8o']
      config.tabgroups.forEach(group => {
        if (!config[group]) return
        config[group] = config[group].map(tab => {
          if (custabs.includes(tab.linkTab)) {
            tab.type = 'SecretKeyTable'
          }
          return tab
        })
      })
      this.setState({
        loadingview: false,
@@ -908,6 +919,19 @@
                            handleTableId={this.handleTableId}
                            handleMainTable={(type) => this.handleMainTable(type, _tab)}
                          /> : null}
                        {_tab.type === 'SecretKeyTable' ?
                          <SecretKeyTable
                            menuType="HS"
                            Tab={_tab}
                            MenuID={_tab.linkTab}
                            SupMenuID={this.props.MenuID}
                            refreshtabs={this.state.refreshtabs}
                            ContainerId={this.state.ContainerId}
                            BID={this.state.BIDs[_tab.supMenu] || ''}
                            BData={this.state.BIDs[_tab.supMenu + 'data'] || ''}
                            handleTableId={this.handleTableId}
                            handleMainTable={(type) => this.handleMainTable(type, _tab)}
                          /> : null}
                      </TabPane>
                    )
                  })}