content.jsx 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //管理员登录区域代码
  2. import DemandLibrary from '@/administration/demand/techDemand';
  3. import DemandExamine from '@/administration/demand/demandExamine';
  4. import AdmianIndex from '@/administration/index/index';
  5. import AchievementExamine from '@/administration/achievement/achievementExamine';
  6. import AchievementLibrary from '@/administration/achievement/techAchievement';
  7. import BusinessCategory from '@/administration/business/businessCategory';
  8. import BusinessProject from '@/administration/business/businessProject';
  9. import News from '@/administration/news/newsList';
  10. import Policy from '@/administration/policy/policyList';
  11. import Order from '@/administration/order/order';
  12. import SystemMessage from '@/administration/messagePush/systemMessage'
  13. import {hashHistory,Route,Router} from 'react-router';
  14. import {Layout} from 'antd';
  15. import '@/account/content.less';
  16. const { Content } = Layout;
  17. export default class ContentRouter extends React.Component {
  18. render() {
  19. return (
  20. <Content className="acc-content" id="content">
  21. <Router history={hashHistory}>
  22. <Route path="/library" component={DemandLibrary} />
  23. <Route path="/examine" component={DemandExamine} />
  24. <Route path="/index" component={AdmianIndex} />
  25. <Route path="/achievementLibrary" component={AchievementLibrary} />
  26. <Route path="/achievementExamine" component={AchievementExamine} />
  27. <Route path="/businessCategory" component={BusinessCategory} />
  28. <Route path="/businessProject" component={BusinessProject} />
  29. <Route path="/news" component={News} />
  30. <Route path="/policy" component={Policy} />
  31. <Route path="/order" component={Order} />
  32. <Route path="/systemMessage" component={SystemMessage} />
  33. </Router>
  34. </Content>
  35. )
  36. }
  37. }