king
2020-11-26 89fb1308d92e10a27cf8f91f4dd766eb38976e12
src/menu/components/card/cardcellcomponent/index.jsx
@@ -261,28 +261,15 @@
      <p>{this.state.dict['model.tooltip.func.outface']}</p>
    </div>
    let menulist = []
    if (menu.fstMenuList) {
      let trees = fromJS(menu.fstMenuList).toJS()
      menulist = trees.map(fst => {
        fst.value = fst.MenuID
        fst.label = fst.MenuName
        fst.isLeaf = false
        fst.children = fst.children.map(snd => {
          snd.value = snd.MenuID
          snd.label = snd.MenuName
          snd.children = snd.children.map(thd => {
            thd.value = thd.MenuID
            thd.label = thd.MenuName
            thd.disabled = thd.MenuID === menu.MenuID
            return thd
          })
          return snd
        })
        return fst
      })
    let menulist = sessionStorage.getItem('fstMenuList')
    if (menulist) {
      try {
        menulist = JSON.parse(menulist)
      } catch {
        menulist = []
      }
    } else {
      menulist = []
    }
    let modules = this.getModules(menu.components, cards.uuid)