king
2020-02-27 822bc67061448c6e3a1eb77d39be4ad2b84b416a
src/tabviews/formtab/index.jsx
@@ -9,6 +9,7 @@
import zhCN from '@/locales/zh-CN/main.js'
import enUS from '@/locales/en-US/main.js'
import Utils from '@/utils/utils.js'
import options from '@/store/options.js'
import FormGroup from './formgroup'
import FormAction from './actionList'
@@ -21,6 +22,7 @@
class NormalTable extends Component {
  static propTpyes = {
    menuType: PropTypes.any,        // 菜单类型,普通菜单或HS
    // MenuNo: PropTypes.string,    // 菜单参数
    // MenuName: PropTypes.string,  // 菜单参数
    MenuID: PropTypes.string,       // 菜单Id
@@ -106,7 +108,9 @@
      // }
      // 权限过滤
      config.action = config.action.filter(item => permAction[item.uuid])
      if (this.props.menuType !== 'HS') {
        config.action = config.action.filter(item => permAction[item.uuid])
      }
      // config.tabgroups.forEach(group => {
      //   if (!config[group]) return
      //   config[group] = config[group].filter(tab => permAction[tab.uuid])
@@ -363,10 +367,18 @@
    if (setting.interType === 'inner') {
      param.func = setting.innerFunc
    } else {
      if (setting.sysInterface === 'true') {
        param.rduri = window.GLOB.mainSystemApi || window.GLOB.subSystemApi
      if (this.props.menuType === 'HS') {
        if (setting.sysInterface === 'true' && options.cloudServiceApi) {
          param.rduri = options.cloudServiceApi
        } else if (setting.sysInterface !== 'true') {
          param.rduri = setting.interface
        }
      } else {
        param.rduri = setting.interface
        if (setting.sysInterface === 'true') {
          param.rduri = window.GLOB.mainSystemApi || window.GLOB.subSystemApi
        } else {
          param.rduri = setting.interface
        }
      }
      param.appkey = window.GLOB.appkey || '' // 调用外部接口增加appkey
@@ -551,6 +563,7 @@
        }
        {hasform ?
          <FormAction
            menuType={this.props.menuType}
            logcolumns={[]}
            setting={setting}
            actions={actions}
@@ -578,6 +591,7 @@
                      {_tab.type === 'SubTable' ?
                        <SubTable
                          Tab={_tab}
                          menuType={this.props.menuType}
                          MenuID={_tab.linkTab}
                          SupMenuID={this.props.MenuID}
                          refreshtabs={this.state.refreshtabs}