route.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. starter.config(function ($stateProvider) {
  2. $stateProvider.state('daily', {
  3. url: '/index',
  4. templateUrl: 'templates/daily.html',
  5. controller: 'DailyCtrl'
  6. })
  7. .state('daily-man', {
  8. url: '/daily-man',
  9. templateUrl: 'templates/daily-man.html'
  10. })
  11. .state('daily-read', {
  12. url: '/daily-read',
  13. templateUrl: 'templates/daily-read.html',
  14. controller: 'DailyReadCtrl'
  15. })
  16. .state('daily-details', {
  17. url: '/daily/:id',
  18. templateUrl: 'templates/daily-details.html',
  19. controller: 'DailyDetailsCtrl'
  20. })
  21. .state('daily-edit', {
  22. url: '/daily-edit/:flag',
  23. templateUrl: 'templates/daily-edit.html',
  24. controller: 'DailyEditCtrl'
  25. })
  26. .state('daily-readMonthCount', {
  27. url: '/daily-readMonthCount/:daily_dd',
  28. templateUrl: 'templates/daily-readMouthCount.html',
  29. controller: 'DailyReadMonthCountCtrl'
  30. })
  31. .state('daily-readDay', {
  32. url: '/daily-read/:daily_dd',
  33. templateUrl: 'templates/daily-readDay.html',
  34. controller: 'DailyReadDayCtrl'
  35. })
  36. .state('daily-readDayCount', {
  37. url: '/daily-readDayCount/:daily_dd',
  38. templateUrl: 'templates/daily-readDayCount.html',
  39. controller: 'DailyReadDayCountCtrl'
  40. })
  41. .state('daily-readDayDeptCount', {
  42. url: '/daily-readDayCount/:daily_dd&:dept&:flag',
  43. templateUrl: 'templates/daily-readDayDeptCount.html',
  44. controller: 'DailyReadDayDeptCountCtrl'
  45. })
  46. .state('daily-permission', {
  47. url: '/daily-permission',
  48. templateUrl: 'templates/daily-permission.html',
  49. controller: 'DailyPermissionCtrl'
  50. })
  51. .state('selectdeptoritem', {
  52. url: '/selectdeptoritem/:id',
  53. templateUrl: 'templates/selectdeptoritem.html',
  54. controller: 'SelectDeptOrItemCtrl'
  55. })
  56. .state('daily-template', {
  57. url: '/daily-template',
  58. templateUrl: 'templates/daily-template.html',
  59. controller: 'DailyTemplateCtrl'
  60. })
  61. .state('daily-templateScope', {
  62. url: '/daily-templateScope/:id',
  63. templateUrl: 'templates/daily-templateScope.html',
  64. controller: 'DailyTemplateScopeCtrl'
  65. })
  66. .state('daily-templateEdit', {
  67. url: '/daily-templateEdit/:id',
  68. templateUrl: 'templates/daily-templateEdit.html',
  69. controller: 'DailyTemplateEditCtrl'
  70. })
  71. .state('custom-form', {
  72. url: '/custom-form/:id',
  73. templateUrl: 'templates/custom-form.html',
  74. controller: 'CustomFormCtrl'
  75. })
  76. .state('additem', {
  77. url: '/additem',
  78. templateUrl: 'templates/additem.html',
  79. controller: 'AddItemCtrl'
  80. })
  81. });