content.jsx 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. import React from 'react';
  2. import '../content.less';
  3. import LeftTab from './leftTab.jsx';
  4. const Content = React.createClass({
  5. getInitialState() {
  6. return {
  7. loading: false,
  8. leftKey: 'base',
  9. userType: '0'
  10. };
  11. },
  12. handlekey(key) {
  13. this.setState({
  14. leftKey: key,
  15. });
  16. },
  17. componentWillMount() {
  18. },
  19. render() {
  20. return (
  21. <div className="acc-content">
  22. <LeftTab handlekey={this.handlekey} />;
  23. <div className="content-right">
  24. {(() => {
  25. switch (this.state.leftKey) {
  26. case 'base':
  27. return <div>专利综合管理</div>;
  28. case 'person':
  29. return <div>待缴费专利管理</div>;
  30. case 'edu':
  31. return <div>补正审查通知管理</div>;
  32. case 'pfs':
  33. return <div>专利纸件收发登记</div>;
  34. case 'ablt':
  35. return <div>专利申请费用管理</div>;
  36. };
  37. })()}
  38. </div>
  39. </div>
  40. )
  41. }
  42. });
  43. export default Content;