base.js 20 KB

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