king
2020-09-14 76427d51a079a5fd1f45bf7188249e7a4647ae05
src/menu/actioncomponent/index.jsx
@@ -28,7 +28,6 @@
    type: PropTypes.string,          // 菜单类型,主表或子表
    menu: PropTypes.object,          // 菜单信息(菜单id,菜单参数,菜单名称)
    config: PropTypes.object,        // 菜单配置信息
    usefulFields: PropTypes.array,   // 自定义函数可用字段
    tabs: PropTypes.array,           // 所有标签
    setSubConfig: PropTypes.func,    // 设置子配置信息
    updateaction: PropTypes.func     // 菜单配置更新
@@ -84,8 +83,7 @@
   * @description 按钮编辑,获取按钮表单信息
   */
  handleAction = (card) => {
    const { menu } = this.props
    const { config } = this.props
    const { menu, config } = this.props
    let ableField = menu.permFuncField ? menu.permFuncField.join(', ') : ''
    let functip = <div>
@@ -103,6 +101,23 @@
        }
      })
    }
    // let modules = []
    // menu.components.forEach(item => {
    //   if (item.uuid === config.uuid) return
    //   modules.push({
    //     value: item.uuid,
    //     text: item.setting.name
    //   })
    // })
    // if (supModule && supModule !== 'empty') {
    //   if (modules.filter(item => item.value === supModule).length === 0) {
    //     supModule = ''
    //   }
    // }
    if (menu.fstMenuList && card.linkmenu && card.linkmenu.length > 0) {
      let _param = {
@@ -492,8 +507,8 @@
      }
      btnParam.LText = btnParam.LText.join(' union all ')
      btnParam.timestamp = moment().format('YYYY-MM-DD HH:mm:ss')
      btnParam.LText = Utils.formatOptions(btnParam.LText)
      btnParam.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') + '.000'
      btnParam.secretkey = Utils.encrypt(btnParam.LText, btnParam.timestamp)
      _LongParam = window.btoa(window.encodeURIComponent(JSON.stringify(_tab)))
@@ -718,10 +733,10 @@
      }
      // 创建存储过程,必须填写内部函数名
      if (!btn.innerFunc) {
      if (btn.intertype !== 'inner') {
        notification.warning({
          top: 92,
          message: '请填写内部函数!',
          message: '使用内部函数时,才可以创建存储过程!',
          duration: 5
        })
        return