routes-file-three.ts 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. import Layout from '@/layout'
  2. const HomeRoutes = {
  3. path: '/BasicsData',
  4. component: Layout,
  5. name: 'BasicsData',
  6. redirect: '/BasicsData/airlineCompany',
  7. //using el svg icon, the elSvgIcon first when at the same time using elSvgIcon and icon
  8. meta: {
  9. title: '基础数据',
  10. elSvgIcon: 'Operation',
  11. roles: ['basic_data_menu'],
  12. },
  13. children: [
  14. {
  15. path: '/BasicsData/airlineCompany',
  16. name: 'AirlineCompany',
  17. meta: {
  18. title: '航司信息维护',
  19. roles: ['airline_information_maintenance_page'],
  20. },
  21. component: () => import('@/views/BasicsData/airlineCompany/index.vue'),
  22. },
  23. {
  24. path: '/BasicsData/hiddenCompany',
  25. name: 'HiddenCompany',
  26. meta: {
  27. title: '屏蔽航司维护',
  28. // roles: ['airline_information_maintenance_page'],
  29. },
  30. component: () => import('@/views/BasicsData/hiddenCompany/index.vue'),
  31. },
  32. {
  33. path: '/BasicsData/airportCompany',
  34. name: 'AirportCompany',
  35. meta: {
  36. title: '机场公司维护',
  37. roles: ['airport_company_maintenance_page'],
  38. },
  39. component: () => import('@/views/BasicsData/airportCompany/index.vue'),
  40. },
  41. {
  42. path: '/BasicsData/airportInfo',
  43. name: 'AirportInfo',
  44. meta: {
  45. title: '机场信息维护',
  46. roles: ['airport_information_maintenance_page'],
  47. },
  48. redirect: '/BasicsData/airportInfo',
  49. component: {
  50. render: () => h(resolveComponent('router-view')),
  51. },
  52. children: [
  53. {
  54. path: '/BasicsData/airportInfo',
  55. hidden: true,
  56. component: () => import('@/views/BasicsData/airportInfo/index.vue'),
  57. },
  58. {
  59. path: '/BasicsData/airportInfoChild',
  60. name: 'AirportInfoChild',
  61. hidden: true,
  62. meta: {
  63. title: '区域设置',
  64. keepAlive: true,
  65. roles: ['terminal_setting_page'],
  66. },
  67. redirect: '/BasicsData/airportInfoChild',
  68. component: {
  69. render: () => h(resolveComponent('router-view')),
  70. },
  71. children: [
  72. {
  73. path: '/BasicsData/airportInfoChild',
  74. hidden: true,
  75. component: () =>
  76. import(
  77. '@/views/BasicsData/airportInfo/airportInfoChild/index.vue'
  78. ),
  79. },
  80. {
  81. path: '/BasicsData/positionSetting',
  82. name: 'PositionSetting',
  83. hidden: true,
  84. meta: { title: '位置设置', roles: ['position_setting_page'] },
  85. component: () =>
  86. import(
  87. '@/views/BasicsData/airportInfo/positionSetting/index.vue'
  88. ),
  89. },
  90. ],
  91. },
  92. ],
  93. },
  94. {
  95. path: '/BasicsData/deployNode',
  96. name: 'DeployNode',
  97. meta: {
  98. title: '节点信息维护',
  99. roles: ['node_information_maintenance_page'],
  100. },
  101. component: () => import('@/views/BasicsData/deployNode/index.vue'),
  102. },
  103. {
  104. path: '/BasicsData/modelMaintenance',
  105. name: 'ModelMaintenance',
  106. redirect: '/BasicsData/modelMaintenance',
  107. meta: { title: '机型维护', roles: ['model_maintenance_page'] },
  108. component: {
  109. render: () => h(resolveComponent('router-view')),
  110. },
  111. children: [
  112. {
  113. path: '/BasicsData/modelMaintenance',
  114. name: 'ModelMaintenance',
  115. hidden: true,
  116. component: () =>
  117. import('@/views/BasicsData/modelMaintenance/index.vue'),
  118. },
  119. {
  120. path: '/BasicsData/modelMaintenance/shippingSpace',
  121. name: 'ShippingSpace',
  122. hidden: true,
  123. meta: { title: '舱位管理', roles: ['cabin_editor_page'] },
  124. component: () => import('@/views/BasicsData/shippingSpace/index.vue'),
  125. },
  126. ],
  127. },
  128. {
  129. path: '/BasicsData/containerMaintenance',
  130. name: 'ContainerMaintenance',
  131. meta: { title: '容器维护', roles: ['container_maintenance_page'] },
  132. component: () =>
  133. import('@/views/BasicsData/containerMaintenance/index.vue'),
  134. },
  135. {
  136. path: '/BasicsData/cargoInformation',
  137. name: 'CargoInformation',
  138. meta: {
  139. title: '货代信息维护',
  140. roles: ['freight_forwarding_information_maintenance_page'],
  141. },
  142. component: () => import('@/views/BasicsData/cargoInformation/index.vue'),
  143. },
  144. {
  145. path: '/BasicsData/specialCargoMaintenance',
  146. name: 'SpecialCargoMaintenance',
  147. meta: {
  148. title: '特殊货物类型维护',
  149. roles: ['special_cargo_type_maintenance_page'],
  150. },
  151. component: () =>
  152. import('@/views/BasicsData/specialCargoMaintenance/index.vue'),
  153. },
  154. {
  155. path: '/BasicsData/equipmentMaintenance',
  156. name: 'EquipmentMaintenance',
  157. meta: { title: '设备维护', roles: ['equipment_maintenance_page'] },
  158. component: () =>
  159. import('@/views/BasicsData/equipmentMaintenance/index.vue'),
  160. },
  161. {
  162. path: '/BasicsData/warningSet',
  163. name: 'WarningSet',
  164. meta: { title: '预警告警维护', roles: ['alert_alarm_settings_page'] },
  165. redirect: '/BasicsData/warningSet',
  166. component: {
  167. render: () => h(resolveComponent('router-view')),
  168. },
  169. children: [
  170. {
  171. path: '/BasicsData/warningSet',
  172. name: 'WarningSet',
  173. hidden: true,
  174. component: () =>
  175. import('@/views/systemSettings/warningSet/index.vue'),
  176. },
  177. {
  178. path: '/BasicsData/warningEdit',
  179. name: 'WarningEdit',
  180. hidden: true,
  181. meta: { title: '预警告警维护编辑' },
  182. component: () =>
  183. import('@/views/systemSettings/warningEdit/index.vue'),
  184. },
  185. ],
  186. },
  187. // {
  188. // path: '/BasicsData/machine',
  189. // name: 'Machine',
  190. // meta: { title: '机器维护' },
  191. // component: () => import('@/views/BasicsData/machineCompany/index.vue'),
  192. // },
  193. ],
  194. }
  195. export default [HomeRoutes]