import React from 'react'; import { Menu, Icon } from 'antd'; import '../leftTab.less'; const SubMenu = Menu.SubMenu; const MenuItemGroup = Menu.ItemGroup; const LeftTab = React.createClass({ getInitialState() { return { current: 'patent', subKey: 'sub1', keyList: [ { key: 'sub1', value: ['patent', 'copyright', 'intellectual'] }, { key: 'sub2', value: ['standard', 'activity', 'activityCostList', 'orgTechCenter', 'techProduct', 'ratepay', 'finance', 'achievement', 'honorList','annualReport','cognizance'] }, { key: 'sub3', value: ['technology'] } ] }; }, handleClick(e) { this.props.handlekey(e.key); this.setState({ current: e.key, }); }, componentWillMount() { const _me = this; if (window.location.hash) { let theKey = window.location.hash.substr(1); this.state.keyList.map(function (item1) { item1.value.map(function (item2) { if (theKey == item2) { _me.state.subKey = item1.key } }); }); this.state.current = theKey; }; }, render() { return ( 知识产权申请}> 专利申请 软著申请 知识产权管理 高企认定}> 高企申请管理 标准制定情况 企业研究开发活动 企业研发费用详情 技术中心 高新技术产品(服务)情况 纳税申报信息 财务报表信息 科技成果转化 企业荣誉及其他证明材料 企业年报 科技项目申报}> 申报管理 ); } }); export default LeftTab;