From 5706228a119361a22618f4565bb21c274584a6a3 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 18 四月 2022 09:48:23 +0800 Subject: [PATCH] 2022-04-18 --- src/views/pcdesign/index.jsx | 50 +++++++++++++++++++++++++++----------------------- 1 files changed, 27 insertions(+), 23 deletions(-) diff --git a/src/views/pcdesign/index.jsx b/src/views/pcdesign/index.jsx index 9628aa8..0e2fecd 100644 --- a/src/views/pcdesign/index.jsx +++ b/src/views/pcdesign/index.jsx @@ -248,7 +248,7 @@ let homeId = MenuID || '' let appViewList = [] - if (!homeId && res.data && res.data.length > 0) { + if (res.data && res.data.length > 0) { appViewList = res.data appViewList.forEach(item => { if (item.keys_type === 'index') { @@ -1144,30 +1144,34 @@ title: item.name, children: [] } - - roles.children = item.menus.map(fst => { - if (fst.property === 'classify' && fst.sublist.length > 0) { - return { - key: fst.MenuID, - title: fst.name, - children: fst.sublist.map(scd => { - if (scd.property === 'classify' && scd.sublist.length > 0) { - return { - key: scd.MenuID, - title: scd.name, - children: scd.sublist.map(thd => { - return { key: thd.MenuID, title: thd.name } - }) + + if (item.wrap.permission === 'true') { + roles.children = item.menus.map(fst => { + if (fst.property === 'classify' && fst.sublist.length > 0) { + return { + key: fst.MenuID, + title: fst.name, + children: fst.sublist.map(scd => { + if (scd.property === 'classify' && scd.sublist.length > 0) { + return { + key: scd.MenuID, + title: scd.name, + children: scd.sublist.map(thd => { + return { key: thd.MenuID, title: thd.name } + }) + } + } else { + return { key: scd.MenuID, title: scd.name } } - } else { - return { key: scd.MenuID, title: scd.name } - } - }) + }) + } + } else { + return { key: fst.MenuID, title: fst.name } } - } else { - return { key: fst.MenuID, title: fst.name } - } - }) + }) + } else { + roles.pass = true + } let _param = { func: 'sPC_TrdMenu_AddUpt', -- Gitblit v1.8.0