From 3b177250755b25d4debedcbafc16dd1cc8ebe605 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 16 十一月 2021 11:22:54 +0800 Subject: [PATCH] 2021-11-16 --- src/tabviews/custom/index.jsx | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/tabviews/custom/index.jsx b/src/tabviews/custom/index.jsx index 4af465b..d4bc44a 100644 --- a/src/tabviews/custom/index.jsx +++ b/src/tabviews/custom/index.jsx @@ -71,7 +71,7 @@ * @description 鑾峰彇椤甸潰閰嶇疆淇℃伅 */ async loadconfig () { - const { permAction, permMenus, param } = this.props + const { permAction, param } = this.props let _param = { func: 'sPC_Get_LongParam', @@ -136,7 +136,7 @@ let roleId = sessionStorage.getItem('role_id') || '' // 瑙掕壊ID let balMap = new Map() let skip = config.permission === 'false' || this.props.menuType === 'HS' - config.components = this.filterComponent(config.components, roleId, permAction, permMenus, balMap, skip) + config.components = this.filterComponent(config.components, roleId, permAction, balMap, skip) // 鑾峰彇涓绘悳绱㈡潯浠� let mainSearch = [] @@ -449,7 +449,7 @@ }) } - filterComponent = (components, roleId, permAction, permMenus, balMap, skip) => { + filterComponent = (components, roleId, permAction, balMap, skip) => { return components.filter(item => { if (item.style && item.style.boxShadow) { @@ -480,7 +480,7 @@ }) item.subtabs = item.subtabs.map(tab => { - tab.components = this.filterComponent(tab.components, roleId, permAction, permMenus, balMap, skip) + tab.components = this.filterComponent(tab.components, roleId, permAction, balMap, skip) return tab }) @@ -503,7 +503,7 @@ return false } - item.components = this.filterComponent(item.components, roleId, permAction, permMenus, balMap, skip) + item.components = this.filterComponent(item.components, roleId, permAction, balMap, skip) } else if (['pie', 'bar', 'line', 'dashboard', 'scatter', 'chart'].includes(item.type)) { if ( item.plot.blacklist && item.plot.blacklist.length > 0 && @@ -556,7 +556,7 @@ if (col.linkmenu && col.linkmenu.length > 0) { let menu_id = col.linkmenu.pop() - col.linkThdMenu = permMenus.filter(m => m.MenuID === menu_id)[0] || '' + col.linkThdMenu = this.props.permMenus.filter(m => m.MenuID === menu_id)[0] || '' } else { col.linkThdMenu = '' } -- Gitblit v1.8.0