king
2023-12-12 49f09cc6f8ff8c30a75ed1a9d6f510b69b73962a
src/components/tabview/index.jsx
@@ -1,6 +1,4 @@
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import {connect} from 'react-redux'
import { fromJS } from 'immutable'
import {Tabs, BackTop, notification} from 'antd'
import { RedoOutlined, CloseOutlined } from '@ant-design/icons'
@@ -9,7 +7,6 @@
import asyncComponent from '@/utils/asyncLoadComponent'
import NotFount from '@/components/404'
import options from '@/store/options.js'
import MKEmitter from '@/utils/events.js'
import Api from '@/api'
import './index.scss'
@@ -25,10 +22,6 @@
moment.locale('zh-cn')
class TabViews extends Component {
  static propTpyes = {
    collapse: PropTypes.bool
  }
  state = {
    activeId: '',
    tabviews: [],
@@ -104,7 +97,7 @@
    e.stopPropagation()
    window.GLOB.CacheMap = new Map()
    if (options.sysType === 'local' && window.GLOB.systemType !== 'production') {
    if (window.GLOB.sysType === 'local' && window.GLOB.systemType !== 'production') {
      let roledefer = new Promise(resolve => {
        Api.getSystemConfig({
          func: 's_Get_TrdMenu_Role',
@@ -246,7 +239,7 @@
    const { tabviews, activeId } = this.state
    return (
      <section id="mk-tabgroup-wrap" className={'mk-tabview-wrap' + (this.props.collapse ? ' collapsed' : '')}>
      <section id="mk-tabgroup-wrap" className="mk-tabview-wrap">
        <div className="content-header">
          {tabviews.length > 0 &&
            <Tabs activeKey={activeId}>
@@ -285,14 +278,4 @@
  }
}
const mapStateToProps = (state) => {
  return {
    collapse: state.collapse,
  }
}
const mapDispatchToProps = (dispatch) => {
  return {}
}
export default connect(mapStateToProps, mapDispatchToProps)(TabViews)
export default TabViews