king
2019-12-03 343e35d61733028e884bc60963183983154ca093
src/components/sidemenu/editthdmenu/index.jsx
@@ -43,6 +43,7 @@
    tabview: '', // 选择模板窗口(template)、基础表格配置(CommonTable)
    formlist: null,
    editMenu: null, // 编辑菜单
    editAction: null, // 编辑按钮
    thawMvisible: false, // 解除冻结模态框
    confirmLoading: false, // 提交中。。。
    dict: (!localStorage.getItem('lang') || localStorage.getItem('lang') === 'zh-CN') ? zhCN : enUS,
@@ -337,10 +338,12 @@
            _config = window.decodeURIComponent(window.atob(temp.LongParam))
            try {
              _config = JSON.parse(_config)
              _config.type = 'user'
            } catch (e) {
              _config = ''
            }
          }
          return {
            title: temp.MenuName,
            type: temp.Template,
@@ -363,10 +366,11 @@
  handleSubConfig = (item, originMenu, config) => {
    if (item.OpenType === 'pop') {
      // this.setState({
      //   editMenu: originMenu,
      //   tabview: 'Modal'
      // })
      this.setState({
        editMenu: originMenu,
        editAction: item,
        tabview: 'Modal'
      })
    }
    console.log(item)
    console.log(originMenu)
@@ -474,8 +478,7 @@
        {this.state.tabview === 'Modal' &&
          <ModalConfig
            menu={this.state.editMenu}
            supMenu={this.props.supMenu}
            supMenuList={this.props.supMenuList}
            editAction={this.state.editAction}
            handleConfig={this.handleConfig}
          />
        }