content.jsx 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 BusinessLibrary from '@/administration/business/businessLibrary';
  9. import BusinessProject from '@/administration/business/businessProject';
  10. import UserLibrary from '@/administration/business/userLibrary';
  11. import News from '@/administration/news/newsList';
  12. import Policy from '@/administration/policy/policyList';
  13. import Order from '@/administration/order/order';
  14. import SystemMessage from '@/administration/messagePush/messageIn/systemMessage';
  15. import SystemMessageOut from '@/administration/messagePush/messageOut/systemMessage';
  16. import SystemMessagePhoto from '@/administration/messagePush/messagePhoto/systemMessage';
  17. import Tags from '@/administration/tags/tags';
  18. import AuthLibrary from '@/administration/authentication/techAuth';
  19. import AuthExamine from '@/administration/authentication/authExamine';
  20. import Banner from '@/administration/banner/banner';
  21. import Vouchers from '@/administration/ticket/vouchers';
  22. import Coupon from '@/administration/ticket/coupon';
  23. import {hashHistory,Route,Router} from 'react-router';
  24. import {Layout} from 'antd';
  25. import '@/account/content.less';
  26. const { Content } = Layout;
  27. export default class ContentRouter extends React.Component {
  28. render() {
  29. return (
  30. <Content className="acc-content" id="content">
  31. <Router history={hashHistory}>
  32. <Route path="/library" component={DemandLibrary} />
  33. <Route path="/examine" component={DemandExamine} />
  34. <Route path="/tags" component={Tags} />
  35. <Route path="/index" component={AdmianIndex} />
  36. <Route path="/achievementLibrary" component={AchievementLibrary} />
  37. <Route path="/achievementExamine" component={AchievementExamine} />
  38. <Route path="/businessCategory" component={BusinessCategory} />
  39. <Route path="/businessLibrary" component={BusinessLibrary} />
  40. <Route path="/businessProject" component={BusinessProject} />
  41. <Route path="/userLibrary" component={UserLibrary} />
  42. <Route path="/authLibrary" component={AuthLibrary} />
  43. <Route path="/authExamine" component={AuthExamine} />
  44. <Route path="/news" component={News} />
  45. <Route path="/policy" component={Policy} />
  46. <Route path="/order" component={Order} />
  47. <Route path="/systemMessage" component={SystemMessage} />
  48. <Route path="/systemMessageOut" component={SystemMessageOut} />
  49. <Route path="/systemMessagePhoto" component={SystemMessagePhoto} />
  50. <Route path="/banner" component={Banner} />
  51. <Route path="/vouchers" component={Vouchers} />
  52. <Route path="/coupon" component={Coupon} />
  53. </Router>
  54. </Content>
  55. )
  56. }
  57. }