| | |
| | | import React, {Component} from 'react' |
| | | import {connect} from 'react-redux' |
| | | import { BackTop, Breadcrumb, Icon, notification} from 'antd' |
| | | import { BackTop, Breadcrumb, notification} from 'antd' |
| | | import { HomeOutlined, RightOutlined, RedoOutlined } from '@ant-design/icons' |
| | | import moment from 'moment' |
| | | import 'moment/locale/zh-cn' |
| | | |
| | | import asyncComponent from '@/utils/asyncLoadComponent' |
| | | import NotFount from '@/components/404' |
| | | import options from '@/store/options.js' |
| | | import mzhCN from '@/locales/zh-CN/main.js' |
| | | import menUS from '@/locales/en-US/main.js' |
| | | import MKEmitter from '@/utils/events.js' |
| | | import { initActionPermission } from '@/store/action' |
| | | import Api from '@/api' |
| | |
| | | class BreadView extends Component { |
| | | state = { |
| | | tabview: null, // 标签 |
| | | dict: sessionStorage.getItem('lang') !== 'en-US' ? mzhCN : menUS, |
| | | hasNavBar: window.GLOB.navBar === 'linkage_navigation' |
| | | } |
| | | |
| | |
| | | <section id="mk-breadview-wrap" className="mk-breadview-wrap"> |
| | | {hasNavBar && tabview ? <Breadcrumb separator=""> |
| | | <Breadcrumb.Item> |
| | | <Icon type="home" onClick={this.gotoHome} /> |
| | | <HomeOutlined onClick={this.gotoHome} /> |
| | | </Breadcrumb.Item> |
| | | {tabview.ParentNames && tabview.ParentNames[0] ? |
| | | <Breadcrumb.Item>{tabview.ParentNames[0]}</Breadcrumb.Item> : null} |
| | | {tabview.ParentNames && tabview.ParentNames[0] ? |
| | | <Breadcrumb.Separator children={<Icon type="right" />} /> : null} |
| | | <Breadcrumb.Separator children={<RightOutlined />} /> : null} |
| | | {tabview.ParentNames && tabview.ParentNames[1] ? |
| | | <Breadcrumb.Item>{tabview.ParentNames[1]}</Breadcrumb.Item> : null} |
| | | {tabview.ParentNames && tabview.ParentNames[1] ? |
| | | <Breadcrumb.Separator children={<Icon type="right" />} /> : null} |
| | | <Breadcrumb.Item><Icon type="redo" onClick={this.refreshTabview}/>{tabview.MenuName}</Breadcrumb.Item> |
| | | <Breadcrumb.Separator children={<RightOutlined />} /> : null} |
| | | <Breadcrumb.Item><RedoOutlined onClick={this.refreshTabview}/>{tabview.MenuName}</Breadcrumb.Item> |
| | | </Breadcrumb> : null} |
| | | {tabview ? this.selectcomponent(tabview) : null} |
| | | <BackTop> |