king
2020-01-19 b35e3f0bacdbadf5823e06fe8dc6e047089aae38
src/components/sidemenu/editthdmenu/index.jsx
@@ -449,6 +449,9 @@
  }
  handleSubConfig = (item, originMenu, config, type) => {
    this.setState({
      tabview: ''
    }, () => {
    if (type === 'button') { // 三级菜单页面,按钮配置
      if (item.OpenType === 'pop') {
        let pageParam = ''
@@ -474,17 +477,36 @@
        })
      }
    } else if (type === 'tabButton') { // 三级菜单下,标签下,按钮配置
        console.log(item)
      let pageParam = ''
        if (item.OpenType === 'popview') {
          if (config && config.Template === 'SubTable') {
            pageParam = config
          } else {
            pageParam = {
              ...item,
              uuid: item.linkTab,
              create: true
            }
          }
          this.setState({
            editMenu: originMenu,
            editTab: pageParam,
            editAction: item,
            tabview: 'SubTable'
          })
        } else {
      if (config && config.type === 'Modal') {
        pageParam = config
      }
      this.setState({
        editTab: originMenu,
        editAction: item,
        btnParam: pageParam,
        tabview: 'Modal'
      })
        }
    } else if (type === 'tabview') { // 三级菜单下,打开新标签页或当前页跳转,类型的按钮配置
      let pageParam = ''
      if (config && config.type === 'FormTab') {
@@ -498,6 +520,7 @@
        tabview: 'FormTab'
      })
    }
    })
  }
  UNSAFE_componentWillMount () {