Elizabeth's proactive approach involves introducing urinal toilet attachment , an ingenious concept that optimizes space and functionality.

index.js 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. import Vue from 'vue'
  2. import Router from 'vue-router'
  3. /* Layout */
  4. import Layout from '@/views/layout/Layout'
  5. import data_dict from './modules/data_dict'
  6. import device from './modules/device'
  7. import dialysis from './modules/dialysis'
  8. import patient from './modules/patient'
  9. import qcd from './modules/qcd'
  10. import role from './modules/role'
  11. import stock from './modules/stock'
  12. import weight_sign from './modules/weight_sign'
  13. import workforce from './modules/workforce'
  14. import service from './modules/service'
  15. import org from './modules/org'
  16. import systems from './modules/systems'
  17. import data_upload from './modules/data_upload'
  18. import integration from './modules/integration'
  19. import medicalScheduling from './modules/medical_scheduling'
  20. import slow from './modules/slow'
  21. import scrm from './modules/scrm'
  22. import shop from './modules/shop'
  23. Vue.use(Router)
  24. /** note: submenu only apppear when children.length>=1
  25. * detail see https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html
  26. **/
  27. /**
  28. * hidden: true if `hidden:true` will not show in the sidebar(default is false)
  29. * alwaysShow: true if set true, will always show the root menu, whatever its child routes length
  30. // 详见 xt_permission.xt_filterAsyncRouter 函数的逻辑
  31. is_menu: false 加载路由时验证用的(即该路由是否要在侧边栏展示,需要展示的即需要),为 false 时表示该路由不需要进行权限验证
  32. * if not set alwaysShow, only more than one route under the children
  33. * it will becomes nested mode, otherwise not show the root menu
  34. * redirect: noredirect if `redirect:noredirect` will no redirct in the breadcrumb
  35. * name:'router-name' the name is used by <keep-alive> (must set!!!)
  36. * meta : {
  37. title: 'title' the name show in submenu and breadcrumb (recommend set)
  38. icon: 'svg-name' the icon show in the sidebar,
  39. noCache: true if true ,the page will no be cached(default is false)
  40. // 详见 xt_permission.xt_filterAsyncRouter 函数的逻辑
  41. is_menu: false 加载路由时验证用的,为 false 时表示该路由不需要进行权限验证
  42. hidden: false 加载路由时验证用的,is_menu 为true时才有作用,为 true 时表示该路由需要进行权限验证
  43. }
  44. **/
  45. var _constant_router_map = [{
  46. path: '/token/verify',
  47. component: () => import('@/xt_pages/index/verify_token'),
  48. hidden: true
  49. },
  50. {
  51. path: '/404',
  52. component: () => import('@/views/errorPage/404'),
  53. hidden: true
  54. },
  55. {
  56. path: '/401',
  57. component: () => import('@/views/errorPage/401'),
  58. hidden: true
  59. },
  60. {
  61. path: '',
  62. component: Layout,
  63. redirect: '/home',
  64. children: [{
  65. path: '/home',
  66. component: () => import('@/xt_pages/home/index'),
  67. name: 'home',
  68. meta: {
  69. title: 'home',
  70. icon: 'dashboard',
  71. noCache: true
  72. }
  73. }]
  74. },
  75. service,
  76. // patient,
  77. // workforce,
  78. // weight_sign,
  79. // dialysis,
  80. // stock,
  81. // qcd,
  82. // data_dict,
  83. // device,
  84. // role,
  85. // org
  86. ]
  87. var _asy_router_map = [
  88. patient,
  89. workforce,
  90. // medicalScheduling,
  91. weight_sign,
  92. dialysis,
  93. stock,
  94. qcd,
  95. device,
  96. org,
  97. data_upload,
  98. slow,
  99. scrm,
  100. shop,
  101. integration,
  102. systems,
  103. ]
  104. var is_asy_router = process.env.NODE_ENV === 'production' // true; 设置为 true 强制进行路由验证
  105. if (!is_asy_router) {
  106. _constant_router_map = _constant_router_map.concat(_asy_router_map)
  107. _asy_router_map = []
  108. } else {
  109. }
  110. export const xt_constantRouterMap = _constant_router_map
  111. export const xt_asyncRouterMap = _asy_router_map
  112. export default new Router({
  113. // mode: 'history', // require service support
  114. scrollBehavior: () => ({
  115. y: 0
  116. }),
  117. routes: xt_constantRouterMap
  118. })