king
2020-02-03 75623dd039b742dbb44fb4c6b4af563404ed9c7f
src/tabviews/subtable/index.jsx
@@ -21,6 +21,7 @@
  static propTpyes = {
    Tab: PropTypes.object,           // 标签信息
    BID: PropTypes.string,           // 上级数据ID
    BData: PropTypes.any,            // 上级数据
    MenuID: PropTypes.string,        // 菜单Id
    SupMenuID: PropTypes.string,     // 上级菜单Id
    handleTableId: PropTypes.func,   // 控制表格数据切换时,更新在主表中的id
@@ -202,6 +203,7 @@
      if (item.resourceType === '1' && item.dataSource) {
        let _option = Utils.getSelectQueryOptions(item)
        let _sql = Utils.formatOptions(_option.sql)
        let isSSO = item.database === 'sso'
        let param = {
          func: 'sPC_Get_SelectedList',
@@ -214,7 +216,7 @@
        param.secretkey = Utils.encrypt(param.LText, param.timestamp)
        let defer = new Promise(resolve => {
          Api.getSystemCacheConfig(param).then(res => {
          Api.getSystemCacheConfig(param, isSSO).then(res => {
            res.search = item
            resolve(res)
          })
@@ -285,7 +287,7 @@
      param = this.getDefaultParam(_BID)
    }
    this.handleTableId('')
    this.handleTableId()
    let result = await Api.genericInterface(param)
    if (result.status) {
@@ -574,8 +576,8 @@
  /**
   * @description 表格Id变化
   */
  handleTableId = (id = '') => {
    this.props.handleTableId(this.props.Tab.uuid, id)
  handleTableId = (id = '', data = '') => {
    this.props.handleTableId(this.props.Tab.uuid, id, data)
  }
  /**
@@ -635,6 +637,7 @@
            actions={actions}
            Tab={this.props.Tab}
            BID={this.props.BID}
            BData={this.props.BData}
            dict={this.state.dict}
            MenuID={this.props.SupMenuID}
            refreshdata={this.refreshbyaction}