router.js 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. import Vue from 'vue'
  2. import Router from 'vue-router'
  3. Vue.use(Router)
  4. export default new Router({
  5. routes: [{
  6. path: '/login',
  7. name: 'login',
  8. component: () => import('./views/Login.vue'),
  9. show: 0
  10. },
  11. {
  12. path: '/',
  13. name: '概览',
  14. icon: 'el-icon-s-data',
  15. component: () => import('./views/Home.vue'),
  16. show: 1,
  17. isLeaf: 1,
  18. children: [{
  19. path: '/',
  20. component: () => import('./views/Data.vue'),
  21. name: '概览'
  22. }, ]
  23. },
  24. {
  25. path: '/govermentData',
  26. name: '政府概览',
  27. icon: 'el-icon-s-data',
  28. component: () => import('./views/Home.vue'),
  29. show: 1,
  30. isLeaf: 1,
  31. children: [{
  32. path: '/govermentData',
  33. component: () => import('./views/GovermentData.vue'),
  34. name: '政府概览'
  35. }, ]
  36. },
  37. {
  38. path: '/companyData',
  39. name: '企业概览',
  40. icon: 'el-icon-s-data',
  41. component: () => import('./views/Home.vue'),
  42. show: 1,
  43. isLeaf: 1,
  44. children: [{
  45. path: '/companyData',
  46. component: () => import('./views/CompanyData.vue'),
  47. name: '企业概览'
  48. }, ]
  49. },
  50. {
  51. path: '/government',
  52. name: '政府管理',
  53. change:1,
  54. icon: 'el-icon-office-building',
  55. component: () => import('./views/Home.vue'),
  56. show: 1,
  57. isLeaf: 1,
  58. children: [{
  59. path: '/government',
  60. component: () => import('./views/government/Index.vue'),
  61. name: '政府管理'
  62. }, ]
  63. },
  64. {
  65. path: '/',
  66. name: '企业管理',
  67. change:1,
  68. icon: 'el-icon-s-home',
  69. component: () => import('./views/Home.vue'),
  70. show: 1,
  71. isLeaf: 0,
  72. children: [{
  73. path: '/company',
  74. component: () => import('./views/company/Company.vue'),
  75. name: '公司管理'
  76. },{
  77. path: '/company/add',
  78. hide:1,
  79. component: () => import('./views/company/Add.vue'),
  80. name: '新增企业'
  81. },{
  82. path: '/department',
  83. component: () => import('./views/company/Department.vue'),
  84. name: '部门管理'
  85. },{
  86. path: '/staff',
  87. component: () => import('./views/company/Staff.vue'),
  88. name: '员工管理'
  89. }]
  90. },
  91. {
  92. path: '/',
  93. name: '任务管理',
  94. change:1,
  95. icon: 'el-icon-s-flag',
  96. component: () => import('./views/Home.vue'),
  97. show: 1,
  98. isLeaf: 0,
  99. children: [{
  100. path: '/danger',
  101. component: () => import('./views/task/Danger.vue'),
  102. name: '风险点管理'
  103. },{
  104. path: '/dangertask',
  105. component: () => import('./views/task/DangerTask.vue'),
  106. name: '风险点任务'
  107. }]
  108. },
  109. {
  110. path: '/',
  111. name: '消息管理',
  112. change:1,
  113. icon: 'el-icon-message',
  114. component: () => import('./views/Home.vue'),
  115. show: 1,
  116. isLeaf: 0,
  117. children: [{
  118. path: '/notice',
  119. component: () => import('./views/message/Index.vue'),
  120. name: '通知消息'
  121. },{
  122. path: '/system',
  123. component: () => import('./views/message/System.vue'),
  124. name: '系统消息'
  125. },{
  126. path: '/warning',
  127. component: () => import('./views/message/Warning.vue'),
  128. name: '告警消息'
  129. }]
  130. },
  131. {
  132. path: '/merterial',
  133. name: '资料管理',
  134. change:1,
  135. icon: 'el-icon-document-copy',
  136. component: () => import('./views/Home.vue'),
  137. show: 1,
  138. isLeaf: 1,
  139. children: [{
  140. path: '/merterial',
  141. component: () => import('./views/material/Index.vue'),
  142. name: '资料管理'
  143. }]
  144. },
  145. {
  146. path: '/frendlink',
  147. name: '友情链接',
  148. change:1,
  149. icon: 'el-icon-paperclip',
  150. component: () => import('./views/Home.vue'),
  151. show: 1,
  152. isLeaf: 1,
  153. children: [{
  154. path: '/frendlink',
  155. component: () => import('./views/material/Frendlink.vue'),
  156. name: '友情链接'
  157. }]
  158. },
  159. ]
  160. })