From e41a64966b7832baffe96c21d1ea77ef6adb2905 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 14 十月 2021 18:31:55 +0800 Subject: [PATCH] 2021-10-14 --- src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx | 33 +++------------------------------ 1 files changed, 3 insertions(+), 30 deletions(-) diff --git a/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx b/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx index f6a8420..f3b35e2 100644 --- a/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx +++ b/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx @@ -8,35 +8,7 @@ * @param {object} card // 鍥捐〃瀵硅薄 */ export function getBaseForm (card) { - // let appType = sessionStorage.getItem('appType') - // let menulist = null - - // if (appType === 'pc') { - // menulist = sessionStorage.getItem('appMenus') - // if (Array.isArray(card.linkmenu)) { - // card.linkmenu = '' - // } - // } else { - // menulist = sessionStorage.getItem('fstMenuList') - // } - - // if (menulist) { - // try { - // menulist = JSON.parse(menulist) - // if (appType === 'pc') { - // menulist = menulist.map(item => { - // item.value = item.MenuID - // item.text = item.MenuName - // return item - // }) - // } - // } catch (e) { - // menulist = [] - // } - // } else { - // menulist = [] - // } - + let appType = sessionStorage.getItem('appType') let roleList = sessionStorage.getItem('sysRoles') if (roleList) { try { @@ -92,7 +64,8 @@ initVal: card.blacklist || [], multi: true, required: false, - options: roleList + options: roleList, + forbid: !!appType }, // { // type: 'cascader', -- Gitblit v1.8.0