content.jsx 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 Video from '@/administration/video/videoList';
  24. import Product from '@/administration/product/proList';
  25. import {hashHistory,Route,Router} from 'react-router';
  26. import {Layout} from 'antd';
  27. import '@/account/content.less';
  28. const { Content } = Layout;
  29. export default class ContentRouter extends React.Component {
  30. render() {
  31. return (
  32. <Content className="acc-content" id="content">
  33. <Router history={hashHistory}>
  34. <Route path="/library" component={DemandLibrary} />
  35. <Route path="/examine" component={DemandExamine} />
  36. <Route path="/tags" component={Tags} />
  37. <Route path="/index" component={AdmianIndex} />
  38. <Route path="/achievementLibrary" component={AchievementLibrary} />
  39. <Route path="/achievementExamine" component={AchievementExamine} />
  40. <Route path="/businessCategory" component={BusinessCategory} />
  41. <Route path="/businessLibrary" component={BusinessLibrary} />
  42. <Route path="/businessProject" component={BusinessProject} />
  43. <Route path="/userLibrary" component={UserLibrary} />
  44. <Route path="/authLibrary" component={AuthLibrary} />
  45. <Route path="/authExamine" component={AuthExamine} />
  46. <Route path="/news" component={News} />
  47. <Route path="/policy" component={Policy} />
  48. <Route path="/order" component={Order} />
  49. <Route path="/systemMessage" component={SystemMessage} />
  50. <Route path="/systemMessageOut" component={SystemMessageOut} />
  51. <Route path="/systemMessagePhoto" component={SystemMessagePhoto} />
  52. <Route path="/banner" component={Banner} />
  53. <Route path="/vouchers" component={Vouchers} />
  54. <Route path="/coupon" component={Coupon} />
  55. <Route path="/video" component={Video} />
  56. <Route path="/product" component={Product} />
  57. </Router>
  58. </Content>
  59. )
  60. }
  61. }