route.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. starter.config(function ($stateProvider, $translateProvider) {
  2. $stateProvider.state('account-manage', {
  3. url: '/index',
  4. templateUrl: 'templates/account-manage.html',
  5. controller: 'AccountManageCtrl'
  6. })
  7. .state('managecomp', {
  8. url: '/managecomp',
  9. templateUrl: 'templates/managecomp.html',
  10. controller: 'ManageCompCtrl'
  11. })
  12. .state('compinfo', {
  13. url: '/compinfo/:compid/:op',
  14. templateUrl: 'templates/compinfo.html',
  15. controller: 'CompInfoCtrl'
  16. })
  17. .state('joincomp', {
  18. url: '/joincomp',
  19. templateUrl: 'templates/joincomp.html',
  20. controller: 'JoinCompCtrl'
  21. })
  22. .state('applycheck', {
  23. url: '/applycheck',
  24. templateUrl: 'templates/applycheck.html',
  25. controller: 'ApplyCheckCtrl'
  26. })
  27. .state('contacts-companylst', {
  28. url: '/contacts-companylst',
  29. templateUrl: 'templates/contacts-companylst.html',
  30. controller: 'ContactsCompanylstCtrl'
  31. })
  32. .state('deptlst', {
  33. url: '/contacts/:id&:name&:compid',
  34. templateUrl: 'templates/contacts-deptlst.html',
  35. controller: 'DeptCtrl'
  36. })
  37. .state('editDep', {
  38. url: '/editDep/:id&:name&:compid',
  39. templateUrl: 'templates/editDep.html',
  40. controller: 'EditDepCtrl'
  41. })
  42. .state('personinfo', {
  43. url: '/personinfo',
  44. templateUrl: 'templates/personinfo.html',
  45. controller: 'PersonInfoCtrl'
  46. })
  47. .state('editdeptdegree', {
  48. url: '/editdeptdegree',
  49. templateUrl: 'templates/edit_deptdegree.html',
  50. controller: 'EditDeptDegreeCtrl'
  51. })
  52. });