router.js 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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: '/company/detail',
  83. hide:1,
  84. component: () => import('./views/company/Detail.vue'),
  85. name: '新增企业'
  86. },{
  87. path: '/department',
  88. component: () => import('./views/company/Department.vue'),
  89. name: '部门管理'
  90. },{
  91. path: '/staff',
  92. component: () => import('./views/company/Staff.vue'),
  93. name: '员工管理'
  94. }]
  95. },
  96. {
  97. path: '/',
  98. name: '任务管理',
  99. change:1,
  100. icon: 'el-icon-s-flag',
  101. component: () => import('./views/Home.vue'),
  102. show: 1,
  103. isLeaf: 0,
  104. children: [{
  105. path: '/danger',
  106. component: () => import('./views/task/Danger.vue'),
  107. name: '风险点管理'
  108. },{
  109. path: '/dangertask',
  110. component: () => import('./views/task/DangerTask.vue'),
  111. name: '风险点任务'
  112. },{
  113. path: '/monitjob',
  114. component: () => import('./views/task/Monitjob.vue'),
  115. name: '巡检记录'
  116. }]
  117. },
  118. {
  119. path: '/',
  120. name: '消息管理',
  121. change:1,
  122. icon: 'el-icon-message',
  123. component: () => import('./views/Home.vue'),
  124. show: 1,
  125. isLeaf: 0,
  126. children: [{
  127. path: '/notice',
  128. component: () => import('./views/message/Index.vue'),
  129. name: '通知消息'
  130. },{
  131. path: '/system',
  132. component: () => import('./views/message/System.vue'),
  133. name: '系统消息'
  134. },{
  135. path: '/warning',
  136. component: () => import('./views/message/Warning.vue'),
  137. name: '告警消息'
  138. }]
  139. },
  140. {
  141. path: '/merterial',
  142. name: '资料管理',
  143. change:1,
  144. icon: 'el-icon-document-copy',
  145. component: () => import('./views/Home.vue'),
  146. show: 1,
  147. isLeaf: 1,
  148. children: [{
  149. path: '/merterial',
  150. component: () => import('./views/material/Index.vue'),
  151. name: '资料管理'
  152. }]
  153. },
  154. {
  155. path: '/frendlink',
  156. name: '友情链接',
  157. change:1,
  158. icon: 'el-icon-paperclip',
  159. component: () => import('./views/Home.vue'),
  160. show: 1,
  161. isLeaf: 1,
  162. children: [{
  163. path: '/frendlink',
  164. component: () => import('./views/material/Frendlink.vue'),
  165. name: '友情链接'
  166. }]
  167. },
  168. ]
  169. })