From 89fb1308d92e10a27cf8f91f4dd766eb38976e12 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 26 十一月 2020 21:56:42 +0800
Subject: [PATCH] 2020-11-26

---
 src/menu/components/card/cardcellcomponent/index.jsx |   31 +++++++++----------------------
 1 files changed, 9 insertions(+), 22 deletions(-)

diff --git a/src/menu/components/card/cardcellcomponent/index.jsx b/src/menu/components/card/cardcellcomponent/index.jsx
index 8faa4f7..9d8b224 100644
--- a/src/menu/components/card/cardcellcomponent/index.jsx
+++ b/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)

--
Gitblit v1.8.0