master.js 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695
  1. const routesMaster = [
  2. /***主人***/
  3. {
  4. path: '/master',
  5. component: () => import('../views/Layout.vue'),
  6. children: [
  7. //主页
  8. {
  9. path: '',
  10. name: 'Master',
  11. component: () => import('../views/Master/Home.vue'),
  12. meta: {
  13. requireAuth: false,
  14. role: [],
  15. title: '主人主页',
  16. }
  17. },
  18. //所有功能
  19. {
  20. path: 'allFun',
  21. name: 'MasterAllFun',
  22. component: () => import('../views/Master/AllFun.vue'),
  23. meta: {
  24. requireAuth: false,
  25. role: [],
  26. title: '所有功能',
  27. }
  28. },
  29. //我的
  30. {
  31. path: 'mine',
  32. component: () => import('../views/Layout.vue'),
  33. children: [
  34. //个人中心
  35. {
  36. path: 'center',
  37. name: 'MasterMineCenter',
  38. component: () => import('../views/Master/Mine/Center.vue'),
  39. meta: {
  40. requireAuth: false,
  41. role: [],
  42. title: '个人中心',
  43. }
  44. },
  45. //消息
  46. {
  47. path: 'message',
  48. name: 'MasterMineMessage',
  49. component: () => import('../views/Master/Mine/Message.vue'),
  50. meta: {
  51. requireAuth: false,
  52. role: [],
  53. title: '消息',
  54. }
  55. },
  56. //修改个人信息
  57. {
  58. path: 'editInfo',
  59. name: 'MasterMineEditInfo',
  60. component: () => import('../views/Master/Mine/EditInfo.vue'),
  61. meta: {
  62. requireAuth: false,
  63. role: [],
  64. title: '修改个人信息',
  65. }
  66. },
  67. //设置
  68. {
  69. path: 'config',
  70. name: 'MasterMineConfig',
  71. component: () => import('../views/Master/Mine/Config.vue'),
  72. meta: {
  73. requireAuth: false,
  74. role: [],
  75. title: '设置',
  76. }
  77. },
  78. //绑定手机
  79. {
  80. path: 'bindPhone',
  81. name: 'MasterMineBindPhone',
  82. component: () => import('../views/Master/Mine/BindPhone.vue'),
  83. meta: {
  84. requireAuth: false,
  85. role: [],
  86. title: '绑定手机',
  87. }
  88. },
  89. //关于小鹏管家
  90. {
  91. path: 'about',
  92. name: 'MasterMineAbout',
  93. component: () => import('../views/Master/Mine/About.vue'),
  94. meta: {
  95. requireAuth: false,
  96. role: [],
  97. title: '关于小鹏管家',
  98. }
  99. },
  100. //问题反馈
  101. {
  102. path: 'feedback',
  103. name: 'MasterMineFeedback',
  104. component: () => import('../views/Master/Mine/Feedback.vue'),
  105. meta: {
  106. requireAuth: false,
  107. role: [],
  108. title: '问题反馈',
  109. }
  110. },
  111. ],
  112. },
  113. //访客
  114. {
  115. path: 'guest',
  116. component: () => import('../views/Layout.vue'),
  117. children: [
  118. //访客列表
  119. {
  120. path: 'list',
  121. name: 'MasterGuestList',
  122. component: () => import('../views/Master/Guest/List.vue'),
  123. meta: {
  124. requireAuth: false,
  125. role: [],
  126. title: '访客列表',
  127. }
  128. },
  129. //邀请访客
  130. {
  131. path: 'invitation',
  132. name: 'MasterGuestInvitation',
  133. component: () => import('../views/Master/Guest/Invitation.vue'),
  134. meta: {
  135. requireAuth: false,
  136. role: [],
  137. title: '访客列表',
  138. }
  139. },
  140. //邀请访客码
  141. {
  142. path: 'code',
  143. name: 'MasterGuestCode',
  144. component: () => import('../views/Master/Guest/Code.vue'),
  145. meta: {
  146. requireAuth: false,
  147. role: [],
  148. title: '邀请访客码',
  149. }
  150. },
  151. //申请详情
  152. {
  153. path: 'info',
  154. name: 'MasterGuestInfo',
  155. component: () => import('../views/Master/Guest/Info.vue'),
  156. meta: {
  157. requireAuth: false,
  158. role: [],
  159. title: '申请详情',
  160. }
  161. },
  162. //同行人员详情
  163. {
  164. path: 'partner',
  165. name: 'MasterGuestPartner',
  166. component: () => import('../views/Master/Guest/Partner.vue'),
  167. meta: {
  168. requireAuth: false,
  169. role: [],
  170. title: '同行人员详情',
  171. }
  172. },
  173. ]
  174. },
  175. //物业相关
  176. {
  177. path: 'property',
  178. component: () => import('../views/Layout.vue'),
  179. children: [
  180. //业主投诉
  181. {
  182. path: 'complaint',
  183. component: () => import('../views/Layout.vue'),
  184. children: [
  185. //业主投诉列表
  186. {
  187. path: 'list',
  188. name: 'MasterPropertyComplaintList',
  189. component: () => import('../views/Master/Property/Complaint/List.vue'),
  190. meta: {
  191. requireAuth: false,
  192. role: [],
  193. title: '业主投诉',
  194. }
  195. },
  196. //业主投诉详情
  197. {
  198. path: 'info',
  199. name: 'MasterPropertyComplaintInfo',
  200. component: () => import('../views/Master/Property/Complaint/Info.vue'),
  201. meta: {
  202. requireAuth: false,
  203. role: [],
  204. title: '业主投诉详情',
  205. }
  206. },
  207. //业主投诉表单
  208. {
  209. path: 'info',
  210. name: 'MasterPropertyComplaintForm',
  211. component: () => import('../views/Master/Property/Complaint/Form.vue'),
  212. meta: {
  213. requireAuth: false,
  214. role: [],
  215. title: '业主投诉表单',
  216. }
  217. },
  218. ]
  219. },
  220. //报事报修
  221. {
  222. path: 'repair',
  223. component: () => import('../views/Layout.vue'),
  224. children: [
  225. //报事报修列表
  226. {
  227. path: 'list',
  228. name: 'MasterPropertyRepairList',
  229. component: () => import('../views/Master/Property/Repair/List.vue'),
  230. meta: {
  231. requireAuth: false,
  232. role: [],
  233. title: '报事报修列表',
  234. }
  235. },
  236. //报事报修详情
  237. {
  238. path: 'info',
  239. name: 'MasterPropertyRepairInfo',
  240. component: () => import('../views/Master/Property/Repair/Info.vue'),
  241. meta: {
  242. requireAuth: false,
  243. role: [],
  244. title: '报事报修详情',
  245. }
  246. },
  247. //报事报修表单
  248. {
  249. path: 'form',
  250. name: 'MasterPropertyRepairForm',
  251. component: () => import('../views/Master/Property/Repair/Form.vue'),
  252. meta: {
  253. requireAuth: false,
  254. role: [],
  255. title: '报事报修表单',
  256. }
  257. },
  258. ]
  259. },
  260. //物业缴费
  261. {
  262. path: 'cost',
  263. component: () => import('../views/Layout.vue'),
  264. children: [
  265. //主页
  266. {
  267. path: '',
  268. name: 'MasterPropertyCost',
  269. component: () => import('../views/Master/Property/Cost/Home.vue'),
  270. meta: {
  271. requireAuth: false,
  272. role: [],
  273. title: '物业缴费主页',
  274. }
  275. },
  276. //缴费记录
  277. {
  278. path: 'list',
  279. name: 'MasterPropertyCostList',
  280. component: () => import('../views/Master/Property/Cost/List.vue'),
  281. meta: {
  282. requireAuth: false,
  283. role: [],
  284. title: '缴费记录',
  285. }
  286. },
  287. //缴费
  288. {
  289. path: 'pay',
  290. name: 'MasterPropertyCostPay',
  291. component: () => import('../views/Master/Property/Cost/Pay.vue'),
  292. meta: {
  293. requireAuth: false,
  294. role: [],
  295. title: '缴费',
  296. }
  297. },
  298. ]
  299. },
  300. //车位
  301. {
  302. path: 'car',
  303. component: () => import('../views/Layout.vue'),
  304. children: [
  305. //车位申请
  306. {
  307. path: 'apply',
  308. name: 'MasterPropertyCar',
  309. component: () => import('../views/Master/Property/Car/Apply.vue'),
  310. meta: {
  311. requireAuth: false,
  312. role: [],
  313. title: '物业缴费主页',
  314. }
  315. },
  316. //车位续费
  317. {
  318. path: 'pay',
  319. name: 'MasterPropertyCarPay',
  320. component: () => import('../views/Master/Property/Car/Pay.vue'),
  321. meta: {
  322. requireAuth: false,
  323. role: [],
  324. title: '车位续费',
  325. }
  326. },
  327. ]
  328. },
  329. ],
  330. },
  331. //考勤
  332. {
  333. path: 'attendance',
  334. component: () => import('../views/Layout.vue'),
  335. children: [
  336. //异地打卡
  337. {
  338. path: 'sign',
  339. name: 'MasterAttendanceSign',
  340. component: () => import('../views/Master/Attendance/Sign.vue'),
  341. meta: {
  342. requireAuth: false,
  343. role: [],
  344. title: '异地打卡',
  345. }
  346. },
  347. //考勤记录
  348. {
  349. path: 'list',
  350. name: 'MasterAttendanceList',
  351. component: () => import('../views/Master/Attendance/List.vue'),
  352. meta: {
  353. requireAuth: false,
  354. role: [],
  355. title: '考勤记录',
  356. }
  357. },
  358. //考勤补卡申请/异地打卡详情
  359. {
  360. path: 'info',
  361. name: 'MasterAttendanceInfo',
  362. component: () => import('../views/Master/Attendance/Info.vue'),
  363. meta: {
  364. requireAuth: false,
  365. role: [],
  366. title: '考勤补卡申请详情',
  367. }
  368. },
  369. //考勤补卡申请
  370. {
  371. path: 'apply',
  372. name: 'MasterAttendanceApply',
  373. component: () => import('../views/Master/Attendance/Apply.vue'),
  374. meta: {
  375. requireAuth: false,
  376. role: [],
  377. title: '考勤补卡申请',
  378. }
  379. },
  380. //考勤补卡申请审核列表
  381. {
  382. path: 'verifyList',
  383. name: 'MasterAttendanceVerifyList',
  384. component: () => import('../views/Master/Attendance/VerifyList.vue'),
  385. meta: {
  386. requireAuth: false,
  387. role: [],
  388. title: '考勤补卡申请审核列表',
  389. }
  390. },
  391. //请假申请审核列表
  392. {
  393. path: 'verifyLeaveList',
  394. name: 'MasterAttendanceVerifyLeaveList',
  395. component: () => import('../views/Master/Attendance/VerifyLeaveList.vue'),
  396. meta: {
  397. requireAuth: false,
  398. role: [],
  399. title: '请假申请审核列表',
  400. }
  401. },
  402. //请假记录
  403. {
  404. path: 'leaveList',
  405. name: 'MasterAttendanceLeaveList',
  406. component: () => import('../views/Master/Attendance/LeaveList.vue'),
  407. meta: {
  408. requireAuth: false,
  409. role: [],
  410. title: '请假记录',
  411. }
  412. },
  413. //请假详情
  414. {
  415. path: 'leaveInfo',
  416. name: 'MasterAttendanceLeaveInfo',
  417. component: () => import('../views/Master/Attendance/LeaveInfo.vue'),
  418. meta: {
  419. requireAuth: false,
  420. role: [],
  421. title: '请假详情',
  422. }
  423. },
  424. //请假提交
  425. {
  426. path: 'leaveForm',
  427. name: 'MasterAttendanceLeaveForm',
  428. component: () => import('../views/Master/Attendance/LeaveForm.vue'),
  429. meta: {
  430. requireAuth: false,
  431. role: [],
  432. title: '请假提交',
  433. }
  434. },
  435. //考勤统计列表
  436. {
  437. path: 'statisticList',
  438. name: 'MasterAttendanceStatisticList',
  439. component: () => import('../views/Master/Attendance/StatisticList.vue'),
  440. meta: {
  441. requireAuth: false,
  442. role: [],
  443. title: '考勤统计列表',
  444. }
  445. },
  446. //考勤记录测温详情
  447. {
  448. path: 'temperatureInfo',
  449. name: 'MasterAttendanceTemperatureInfo',
  450. component: () => import('../views/Master/Attendance/TemperatureInfo.vue'),
  451. meta: {
  452. requireAuth: false,
  453. role: [],
  454. title: '考勤记录测温详情',
  455. }
  456. },
  457. ]
  458. },
  459. //货物品
  460. {
  461. path: 'goods',
  462. component: () => import('../views/Layout.vue'),
  463. children: [
  464. //携出申请列表
  465. {
  466. path: 'applyList',
  467. name: 'MasterGoodsApplyList',
  468. component: () => import('../views/Master/Goods/ApplyList.vue'),
  469. meta: {
  470. requireAuth: false,
  471. role: [],
  472. title: '携出申请列表',
  473. }
  474. },
  475. //携出申请详情
  476. {
  477. path: 'applyInfo',
  478. name: 'MasterGoodsApplyInfo',
  479. component: () => import('../views/Master/Goods/ApplyInfo.vue'),
  480. meta: {
  481. requireAuth: false,
  482. role: [],
  483. title: '携出申请详情',
  484. }
  485. },
  486. //携出申请
  487. {
  488. path: 'apply',
  489. name: 'MasterGoodsApply',
  490. component: () => import('../views/Master/Goods/Apply.vue'),
  491. meta: {
  492. requireAuth: false,
  493. role: [],
  494. title: '携出申请',
  495. }
  496. },
  497. //携出审核列表
  498. {
  499. path: 'verifyList',
  500. name: 'MasterGoodsVerifyList',
  501. component: () => import('../views/Master/Goods/VerifyList.vue'),
  502. meta: {
  503. requireAuth: false,
  504. role: [],
  505. title: '携出审核列表',
  506. }
  507. },
  508. //携出审核详情
  509. {
  510. path: 'verifyInfo',
  511. name: 'MasterGoodsVerifyInfo',
  512. component: () => import('../views/Master/Goods/VerifyInfo.vue'),
  513. meta: {
  514. requireAuth: false,
  515. role: [],
  516. title: '携出审核详情',
  517. }
  518. },
  519. ]
  520. },
  521. //健康
  522. {
  523. path: 'health',
  524. component: () => import('../views/Layout.vue'),
  525. children: [
  526. //疫情上报
  527. {
  528. path: 'report',
  529. name: 'MasterHealthReport',
  530. component: () => import('../views/Master/Health/Report.vue'),
  531. meta: {
  532. requireAuth: false,
  533. role: [],
  534. title: '疫情上报',
  535. }
  536. },
  537. //健康档案
  538. {
  539. path: 'archives',
  540. name: 'MasterHealthArchives',
  541. component: () => import('../views/Master/Health/Archives.vue'),
  542. meta: {
  543. requireAuth: false,
  544. role: [],
  545. title: '健康档案',
  546. }
  547. },
  548. //测温统计
  549. {
  550. path: 'temperatureRecord',
  551. name: 'MasterHealthTemperatureRecord',
  552. component: () => import('../views/Master/Health/TemperatureRecord.vue'),
  553. meta: {
  554. requireAuth: false,
  555. role: [],
  556. title: '测温统计',
  557. }
  558. },
  559. //异常记录
  560. {
  561. path: 'abnormalRecord',
  562. name: 'MasterHealthAbnormalRecord',
  563. component: () => import('../views/Master/Health/AbnormalRecord.vue'),
  564. meta: {
  565. requireAuth: false,
  566. role: [],
  567. title: '异常记录',
  568. }
  569. },
  570. //未测人员
  571. {
  572. path: 'noTemperatureRecord',
  573. name: 'MasterHealthNoTemperatureRecord',
  574. component: () => import('../views/Master/Health/NoTemperatureRecord.vue'),
  575. meta: {
  576. requireAuth: false,
  577. role: [],
  578. title: '未测人员',
  579. }
  580. },
  581. //健康公示墙
  582. {
  583. path: 'wall',
  584. name: 'MasterHealthWall',
  585. component: () => import('../views/Master/Health/Wall.vue'),
  586. meta: {
  587. requireAuth: false,
  588. role: [],
  589. title: '健康公示',
  590. }
  591. },
  592. //异常统计
  593. {
  594. path: 'abnormalStatistics',
  595. name: 'MasterHealthAbnormalStatistics',
  596. component: () => import('../views/Master/Health/AbnormalStatistics.vue'),
  597. meta: {
  598. requireAuth: false,
  599. role: [],
  600. title: '异常统计',
  601. }
  602. },
  603. //职工台账
  604. {
  605. path: 'worker',
  606. name: 'MasterHealthWorker',
  607. component: () => import('../views/Master/Health/Worker.vue'),
  608. meta: {
  609. requireAuth: false,
  610. role: [],
  611. title: '职工台账',
  612. }
  613. },
  614. //职工台账详情
  615. {
  616. path: 'workerInfo',
  617. name: 'MasterHealthWorkerInfo',
  618. component: () => import('../views/Master/Health/WorkerInfo.vue'),
  619. meta: {
  620. requireAuth: false,
  621. role: [],
  622. title: '职工台账详情',
  623. }
  624. },
  625. //职工测温
  626. {
  627. path: 'workerTemperature',
  628. name: 'MasterHealthWorkerTemperature',
  629. component: () => import('../views/Master/Health/WorkerTemperature.vue'),
  630. meta: {
  631. requireAuth: false,
  632. role: [],
  633. title: '职工测温',
  634. }
  635. },
  636. //访客测温
  637. {
  638. path: 'guestTemperature',
  639. name: 'MasterHealthGuestTemperature',
  640. component: () => import('../views/Master/Health/GuestTemperature.vue'),
  641. meta: {
  642. requireAuth: false,
  643. role: [],
  644. title: '访客测温',
  645. }
  646. },
  647. ],
  648. },
  649. //人员
  650. {
  651. path: 'person',
  652. component: () => import('../views/Layout.vue'),
  653. children: [
  654. //添加人员
  655. {
  656. path: 'add',
  657. name: 'MasterPersonAdd',
  658. component: () => import('../views/Master/Person/Add.vue'),
  659. meta: {
  660. requireAuth: false,
  661. role: [],
  662. title: '添加人员',
  663. }
  664. },
  665. //添加人员选择设备
  666. {
  667. path: 'device',
  668. name: 'MasterPersonSelectDevice',
  669. component: () => import('../views/Master/Person/SelectDevice.vue'),
  670. meta: {
  671. requireAuth: false,
  672. role: [],
  673. title: '添加人员选择设备',
  674. }
  675. },
  676. ]
  677. },
  678. ],
  679. },
  680. ]
  681. export default routesMaster