index.js 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472
  1. import Vue from "vue";
  2. import Router from "vue-router";
  3. import preview from "vue-photo-preview";
  4. import "vue-photo-preview/dist/skin.css";
  5. Vue.use(Router).use(preview);
  6. /* Layout */
  7. import Layout from "@/views/layout/Layout";
  8. import role from "./modules/role";
  9. import article from "./modules/article";
  10. import member from "./modules/member";
  11. import org from "./modules/org";
  12. import marketing_tool from "./modules/marketing_tool";
  13. import system from "./modules/system";
  14. import site from "./modules/site";
  15. import kefu from "./modules/kefu";
  16. /** note: submenu only apppear when children.length>=1
  17. * detail see https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html
  18. **/
  19. /**
  20. * hidden: true if `hidden:true` will not show in the sidebar(default is false)
  21. * alwaysShow: true if set true, will always show the root menu, whatever its child routes length
  22. // 详见 xt_permission.xt_filterAsyncRouter 函数的逻辑
  23. is_menu: false 加载路由时验证用的(即该路由是否要在侧边栏展示,需要展示的即需要),为 false 时表示该路由不需要进行权限验证
  24. * if not set alwaysShow, only more than one route under the children
  25. * it will becomes nested mode, otherwise not show the root menu
  26. * redirect: noredirect if `redirect:noredirect` will no redirct in the breadcrumb
  27. * name:'router-name' the name is used by <keep-alive> (must set!!!)
  28. * meta : {
  29. title: 'title' the name show in submenu and breadcrumb (recommend set)
  30. icon: 'svg-name' the icon show in the sidebar,
  31. noCache: true if true ,the page will no be cached(default is false)
  32. // 详见 xt_permission.xt_filterAsyncRouter 函数的逻辑
  33. is_menu: false 加载路由时验证用的,为 false 时表示该路由不需要进行权限验证
  34. hidden: false 加载路由时验证用的,is_menu 为true时才有作用,为 true 时表示该路由需要进行权限验证
  35. }
  36. **/
  37. var _constant_router_map = [
  38. {
  39. path: "/token/verify",
  40. component: () => import("@/scrm_pages/index/verify_token"),
  41. hidden: true
  42. },
  43. {
  44. path: "/404",
  45. component: () => import("@/views/errorPage/404"),
  46. hidden: true
  47. },
  48. {
  49. path: "/401",
  50. component: () => import("@/views/errorPage/401"),
  51. hidden: true
  52. },
  53. // 启始页面
  54. {
  55. path: "/startpage",
  56. component: () => import("@/kpa_pages/index/index")
  57. },
  58. // 登录页面
  59. {
  60. path: "/login",
  61. component: () => import("@/kpa_pages/login/login")
  62. },
  63. // 输入名字
  64. {
  65. path: "/getName",
  66. component: () => import("@/kpa_pages/getName/index")
  67. },
  68. // 已加入的团队
  69. {
  70. path: "/joinedGroup",
  71. component: () => import("@/kpa_pages/joinedGroup/index")
  72. },
  73. // 还没加入的团队
  74. {
  75. path: "/noJoinedGroup",
  76. component: () => import("@/kpa_pages/noJoinedGroup/index")
  77. },
  78. // 创建机构
  79. {
  80. path: "/createOrganization",
  81. component: () => import("@/kpa_pages/createOrganization/index")
  82. },
  83. // 首页
  84. {
  85. path: "/home",
  86. component: () => import("@/kpa_pages/home/index"),
  87. children: [
  88. {
  89. path: "/homeIndex",
  90. component: () => import("@/kpa_pages/homeIndex/index.vue")
  91. },
  92. {
  93. path: "/study",
  94. component: () => import("@/kpa_pages/study/index.vue")
  95. },
  96. {
  97. path: "/service",
  98. component: () => import("@/kpa_pages/service/index.vue")
  99. },
  100. {
  101. path: "/shop",
  102. component: () => import("@/kpa_pages/shop/index.vue")
  103. },
  104. {
  105. path: "/my",
  106. component: () => import("@/kpa_pages/my/index.vue")
  107. }
  108. ]
  109. },
  110. // 管理控制台
  111. {
  112. path: "/managementConsole",
  113. component: () => import("@/kpa_pages/managementConsole/index")
  114. },
  115. // 员工管理
  116. {
  117. path: "/staffManagement",
  118. component: () => import("@/kpa_pages/staffManagement/index")
  119. },
  120. // 编辑员工
  121. {
  122. path: "/editStaff",
  123. component: () => import("@/kpa_pages/editStaff/index")
  124. },
  125. // 新增员工
  126. {
  127. path: "/addStaff",
  128. component: () => import("@/kpa_pages/addStaff/index")
  129. },
  130. // 权限管理
  131. {
  132. path: "/privilegeManagement",
  133. component: () => import("@/kpa_pages/privilegeManagement/index")
  134. },
  135. // 新增角色
  136. {
  137. path: "/newAddRole",
  138. component: () => import("@/kpa_pages/newAddRole/index")
  139. },
  140. // 编辑角色
  141. {
  142. path: "/editRole",
  143. component: () => import("@/kpa_pages/editRole/index")
  144. },
  145. // 新增用户
  146. {
  147. path: "/newUser",
  148. component: () => import("@/kpa_pages/newUser/index")
  149. },
  150. // 员工列表
  151. {
  152. path: "/employeeList",
  153. component: () => import("@/kpa_pages/employeeList/index")
  154. },
  155. // 新增员工
  156. {
  157. path: "/newAddStaff",
  158. component: () => import("@/kpa_pages/newAddStaff/index")
  159. },
  160. // 设置工作台
  161. {
  162. path: "/setConsole",
  163. component: () => import("@/kpa_pages/setConsole/index")
  164. },
  165. // 机构信息修改
  166. {
  167. path: "/modifyOrganization",
  168. component: () => import("@/kpa_pages/modifyOrganization/index")
  169. },
  170. // 管理员转让
  171. {
  172. path: "/adminTransfer",
  173. component: () => import("@/kpa_pages/adminTransfer/index")
  174. },
  175. // 选择新管理员
  176. {
  177. path: "/chooseNewAdmin",
  178. component: () => import("@/kpa_pages/chooseNewAdmin/index")
  179. },
  180. // 新管理员
  181. {
  182. path: "/newAdmin",
  183. component: () => import("@/kpa_pages/newAdmin/index")
  184. },
  185. // 所有的检验检查
  186. {
  187. path: "/allCheck",
  188. component: () => import("@/kpa_pages/allCheck/index")
  189. },
  190. // 所有的医嘱管理
  191. {
  192. path: "/allDoctorManagement",
  193. component: () => import("@/kpa_pages/allDoctorManagement/index")
  194. },
  195. // 所有的干体重
  196. {
  197. path: "/allDryWeight",
  198. component: () => import("@/kpa_pages/allDryWeight/index")
  199. },
  200. // 所有的病程
  201. {
  202. path: "/allCourse",
  203. component: () => import("@/kpa_pages/allCourse/index")
  204. },
  205. // 所有的抢救记录
  206. {
  207. path: "/allRescue",
  208. component: () => import("@/kpa_pages/allRescue/index")
  209. },
  210. // 所有的宣教信息
  211. {
  212. path: "/allEducation",
  213. component: () => import("@/kpa_pages/allEducation/index")
  214. },
  215. // 所有的长期透析处方
  216. {
  217. path: "/allLongDialysis",
  218. component: () => import("@/kpa_pages/allLongDialysis/index")
  219. },
  220. // 所有的透析记录
  221. {
  222. path: "/allDialysisRecord",
  223. component: () => import("@/kpa_pages/allDialysisRecord/index")
  224. },
  225. // 所有的排班信息
  226. {
  227. path: "/allScheduling",
  228. component: () => import("@/kpa_pages/allScheduling/index")
  229. },
  230. // 患者管理
  231. {
  232. path: "/patientmanagement",
  233. component: () => import("@/kpa_pages/patientmanagement/index")
  234. },
  235. // s搜索
  236. {
  237. path: "/search",
  238. component: () => import("@/kpa_pages/search/index")
  239. },
  240. // 我的信息
  241. {
  242. path: "/myInfo",
  243. component: () => import("@/kpa_pages/myInfo/index")
  244. },
  245. // 组织信息
  246. {
  247. path: "/organizationInfo",
  248. component: () => import("@/kpa_pages/organizationInfo/index")
  249. },
  250. // 关于我们
  251. {
  252. path: "/aboutUs",
  253. component: () => import("@/kpa_pages/aboutUs/index")
  254. },
  255. // 反馈意见
  256. {
  257. path: "/feedBack",
  258. component: () => import("@/kpa_pages/feedBack/index")
  259. },
  260. // 透析功能配置
  261. {
  262. path: "/dialysisConfiguration",
  263. component: () => import("@/kpa_pages/dialysisConfiguration/index")
  264. },
  265. // 模块功能配置-患者中心
  266. {
  267. path: "/patientCenter",
  268. component: () => import("@/kpa_pages/patientCenter/index")
  269. },
  270. // 模块功能配置-排班管理
  271. {
  272. path: "/scheduleManagement",
  273. component: () => import("@/kpa_pages/scheduleManagement/index")
  274. },
  275. // 模块功能配置-透析管理
  276. {
  277. path: "/dialysisManagement",
  278. component: () => import("@/kpa_pages/dialysisManagement/index")
  279. },
  280. // 模块功能配置-签到称重
  281. {
  282. path: "/checkInWeighing",
  283. component: () => import("@/kpa_pages/checkInWeighing/index")
  284. },
  285. // 模块功能配置-库存管理
  286. {
  287. path: "/inventoryManagement",
  288. component: () => import("@/kpa_pages/inventoryManagement/index")
  289. },
  290. // 模块功能配置-质控管理
  291. {
  292. path: "/qualityControlManagement",
  293. component: () => import("@/kpa_pages/qualityControlManagement/index")
  294. },
  295. // 模块功能配置-慢病管理
  296. {
  297. path: "/chronicDisease",
  298. component: () => import("@/kpa_pages/chronicDisease/index")
  299. },
  300. // 模块功能配置-SCRM
  301. {
  302. path: "/scrm",
  303. component: () => import("@/kpa_pages/SCRM/index")
  304. },
  305. // 模块功能配置-SCRM-会员管理
  306. {
  307. path: "/membershipManagement",
  308. component: () => import("@/kpa_pages/membershipManagement/index")
  309. },
  310. // 模块功能配置-SCRM-营销工具
  311. {
  312. path: "/marketingTools",
  313. component: () => import("@/kpa_pages/marketingTools/index")
  314. },
  315. // 模块功能配置-SCRM-营销工具
  316. {
  317. path: "/marketingTools",
  318. component: () => import("@/kpa_pages/marketingTools/index")
  319. },
  320. // 模块功能配置-SCRM-文章管理
  321. {
  322. path: "/articleManagement",
  323. component: () => import("@/kpa_pages/articleManagement/index")
  324. },
  325. // 模块功能配置-SCRM-微网站
  326. {
  327. path: "/microWebsite",
  328. component: () => import("@/kpa_pages/microWebsite/index")
  329. },
  330. // 模块功能配置-设备管理
  331. {
  332. path: "/deviceManagement",
  333. component: () => import("@/kpa_pages/deviceManagement/index")
  334. },
  335. // 模块功能配置-质控上报
  336. {
  337. path: "/qualityControlReport",
  338. component: () => import("@/kpa_pages/qualityControlReport/index")
  339. },
  340. // 注册页面
  341. {
  342. path: "/register",
  343. component: () => import("@/kpa_pages/register/register")
  344. },
  345. // 机构信息
  346. {
  347. path: "/orginfomation",
  348. component: () => import("@/kpa_pages/agecyInformation/index"),
  349. // eslint-disable-next-line no-irregular-whitespace
  350. children: [
  351. {
  352. // eslint-disable-next-line no-irregular-whitespace
  353. path: "/orginfomation/home",
  354. // eslint-disable-next-line no-irregular-whitespace
  355. component: () => import("@/kpa_pages/home/index")
  356. }
  357. ]
  358. },
  359. {
  360. path: "/forgetpassword",
  361. component: () => import("@/kpa_pages/forgetpassword/index")
  362. },
  363. {
  364. path: "/forgetpasswordnext",
  365. component: () => import("@/kpa_pages/forgetpassword/forget")
  366. },
  367. {
  368. path: "/nopassword",
  369. component: () => import("@/kpa_pages/nopassword/index")
  370. },
  371. {
  372. path: "/addpatient",
  373. component: () => import("@/kpa_pages/addpatient/index")
  374. },
  375. {
  376. path: "/editpatient",
  377. component: () => import("@/kpa_pages/editPatient/index")
  378. },
  379. {
  380. path: "/patientdetail",
  381. component: () => import("@/kpa_pages/patientDetail/index")
  382. },
  383. // 医嘱管理
  384. {
  385. path: "/doctoradvice",
  386. component: () => import("@/kpa_pages/doctorAdvice/index")
  387. },
  388. // 新增医嘱
  389. {
  390. path: "/newAddDoctor",
  391. component: () => import("@/kpa_pages/doctorAdvice/newAddDoctor")
  392. },
  393. {
  394. path: "/",
  395. component: () => import("@/kpa_pages/index/index")
  396. },
  397. // 病程管理
  398. {
  399. path: "/coursemanagement",
  400. component: () => import("@/kpa_pages/courseManagement/index")
  401. },
  402. // 抢救记录
  403. {
  404. path: "/saverecord",
  405. component: () => import("@/kpa_pages/saveRecord/index")
  406. },
  407. // 检验检查
  408. {
  409. path: "/check",
  410. component: () => import("@/kpa_pages/check/index")
  411. },
  412. // 血管通路
  413. // 长期处方
  414. {
  415. path: "/longDialysis",
  416. component: () => import("@/kpa_pages/longDialysis/index")
  417. },
  418. // 透析记录
  419. {
  420. path: "/dialysisrecord",
  421. component: () => import("@/kpa_pages/dialysisRecord/index")
  422. },
  423. // 耗材使用
  424. // 排班信息
  425. {
  426. path: "/scheduleInformation",
  427. component: () => import("@/kpa_pages/scheduleInformation")
  428. },
  429. // 宣教信息
  430. {
  431. path: "/missionInformation",
  432. component: () => import("@/kpa_pages/missionInformation/index")
  433. }
  434. ];
  435. var _asy_router_map = [];
  436. var is_asy_router = process.env.NODE_ENV === "production"; // true; 设置为 true 强制进行路由验证
  437. if (!is_asy_router) {
  438. _constant_router_map = _constant_router_map.concat(_asy_router_map);
  439. _asy_router_map = [];
  440. } else {
  441. }
  442. export const xt_constantRouterMap = _constant_router_map;
  443. export const xt_asyncRouterMap = _asy_router_map;
  444. export default new Router({
  445. // mode: 'history', // require service support
  446. scrollBehavior: () => ({
  447. y: 0
  448. }),
  449. routes: xt_constantRouterMap
  450. });