From 9c6795fd3c44e46cf3955fbfd8f8eeca23acb7a9 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期六, 08 十月 2022 00:31:51 +0800 Subject: [PATCH] 2022-10-08 --- src/tabviews/subtable/index.jsx | 20 ++++---------------- 1 files changed, 4 insertions(+), 16 deletions(-) diff --git a/src/tabviews/subtable/index.jsx b/src/tabviews/subtable/index.jsx index bc460d3..7725c16 100644 --- a/src/tabviews/subtable/index.jsx +++ b/src/tabviews/subtable/index.jsx @@ -1,6 +1,5 @@ import React, {Component} from 'react' import PropTypes from 'prop-types' -import {connect} from 'react-redux' import { is, fromJS } from 'immutable' import { notification, Spin, Switch, Row, Col, Tabs} from 'antd' @@ -84,7 +83,7 @@ * @description 鑾峰彇椤甸潰閰嶇疆淇℃伅 */ async loadconfig () { - const { permAction, permMenus, Tab } = this.props + const { Tab } = this.props let param = { func: 'sPC_Get_LongParam', @@ -134,7 +133,7 @@ // 鏉冮檺杩囨护 if (!window.GLOB.mkHS) { - config.action = config.action.filter(item => item.hidden !== 'true' && permAction[item.uuid]) + config.action = config.action.filter(item => item.hidden !== 'true' && window.GLOB.mkActions[item.uuid]) } else { config.action = config.action.filter(item => item.hidden !== 'true') } @@ -183,7 +182,7 @@ if (col.linkmenu && col.linkmenu.length > 0) { let menu_id = col.linkmenu.slice(-1)[0] - col.linkThdMenu = permMenus.filter(m => m.MenuID === menu_id)[0] || '' + col.linkThdMenu = window.GLOB.mkThdMenus.filter(m => m.MenuID === menu_id)[0] || '' } else { col.linkThdMenu = '' } @@ -1129,15 +1128,4 @@ } } -const mapStateToProps = (state) => { - return { - permAction: state.permAction, - permMenus: state.permMenus, - } -} - -const mapDispatchToProps = () => { - return {} -} - -export default connect(mapStateToProps, mapDispatchToProps)(SubTabViewTable) \ No newline at end of file +export default SubTabViewTable \ No newline at end of file -- Gitblit v1.8.0