| | |
| | | import zhCN from '@/locales/zh-CN/main.js' |
| | | import enUS from '@/locales/en-US/main.js' |
| | | import Utils from '@/utils/utils.js' |
| | | import MKEmitter from '@/utils/events.js' |
| | | import TransferForm from './transferform' |
| | | import MutilForm from './mutilform' |
| | | import subtableurl from '@/assets/img/subtable.jpg' |
| | |
| | | |
| | | componentDidMount () { |
| | | this.getTabs() |
| | | MKEmitter.addListener('reloadMenuView', this.reloadMenuView) |
| | | } |
| | | |
| | | shouldComponentUpdate (nextProps, nextState) { |
| | |
| | | this.setState = () => { |
| | | return |
| | | } |
| | | MKEmitter.removeListener('reloadMenuView', this.reloadMenuView) |
| | | } |
| | | |
| | | reloadMenuView = (menuId) => { |
| | | const { MenuID } = this.props |
| | | |
| | | if (MenuID !== menuId) return |
| | | |
| | | this.setState({ |
| | | searchKey: '', |
| | | tabviews: null, |
| | | loading: true, |
| | | modaltype: '', |
| | | editTab: null, |
| | | submitloading: false, |
| | | thawVisible: false, |
| | | thawmenulist: null |
| | | }) |
| | | this.getTabs() |
| | | } |
| | | |
| | | handleTab = (tab, type) => { |