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-bar/chartcompile/formconfig.jsx | 26 ++++++++++++++++++++++---- 1 files changed, 22 insertions(+), 4 deletions(-) diff --git a/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx b/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx index 71194ee..3a2ded3 100644 --- a/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx +++ b/src/menu/components/chart/antv-bar/chartcompile/formconfig.jsx @@ -6,9 +6,19 @@ /** * @description 鑾峰彇鍥捐〃瑙嗗浘閰嶇疆琛ㄥ崟 * @param {object} card // 鍥捐〃瀵硅薄 - * @param {Array} columns // 鏄剧ず鍒� */ -export function getBaseForm (card, MenuType) { +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,8 +74,16 @@ initVal: card.blacklist || [], multi: true, required: false, - forbid: MenuType === 'billPrint', options: roleList + }, + { + type: 'cascader', + key: 'linkmenu', + label: '鍏宠仈鑿滃崟', + initVal: card.linkmenu || [], + tooltip: '鍦ㄤ娇鐢ㄦ煴褰㈠浘涓旀湭鍚敤鑷畾涔夎缃椂鏈夋晥銆�', + required: false, + options: menulist } ] } @@ -75,7 +93,7 @@ * @param {object} card // 鍥捐〃瀵硅薄 * @param {Array} columns // 鏄剧ず鍒� */ -export function getOptionForm (card, columns, MenuType) { +export function getOptionForm (card, columns) { let shapes = [] if (card.chartType === 'line') { -- Gitblit v1.8.0