base.js 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430
  1. import Layout from '~src/layout/index.vue'
  2. //路由菜单系统内置页面配置
  3. export default [
  4. {
  5. path: '/',
  6. redirect: '/home/index',
  7. },
  8. {
  9. path: '/login',
  10. name: 'login',
  11. meta: { title: '登录' },
  12. component: () => import('~src/views/login/index.vue'),
  13. },
  14. {
  15. path: '/auth',
  16. name: 'auth',
  17. meta: { title: '授权登录' },
  18. component: () => import('~src/views/user/auth.vue'),
  19. },
  20. {
  21. path: '/home',
  22. name: 'home',
  23. redirect: '/home/index',
  24. meta: { title: '首页' },
  25. component: Layout,
  26. children: [
  27. {
  28. path: '/home/index',
  29. name: 'home-index',
  30. meta: { title: '首页' },
  31. component: () => import('~src/views/home/index.vue'),
  32. },
  33. {
  34. path: '/home/config',
  35. name: 'home-config',
  36. meta: { title: '系统设置' },
  37. component: () => import('~src/views/home/config.vue'),
  38. },
  39. ],
  40. },
  41. {
  42. path: '/data-fill',
  43. name: 'data-fill',
  44. redirect: '/data-fill/wbs',
  45. meta: { title: '资料管理' },
  46. component: Layout,
  47. children: [
  48. {
  49. path: '/data-fill/wbs',
  50. name: 'data-fill-wbs',
  51. meta: { title: '资料填报' },
  52. component: () => import('~src/views/data-fill/wbs.vue'),
  53. },
  54. {
  55. path: '/data-fill/query',
  56. name: 'data-query',
  57. meta: { title: '资料查询' },
  58. component: () => import('~src/views/data-fill/query.vue'),
  59. },
  60. {
  61. path: '/data-fill/division',
  62. name: 'data-division',
  63. meta: { title: '系统分部分项划分' },
  64. component: () => import('~src/views/data-fill/division.vue'),
  65. },
  66. ],
  67. },
  68. {
  69. path: '/ledger',
  70. name: 'ledger',
  71. redirect: '/ledger/query',
  72. meta: { title: '台账日志' },
  73. component: Layout,
  74. children: [
  75. {
  76. path: '/ledger/query',
  77. name: 'ledger-write',
  78. meta: { title: '日志填报' },
  79. component: () => import('~src/views/ledger/query.vue'),
  80. },
  81. {
  82. path: '/ledger/write',
  83. name: 'ledger-query',
  84. meta: { title: '台账管理' },
  85. component: () => import('~src/views/ledger/write.vue'),
  86. },
  87. ],
  88. },
  89. {
  90. path: '/schedule',
  91. name: 'schedule',
  92. redirect: '/schedule/write',
  93. meta: { title: '进度查询' },
  94. component: Layout,
  95. children: [
  96. {
  97. path: '/schedule/write',
  98. name: 'schedule-internal',
  99. meta: { title: '内外业进度' },
  100. component: () => import('~src/views/schedule/write.vue'),
  101. },
  102. {
  103. path: '/schedule/data',
  104. name: 'schedule-data',
  105. meta: { title: '资料进度' },
  106. component: () => import('~src/views/schedule/hc-data.vue'),
  107. },
  108. {
  109. path: '/schedule/table',
  110. name: 'schedule-table',
  111. meta: { title: 'WBS节点进度' },
  112. component: () => import('~src/views/schedule/hc-table.vue'),
  113. },
  114. ],
  115. },
  116. {
  117. path: '/other-file',
  118. name: 'other-file',
  119. redirect: '/other-file/image-data',
  120. meta: { title: '其他文件' },
  121. component: Layout,
  122. children: [
  123. {
  124. path: '/other-file/image-data',
  125. name: 'image-data',
  126. meta: { title: '影像资料' },
  127. component: () => import('~src/views/other-file/image-data.vue'),
  128. },
  129. {
  130. path: '/other-file/image-view',
  131. name: 'other-file-view',
  132. meta: { title: '查看影像资料' },
  133. component: () => import('~src/views/other-file/image-view.vue'),
  134. },
  135. {
  136. path: '/other-file/image-form',
  137. name: 'other-file-form',
  138. meta: { title: '影像资料上传' },
  139. component: () => import('~src/views/other-file/image-form.vue'),
  140. },
  141. {
  142. path: '/other-file/project-scanning',
  143. name: 'project-scanning',
  144. meta: { title: '工程文件扫描、上传' },
  145. component: () => import('~src/views/other-file/project-scanning.vue'),
  146. },
  147. ],
  148. },
  149. {
  150. path: '/gauge',
  151. name: 'gauge-base',
  152. redirect: '/gauge/station',
  153. meta: { title: '综合管理' },
  154. component: Layout,
  155. children: [
  156. {
  157. path: '/gauge/station',
  158. name: 'gauge-station',
  159. meta: { title: '测站点' },
  160. component: () => import('~src/views/gauge/station.vue'),
  161. },
  162. {
  163. path: '/gauge/bezier',
  164. name: 'gauge-bezier',
  165. meta: { title: '平曲线' },
  166. component: () => import('~src/views/gauge/bezier.vue'),
  167. },
  168. {
  169. path: '/other/first-item',
  170. name: 'other-first-item',
  171. meta: { title: '首件工程' },
  172. component: () => import('~src/views/other/first-item.vue'),
  173. },
  174. // {
  175. // path: '/other/first-item',
  176. // name: 'other-first-item',
  177. // meta: {title: '首件工程'},
  178. // component: () => import('~src/views/other/first-item copy.vue')
  179. // }
  180. ],
  181. },
  182. {
  183. path: '/tasks',
  184. name: 'tasks',
  185. redirect: '/tasks/data',
  186. meta: { title: '任务管理' },
  187. component: Layout,
  188. children: [
  189. {
  190. path: '/tasks/hc-data',
  191. name: 'tasks-data',
  192. meta: { title: '待办任务、已办任务、任务查看' },
  193. component: () => import('~src/views/tasks/hc-data.vue'),
  194. },
  195. {
  196. path: '/tasks/flow',
  197. name: 'tasks-flow',
  198. meta: { title: '任务流程设置' },
  199. component: () => import('~src/views/tasks/flow.vue'),
  200. },
  201. {
  202. path: '/tasks/sign-admin',
  203. name: 'sign-admin',
  204. meta: { title: '电签管理员' },
  205. component: () => import('~src/views/tasks/sign-admin.vue'),
  206. },
  207. {
  208. path: '/tasks/message-data',
  209. name: 'message-data',
  210. meta: { title: '消息提醒' },
  211. component: () => import('~src/views/tasks/message-data.vue'),
  212. },
  213. ],
  214. },
  215. {
  216. path: '/tentative/material',
  217. name: 'tentative-material',
  218. redirect: '/tentative/material/approach',
  219. meta: { title: '材料管理' },
  220. component: Layout,
  221. children: [
  222. {
  223. path: '/tentative/material/approach',
  224. name: 'tentative-material-approach',
  225. meta: { title: '材料进场' },
  226. component: () => import('~src/views/tentative/material/approach.vue'),
  227. },
  228. {
  229. path: '/tentative/material/sampling',
  230. name: 'tentative-material-sampling',
  231. meta: { title: '材料取样' },
  232. component: () => import('~src/views/tentative/material/sampling.vue'),
  233. },
  234. ],
  235. },
  236. {
  237. path: '/tentative/detect',
  238. name: 'tentative-detect',
  239. redirect: '/tentative/detect/approach',
  240. meta: { title: '试验检测' },
  241. component: Layout,
  242. children: [
  243. {
  244. path: '/tentative/detect/third',
  245. name: 'tentative-detect-third',
  246. meta: { title: '外委检测' },
  247. component: () => import('~src/views/tentative/detect/third.vue'),
  248. },
  249. {
  250. path: '/tentative/detect/outside',
  251. name: 'tentative-detect-outside',
  252. meta: { title: '第三方检测' },
  253. component: () => import('~src/views/tentative/detect/outside.vue'),
  254. },
  255. {
  256. path: '/tentative/detect/test',
  257. name: 'tentative-detect-test',
  258. meta: { title: '试验检测' },
  259. component: () => import('~src/views/tentative/detect/test.vue'),
  260. },
  261. {
  262. path: '/tentative/detect/test-form',
  263. name: 'tentative-detect-test-form',
  264. meta: { title: '试验检测表单' },
  265. component: () => import('~src/views/tentative/detect/test-form.vue'),
  266. },
  267. ],
  268. },
  269. {
  270. path: '/tentative/collect',
  271. name: 'tentative-collect',
  272. redirect: '/tentative/collect/approach',
  273. meta: { title: '汇总管理' },
  274. component: Layout,
  275. children: [
  276. {
  277. path: '/tentative/collect/test',
  278. name: 'tentative-collect-test',
  279. meta: { title: '试验汇总' },
  280. component: () => import('~src/views/tentative/collect/test.vue'),
  281. },
  282. {
  283. path: '/tentative/collect/monthly',
  284. name: 'tentative-collect-monthly',
  285. meta: { title: '月报汇总' },
  286. component: () => import('~src/views/tentative/collect/monthly.vue'),
  287. },
  288. ],
  289. },
  290. {
  291. path: '/tentative/device',
  292. name: 'tentative-device',
  293. redirect: '/tentative/device/approach',
  294. meta: { title: '设备管理' },
  295. component: Layout,
  296. children: [
  297. {
  298. path: '/tentative/device/approach',
  299. name: 'tentative-device-approach',
  300. meta: { title: '设备进场管理' },
  301. component: () => import('~src/views/tentative/device/approach.vue'),
  302. },
  303. {
  304. path: '/tentative/device/employ',
  305. name: 'tentative-device-employ',
  306. meta: { title: '设备使用管理' },
  307. component: () => import('~src/views/tentative/device/employ.vue'),
  308. },
  309. {
  310. path: '/tentative/device/overhaul',
  311. name: 'tentative-device-overhaul',
  312. meta: { title: '设备检修管理' },
  313. component: () => import('~src/views/tentative/device/overhaul.vue'),
  314. },
  315. ],
  316. },
  317. {
  318. path: '/tentative/parameter',
  319. name: 'tentative-parameter',
  320. redirect: '/tentative/parameter/container',
  321. meta: { title: '参数设置' },
  322. component: Layout,
  323. children: [
  324. {
  325. path: '/tentative/parameter/container',
  326. name: 'tentative-parameter-container',
  327. meta: { title: '试验容器' },
  328. component: () => import('~src/views/tentative/parameter/container.vue'),
  329. },
  330. {
  331. path: '/tentative/parameter/sieve',
  332. name: 'tentative-parameter-sieve',
  333. meta: { title: '自定义筛孔类型' },
  334. component: () => import('~src/views/tentative/parameter/sieve.vue'),
  335. },
  336. {
  337. path: '/tentative/parameter/density',
  338. name: 'tentative-parameter-density',
  339. meta: { title: '温度及密度参数' },
  340. component: () => import('~src/views/tentative/parameter/density.vue'),
  341. },
  342. {
  343. path: '/tentative/parameter/compactness',
  344. name: 'tentative-parameter-compactness',
  345. meta: { title: '压实度评标参数' },
  346. component: () => import('~src/views/tentative/parameter/compactness.vue'),
  347. },
  348. ],
  349. },
  350. {
  351. path: '/tentative/laboratory',
  352. name: 'tentative-laboratory',
  353. redirect: '/tentative/laboratory/container',
  354. meta: { title: '实验室管理' },
  355. component: Layout,
  356. children: [
  357. {
  358. path: '/tentative/laboratory/user',
  359. name: 'tentative-laboratory-user',
  360. meta: { title: '人员档案' },
  361. component: () => import('~src/views/tentative/laboratory/user.vue'),
  362. },
  363. {
  364. path: '/tentative/laboratory/print',
  365. name: 'tentative-laboratory-print',
  366. meta: { title: '打印空表' },
  367. component: () => import('~src/views/tentative/laboratory/print.vue'),
  368. },
  369. ],
  370. },
  371. {
  372. path: '/other',
  373. name: 'other',
  374. redirect: '/other/order-service',
  375. meta: { title: '其他页面' },
  376. component: Layout,
  377. children: [
  378. {
  379. path: '/other/order-service',
  380. name: 'order-service',
  381. meta: { title: '工单服务' },
  382. component: () => import('~src/views/other/order-service.vue'),
  383. },
  384. {
  385. path: '/user/index',
  386. name: 'user-index',
  387. meta: { title: '个人中心' },
  388. component: () => import('~src/views/user/index.vue'),
  389. },
  390. ],
  391. },
  392. {
  393. path: '/hc-test',
  394. name: 'hc-test',
  395. redirect: '/test/index',
  396. meta: { title: '测试页面' },
  397. component: Layout,
  398. children: [
  399. {
  400. path: '/test/index',
  401. name: 'test-index',
  402. meta: { title: '测试' },
  403. component: () => import('~src/test/index.vue'),
  404. },
  405. ],
  406. },
  407. {
  408. path: '/403',
  409. name: '403',
  410. meta: { title: '403' },
  411. component: () => import('~src/views/error/403.vue'),
  412. },
  413. {
  414. path: '/404',
  415. name: '404',
  416. meta: { title: '404' },
  417. component: () => import('~src/views/error/404.vue'),
  418. },
  419. {
  420. path: '/500',
  421. name: '500',
  422. meta: { title: '500' },
  423. component: () => import('~src/views/error/500.vue'),
  424. },
  425. {
  426. path: '/:path(.*)*',
  427. redirect: '/404',
  428. },
  429. ]