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/calendar/index.jsx | 19 ++++--------------- 1 files changed, 4 insertions(+), 15 deletions(-) diff --git a/src/tabviews/calendar/index.jsx b/src/tabviews/calendar/index.jsx index c7485e1..cd7b465 100644 --- a/src/tabviews/calendar/index.jsx +++ b/src/tabviews/calendar/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, Modal, Button } from 'antd' import moment from 'moment' @@ -22,7 +21,7 @@ const SubTabTable = asyncSpinComponent(() => import('@/tabviews/subtabtable')) const PagemsgComponent = asyncComponent(() => import('@/tabviews/zshare/pageMessage')) -class NormalTable extends Component { +class MkCalendar extends Component { static propTpyes = { param: PropTypes.any, // 鍏朵粬椤甸潰浼犻�掔殑鍙傛暟 MenuID: PropTypes.string, // 鑿滃崟Id @@ -55,7 +54,7 @@ * @description 鑾峰彇椤甸潰閰嶇疆淇℃伅 */ async loadconfig () { - const { permAction, param } = this.props + const { param } = this.props let _param = { func: 'sPC_Get_LongParam', @@ -107,7 +106,7 @@ // 鏉冮檺杩囨护 if (!window.GLOB.mkHS) { - if (config.tab && !permAction[config.tab.linkTab]) { + if (config.tab && !window.GLOB.mkActions[config.tab.linkTab]) { config.tab = null } } @@ -574,14 +573,4 @@ } } -const mapStateToProps = (state) => { - return { - permAction: state.permAction - } -} - -const mapDispatchToProps = () => { - return {} -} - -export default connect(mapStateToProps, mapDispatchToProps)(NormalTable) \ No newline at end of file +export default MkCalendar \ No newline at end of file -- Gitblit v1.8.0