king
2020-02-27 822bc67061448c6e3a1eb77d39be4ad2b84b416a
src/tabviews/formtab/actionList/index.jsx
@@ -3,6 +3,7 @@
import moment from 'moment'
import { Button, Modal, notification, message } from 'antd'
import Utils from '@/utils/utils.js'
import options from '@/store/options.js'
import Api from '@/api'
import './index.scss'
@@ -10,6 +11,7 @@
class MainAction extends Component {
  static propTpyes = {
    menuType: PropTypes.any,       // 菜单类型,普通菜单或HS
    MenuID: PropTypes.string,      // 菜单ID
    primaryId: PropTypes.string,   // 主键
    actions: PropTypes.array,      // 按钮组
@@ -182,10 +184,18 @@
        // 外部请求
        _outParam = JSON.parse(JSON.stringify(res))
  
        if (btn.sysInterface === 'true') {
          res.rduri = window.GLOB.mainSystemApi || window.GLOB.subSystemApi
        if (this.props.menuType === 'HS') {
          if (btn.sysInterface === 'true' && options.cloudServiceApi) {
            param.rduri = options.cloudServiceApi
          } else if (btn.sysInterface !== 'true') {
            param.rduri = btn.interface
          }
        } else {
          res.rduri = btn.interface
          if (btn.sysInterface === 'true') {
            param.rduri = window.GLOB.mainSystemApi || window.GLOB.subSystemApi
          } else {
            param.rduri = btn.interface
          }
        }
        if (btn.outerFunc) {