content.jsx 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 {hashHistory,Route,Router} from 'react-router';
  13. import {Layout} from 'antd';
  14. import '@/account/content.less';
  15. const { Content } = Layout;
  16. export default class ContentRouter extends React.Component {
  17. render() {
  18. return (
  19. <Content className="acc-content" id="content">
  20. <Router history={hashHistory}>
  21. <Route path="/library" component={DemandLibrary} />
  22. <Route path="/examine" component={DemandExamine} />
  23. <Route path="/index" component={AdmianIndex} />
  24. <Route path="/achievementLibrary" component={AchievementLibrary} />
  25. <Route path="/achievementExamine" component={AchievementExamine} />
  26. <Route path="/businessCategory" component={BusinessCategory} />
  27. <Route path="/businessProject" component={BusinessProject} />
  28. <Route path="/news" component={News} />
  29. <Route path="/policy" component={Policy} />
  30. <Route path="/order" component={Order} />
  31. </Router>
  32. </Content>
  33. )
  34. }
  35. }