From 4b18ab4bf4eff4383bd85beb76564dc6aeb1df86 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 26 一月 2021 19:11:26 +0800 Subject: [PATCH] 2021-01-26 --- src/menu/components/chart/antv-pie/chartcompile/formconfig.jsx | 18 +++++++++++++----- 1 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/menu/components/chart/antv-pie/chartcompile/formconfig.jsx b/src/menu/components/chart/antv-pie/chartcompile/formconfig.jsx index c9d6fc6..7a79ef7 100644 --- a/src/menu/components/chart/antv-pie/chartcompile/formconfig.jsx +++ b/src/menu/components/chart/antv-pie/chartcompile/formconfig.jsx @@ -6,9 +6,19 @@ /** * @description 鑾峰彇鍥捐〃瑙嗗浘閰嶇疆琛ㄥ崟 * @param {object} card // 鍥捐〃瀵硅薄 - * @param {Array} columns // 鏄剧ず鍒� */ -export function getBaseForm (card, MenuType, fstMenuList = []) { +export function getBaseForm (card) { + let menulist = sessionStorage.getItem('fstMenuList') + if (menulist) { + try { + menulist = JSON.parse(menulist) + } catch { + menulist = [] + } + } else { + menulist = [] + } + let roleList = sessionStorage.getItem('sysRoles') if (roleList) { try { @@ -64,7 +74,6 @@ initVal: card.blacklist || [], multi: true, required: false, - forbid: MenuType === 'billPrint', options: roleList }, { @@ -74,8 +83,7 @@ initVal: card.linkmenu || [], tooltip: '鍙屽嚮楗煎浘锛屼細鎵撳紑鍏宠仈鐨勮彍鍗曘��', required: false, - forbid: MenuType === 'billPrint', - options: fstMenuList + options: menulist } ] } -- Gitblit v1.8.0