index_路由未分离前.js 40KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974
  1. import Vue from 'vue'
  2. import Router from 'vue-router'
  3. Vue.use(Router)
  4. /* Layout */
  5. import Layout from '@/views/layout/Layout'
  6. /** note: submenu only apppear when children.length>=1
  7. * detail see https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html
  8. **/
  9. /**
  10. * hidden: true if `hidden:true` will not show in the sidebar(default is false)
  11. * alwaysShow: true if set true, will always show the root menu, whatever its child routes length
  12. * if not set alwaysShow, only more than one route under the children
  13. * it will becomes nested mode, otherwise not show the root menu
  14. * redirect: noredirect if `redirect:noredirect` will no redirct in the breadcrumb
  15. * name:'router-name' the name is used by <keep-alive> (must set!!!)
  16. * meta : {
  17. roles: ['admin','editor'] will control the page roles (you can set multiple roles)
  18. title: 'title' the name show in submenu and breadcrumb (recommend set)
  19. icon: 'svg-name' the icon show in the sidebar,
  20. noCache: true if true ,the page will no be cached(default is false)
  21. }
  22. **/
  23. export const xt_constantRouterMap = [
  24. // { path: '/login', component: () => import('@/views/login/index'), hidden: true },
  25. { path: '/token/verify', component: () => import('@/xt_pages/index/verify_token'), hidden: true },
  26. { path: '/404', component: () => import('@/views/errorPage/404'), hidden: true },
  27. { path: '/401', component: () => import('@/views/errorPage/401'), hidden: true },
  28. {
  29. path: '',
  30. component: Layout,
  31. redirect: '/home',
  32. children: [{
  33. path: '/home',
  34. component: () => import('@/xt_pages/home/index'),
  35. name: 'home',
  36. meta: { title: 'home', icon: 'dashboard', noCache: true }
  37. }]
  38. },
  39. {
  40. path: '/service',
  41. component: Layout,
  42. // redirect: '/service',
  43. hidden: true,
  44. is_menu: false,
  45. meta: { title: 'service', icon: 'shebei' },
  46. children: [{
  47. path: '/service',
  48. component: () => import('@/xt_pages/service/index'),
  49. hidden: true,
  50. is_menu: false,
  51. name: 'service',
  52. meta: { title: 'service', icon: 'shebei', noCache: true }
  53. }, {
  54. path: '/service/invoice',
  55. component: () => import('@/xt_pages/service/invoice'),
  56. hidden: true,
  57. is_menu: false,
  58. name: 'invoice',
  59. meta: { title: 'invoice', icon: 'shebei', noCache: true }
  60. }, {
  61. path: '/service/invoice/apply',
  62. component: () => import('@/xt_pages/service/invoiceApply'),
  63. hidden: true,
  64. is_menu: false,
  65. name: 'invoiceApply',
  66. meta: { title: 'invoiceApply', icon: 'shebei', noCache: true }
  67. },
  68. {
  69. path: '/servicePay',
  70. component: () => import('@/xt_pages/service/servicePay'),
  71. hidden: true,
  72. name: 'servicePay',
  73. meta: { title: 'servicePay' }
  74. },
  75. {
  76. path: '/payType',
  77. component: () => import('@/xt_pages/service/payType'),
  78. hidden: true,
  79. name: 'payType',
  80. meta: { title: 'payType' }
  81. },
  82. {
  83. path: '/weChatPay',
  84. component: () => import('@/xt_pages/service/weChatPay'),
  85. hidden: true,
  86. name: 'weChatPay',
  87. meta: { title: 'weChatPay' }
  88. },
  89. {
  90. path: '/service/completeOrder',
  91. component: () => import('@/xt_pages/service/completeOrder'),
  92. hidden: true,
  93. name: 'completeOrder',
  94. meta: { title: 'completeOrder' }
  95. }, {
  96. path: '/service/buy',
  97. component: () => import('@/xt_pages/service/serviceOrder'),
  98. hidden: true,
  99. is_menu: false,
  100. name: 'serviceOrder',
  101. meta: { title: 'serviceOrder', icon: 'shebei', noCache: true }
  102. }, {
  103. path: '/order',
  104. component: () => import('@/xt_pages/service/orderRecord'),
  105. hidden: true,
  106. is_menu: false,
  107. name: 'orderRecord',
  108. meta: { title: 'orderRecord', icon: 'shebei', noCache: true }
  109. }, {
  110. path: '/service/recordList',
  111. component: () => import('@/xt_pages/service/serviceRecord'),
  112. hidden: true,
  113. is_menu: false,
  114. name: 'recordList',
  115. meta: { title: 'recordList', icon: 'shebei', noCache: true }
  116. }
  117. ]
  118. }
  119. // ////////////////////////////
  120. // 本地开始
  121. // ///////////////////////////
  122. // {
  123. // path: '/patients',
  124. // component: Layout,
  125. // redirect: 'noredirect',
  126. // name: 'User',
  127. // meta: {
  128. // title: 'user',
  129. // icon: 'bingren'
  130. // },
  131. // children: [
  132. // {
  133. // path: '/patients/patients',
  134. // component: () => import('@/xt_pages/user/patients'),
  135. // name: 'Patient',
  136. // meta: { title: 'patient', noCache: true }
  137. // },
  138. // {
  139. // path: '/patients/create',
  140. // component: () => import('@/xt_pages/user/createPatient'),
  141. // name: 'createPatient',
  142. // meta: { title: 'createPatient', noCache: true }
  143. // },
  144. // {
  145. // path: '/patients/patient/:id',
  146. // component: () => import('@/xt_pages/user/patientInfo'),
  147. // hidden: true,
  148. // is_menu: false,
  149. // name: 'patient Page',
  150. // meta: { title: 'patientPage', noCache: true }
  151. // },
  152. // {
  153. // path: '/patients/patient/:id/edit',
  154. // component: () => import('@/xt_pages/user/editPatient'),
  155. // hidden: true,
  156. // is_menu: false,
  157. // name: 'Edit Patient',
  158. // meta: { title: 'editPatient', noCache: true }
  159. // },
  160. // {
  161. // path: '/patients/patient/:id/dialysisSolution',
  162. // component: () => import('@/xt_pages/user/dialysisSolution'),
  163. // hidden: true,
  164. // is_menu: false,
  165. // name: 'dialysisSolution',
  166. // meta: { title: 'dialysisSolution', noCache: true }
  167. // },
  168. // {
  169. // path: '/patients/patient/:id/weight',
  170. // component: () => import('@/xt_pages/user/weight'),
  171. // hidden: true,
  172. // is_menu: false,
  173. // name: 'weight',
  174. // meta: { title: 'weight', noCache: true }
  175. // },
  176. // {
  177. // path: '/patients/patient/:id/dialysisRecord',
  178. // component: () => import('@/xt_pages/user/dialysisRecord'),
  179. // hidden: true,
  180. // is_menu: false,
  181. // name: 'dialysisRecord',
  182. // meta: { title: 'dialysisRecord', noCache: true }
  183. // },
  184. // {
  185. // path: '/patients/patient/:id/scheduling',
  186. // component: () => import('@/xt_pages/user/scheduling'),
  187. // hidden: true,
  188. // is_menu: false,
  189. // name: 'scheduling',
  190. // meta: { title: 'scheduling', noCache: true }
  191. // },
  192. // {
  193. // path: '/patients/patient/:id/doctorAdvice',
  194. // component: () => import('@/xt_pages/user/doctorAdvice'),
  195. // hidden: true,
  196. // is_menu: false,
  197. // name: 'doctorAdvice',
  198. // meta: { title: 'doctorAdvice', noCache: true }
  199. // },
  200. // {
  201. // path: '/patients/inspection',
  202. // component: () => import('@/xt_pages/user/inspection'),
  203. // hidden: true,
  204. // is_menu: false,
  205. // name: 'Inspection',
  206. // meta: { title: 'inspection', noCache: true }
  207. // },
  208. // {
  209. // path: '/patients/course',
  210. // component: () => import('@/xt_pages/user/courseOfDisease'),
  211. // hidden: true,
  212. // is_menu: false,
  213. // name: 'CourseOfDiseaseManage',
  214. // meta: { title: 'CourseOfDiseaseManage', noCache: true }
  215. // },
  216. // {
  217. // path: '/patients/rescue',
  218. // component: () => import('@/xt_pages/user/rescueRecord'),
  219. // hidden: true,
  220. // is_menu: false,
  221. // name: 'RescueRecord',
  222. // meta: { title: 'RescueRecord', noCache: true }
  223. // },
  224. // {
  225. // path: '/patients/patient/:id/proeducation',
  226. // component: () => import('@/xt_pages/user/proeducation'),
  227. // hidden: true,
  228. // is_menu: false,
  229. // name: 'proeducation',
  230. // meta: { title: 'proeducation', noCache: true }
  231. // }
  232. // ]
  233. // },
  234. // {
  235. // path: '/workforce',
  236. // component: Layout,
  237. // redirect: 'noredirect',
  238. // name: 'workforce',
  239. // meta: {
  240. // title: 'workforce',
  241. // icon: 'paiban'
  242. // },
  243. // children: [
  244. // {
  245. // path: '/workforce/appointment',
  246. // component: () => import('@/xt_pages/workforce/appointment'),
  247. // name: 'appointment',
  248. // meta: { title: 'appointment', noCache: true }
  249. // },
  250. // {
  251. // path: '/workforce/sign',
  252. // component: () => import('@/xt_pages/workforce/sign'),
  253. // hidden: true,
  254. // is_menu: false,
  255. // name: 'workforcesign',
  256. // meta: { title: 'sign', noCache: true }
  257. // },
  258. // {
  259. // path: '/workforce/remind',
  260. // component: () => import('@/xt_pages/workforce/remind'),
  261. // name: 'remind',
  262. // meta: { title: 'remind', noCache: true }
  263. // },
  264. // {
  265. // path: '/workforce/template',
  266. // component: () => import('@/xt_pages/workforce/template'),
  267. // name: 'workforce_template',
  268. // hidden: true,
  269. // is_menu: false,
  270. // meta: { title: 'workforce_template', noCache: true }
  271. // },
  272. // {
  273. // path: '/workforce/schedule/print',
  274. // component: () => import('@/xt_pages/workforce/schedule_print'),
  275. // name: 'schedule_print',
  276. // hidden: true,
  277. // is_menu: false,
  278. // meta: { title: 'schedule_print', noCache: true }
  279. // }
  280. // ]
  281. // },
  282. // {
  283. // path: '/sign',
  284. // component: Layout,
  285. // redirct: '/sign/index',
  286. // children: [{
  287. // path: '/sign',
  288. // component: () => import('@/xt_pages/sign/index'),
  289. // name: 'sign',
  290. // meta: { title: 'signWeight', icon: 'sign', noCache: true }
  291. // }]
  292. // },
  293. // {
  294. // path: '/dialysis/',
  295. // component: Layout,
  296. // redirect: 'noredirect',
  297. // name: 'dialysis',
  298. // meta: {
  299. // title: 'dialysis',
  300. // icon: 'touxi'
  301. // },
  302. // children: [
  303. // { path: '/dialysis/dialysisrecord', component: () => import('@/xt_pages/dialysis/schedualPatient'), name: '透析记录', meta: { title: '透析记录' }},
  304. // {
  305. // path: '/dialysis/record/:id',
  306. // component: () => import('@/xt_pages/dialysis/dialysisPage'),
  307. // hidden: true,
  308. // is_menu: false,
  309. // name: 'paper',
  310. // meta: { title: 'paper', noCache: true }
  311. // },
  312. // {
  313. // path: '/dialysis/print',
  314. // component: () => import('@/xt_pages/dialysis/dialysisPrintOrder'),
  315. // hidden: true,
  316. // is_menu: false,
  317. // name: 'dialysisPrintOrder',
  318. // meta: { title: 'dialysisPrintOrder', noCache: true }
  319. // },
  320. // // { path: 'advice', component: () => import('@/xt_pages/dialysis/doctorAdvice'), name: 'advice', meta: { title: 'advice' }},
  321. // // { path: 'prepare', component: () => import('@/xt_pages/dialysis/dialysisPrepare'), name: 'prepare', meta: { title: 'prepare' }},
  322. // { path: '/dialysis/watch', component: () => import('@/xt_pages/dialysis/bloodPresssWatch'), name: 'watch', meta: { title: 'watch' }},
  323. // { path: '/dialysis/details', component: () => import('@/xt_pages/dialysis/details'), name: 'details', meta: { title: 'details' }, hidden: true, is_menu: false },
  324. // {
  325. // path: '/dialysis/print/batch',
  326. // component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order'),
  327. // hidden: true,
  328. // is_menu: false,
  329. // name: 'dialysis_batch_print',
  330. // meta: { title: '批量打印', noCache: true }
  331. // },
  332. // { path: '/dialysis/board', component: () => import('@/xt_pages/dialysis/bulletinBoard'), name: '数据看板', meta: { title: '数据看板' }}
  333. // ]
  334. // },
  335. // {
  336. // path: '/stock/',
  337. // component: Layout,
  338. // redirect: 'noredirect',
  339. // name: 'stockManage',
  340. // meta: { title: 'stockManage', icon: 'stock' },
  341. // children: [
  342. // {
  343. // path: '/stock/config',
  344. // component: () => import('@/xt_pages/stock/index'),
  345. // name: 'config',
  346. // meta: { title: 'config' }
  347. // },
  348. // {
  349. // path: '/stock/in',
  350. // component: () => import('@/xt_pages/stock/stockInOrder'),
  351. // name: 'stockInOrder',
  352. // meta: { title: 'stockInOrder', noCache: true }
  353. // }, {
  354. // path: '/stock/in/other',
  355. // component: () => import('@/xt_pages/stock/otherStockInOrder'),
  356. // name: 'otherStockInOrder',
  357. // meta: { title: 'otherStockInOrder', noCache: true }
  358. // }, {
  359. // path: '/stock/return',
  360. // component: () => import('@/xt_pages/stock/salesReturnOrder'),
  361. // name: 'salesReturnOrder',
  362. // meta: { title: 'salesReturnOrder', noCache: true }
  363. // }, {
  364. // path: '/stock/return/other',
  365. // component: () => import('@/xt_pages/stock/otherSalesReturnOrder'),
  366. // name: 'otherSalesReturnOrder',
  367. // meta: { title: 'otherSalesReturnOrder', noCache: true }
  368. // },
  369. // {
  370. // path: '/stock/out',
  371. // component: () => import('@/xt_pages/stock/stockOutOrder'),
  372. // name: 'stockOutOrder',
  373. // meta: { title: 'stockOutOrder', noCache: true }
  374. // }, {
  375. // path: '/stock/out/other',
  376. // component: () => import('@/xt_pages/stock/otherStockOutOrder'),
  377. // name: 'otherStockOutOrder',
  378. // meta: { title: 'otherStockOutOrder', noCache: true }
  379. // }, {
  380. // path: '/stock/cancel',
  381. // component: () => import('@/xt_pages/stock/cancelStockOrder'),
  382. // name: 'cancelStockOrder',
  383. // meta: { title: 'cancelStockOrder', noCache: true }
  384. // }, {
  385. // path: '/stock/cancel/other',
  386. // component: () => import('@/xt_pages/stock/otherCancelStockOrder'),
  387. // name: 'otherCancelStockOrder',
  388. // meta: { title: 'otherCancelStockOrder', noCache: true }
  389. // }, {
  390. // path: '/stock/query',
  391. // component: () => import('@/xt_pages/stock/stockQuery'),
  392. // name: 'stockQuery',
  393. // meta: { title: 'stockQuery' }
  394. // }, {
  395. // path: '/stock/detail',
  396. // component: () => import('@/xt_pages/stock/stockDetailIndex'),
  397. // name: 'stockDetail',
  398. // meta: { title: 'stockDetail' }
  399. // },
  400. // {
  401. // path: '/stock/in/add',
  402. // component: () => import('@/xt_pages/stock/stockInOrderAdd'),
  403. // name: 'stockInOrderAdd',
  404. // hidden: true,
  405. // is_menu: false,
  406. // meta: { title: 'stockInOrderAdd' }
  407. // }, {
  408. // path: '/stock/in/detail',
  409. // component: () => import('@/xt_pages/stock/stockInDetail'),
  410. // name: 'stockInDetail',
  411. // hidden: true,
  412. // is_menu: false,
  413. // meta: { title: 'stockInDetail' }
  414. // }, {
  415. // path: '/stock/return/detail',
  416. // component: () => import('@/xt_pages/stock/salesReturnDetail'),
  417. // name: 'salesReturnDetail',
  418. // hidden: true,
  419. // is_menu: false,
  420. // meta: { title: 'salesReturnDetail' }
  421. // }, {
  422. // path: '/stock/return/add',
  423. // component: () => import('@/xt_pages/stock/salesReturnOrderAdd'),
  424. // name: 'salesReturnOrderAdd',
  425. // hidden: true,
  426. // is_menu: false,
  427. // meta: { title: 'salesReturnOrderAdd' }
  428. // }, {
  429. // path: '/stock/out/add',
  430. // component: () => import('@/xt_pages/stock/stockOutOrderAdd'),
  431. // name: 'stockOutOrderAdd',
  432. // hidden: true,
  433. // is_menu: false,
  434. // meta: { title: 'stockOutOrderAdd' }
  435. // }, {
  436. // path: '/stock/out/detail',
  437. // component: () => import('@/xt_pages/stock/stockOutDetail'),
  438. // name: 'stockOutDetail',
  439. // hidden: true,
  440. // is_menu: false,
  441. // meta: { title: 'stockOutDetail' }
  442. // }, {
  443. // path: '/stock/cancel/add',
  444. // component: () => import('@/xt_pages/stock/cancelStockOrderAdd'),
  445. // name: 'cancelStockOrderAdd',
  446. // hidden: true,
  447. // is_menu: false,
  448. // meta: { title: 'cancelStockOrderAdd' }
  449. // }, {
  450. // path: '/stock/cancel/detail',
  451. // component: () => import('@/xt_pages/stock/cancelStockDetail'),
  452. // name: 'cancelStockDetail',
  453. // hidden: true,
  454. // is_menu: false,
  455. // meta: { title: 'cancelStockDetail' }
  456. // }
  457. // ]
  458. // },
  459. // {
  460. // path: '/qcd',
  461. // component: Layout,
  462. // redirect: '/qcd/dialysistotal',
  463. // name: 'qcd',
  464. // alwaysShow: true,
  465. // meta: { title: '科室质控', icon: 'statistics' },
  466. // children: [
  467. // { path: '/statistics/index', component: () => import('@/xt_pages/statistics/index'), name: 'statistics', meta: { title: 'statistics' }},
  468. // { path: '/qcd/dialysistotal', component: () => import('@/xt_pages/qcd/dialysisTotal'), name: 'dialysistotal', meta: { title: '透析总量' }},
  469. // { path: '/qcd/processindicators', component: () => import('@/xt_pages/qcd/processIndicators'), name: 'processIndicators', meta: { title: '过程指标' }},
  470. // { path: '/qcd/outcomeIndicators/control', component: () => import('@/xt_pages/qcd/outcomeIndicators/control'), name: 'outcomeIndicatorsControl', meta: { title: '结果指标' }},
  471. // { path: '/qcd/outcomeIndicators/query', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/outcomeIndicators/query'), name: 'outcomeIndicatorsQuery', meta: { title: '指标查询' }},
  472. // { path: '/qcd/patientanalysis/total', component: () => import('@/xt_pages/qcd/patientAnalysis/total'), name: 'patientAnalysisTotal', meta: { title: '患者分析' }},
  473. // { path: '/qcd/patientanalysis/weight', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/weight'), name: 'patientAnalysisWeight', meta: { title: '体重分析' }},
  474. // { path: '/qcd/patientanalysis/bloodpressure', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/bloodPressure'), name: 'patientAnalysisBloodPressure', meta: { title: '血压分析' }},
  475. // { path: '/qcd/patientanalysis/dialysisage', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/dialysisAge'), name: 'patientAnalysisDialysisAge', meta: { title: '透析龄分析' }},
  476. // { path: '/qcd/patientanalysis/lapseto', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/lapseto'), name: 'patientAnalysisLapseto', meta: { title: '转归分析' }},
  477. // { path: '/qcd/patientanalysis/complication', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/complication'), name: 'patientAnalysisComplication', meta: { title: '并发症分析' }},
  478. // { path: '/qcd/patientanalysis/infectiousdiseases', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/infectiousDiseases'), name: 'patientAnalysisInfectiousDiseases', meta: { title: '传染病分析' }},
  479. // { path: '/qcd/pa/person/lapseto', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/lapseto'), name: 'paPersonLapseto', meta: { title: '转归' }},
  480. // { path: '/qcd/pa/person/weight', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/weight'), name: 'paPersonWeight', meta: { title: '体重' }},
  481. // { path: '/qcd/pa/person/bloodpressure', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/bloodPressure'), name: 'paPersonBloodPressure', meta: { title: '血压' }},
  482. // { path: '/qcd/pa/person/indicators', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/indicators'), name: 'paPersonIndicators', meta: { title: '指标控制' }},
  483. // { path: '/qcd/pa/person/oralmedicine', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/oralMedicine'), name: 'paPersonOralMedicine', meta: { title: '口服药' }}
  484. // ]
  485. // },
  486. // {
  487. // path: '/data/',
  488. // component: Layout,
  489. // redirect: 'noredirect',
  490. // name: 'data',
  491. // meta: { title: 'data_dictionary', icon: 'excel' },
  492. // children: [
  493. // { path: '/data/dictionary', component: () => import('@/xt_pages/data/index'), name: 'dictionary', meta: { title: 'field_config' }},
  494. // { path: '/data/template', component: () => import('@/xt_pages/data/template'), name: 'template', meta: { title: 'template' }},
  495. // { path: '/data/druguse', component: () => import('@/xt_pages/data/druguseTemplate'), name: 'druguse', meta: { title: 'druguse' }}
  496. // ]
  497. // },
  498. // {
  499. // path: '/device',
  500. // component: Layout,
  501. // redirect: '/device/main',
  502. // name: 'device',
  503. // alwaysShow: true,
  504. // meta: { title: 'deviceManage', icon: 'shebei' },
  505. // children: [
  506. // { path: '/device/zones', component: () => import('@/xt_pages/device/zone_main'), name: 'deviceZoneManage', meta: { title: 'deviceZoneManage' }},
  507. // { path: '/device/groups', component: () => import('@/xt_pages/device/group_main'), name: 'deviceGroupManage', meta: { title: 'deviceGroupManage' }},
  508. // { path: '/device/numbers', component: () => import('@/xt_pages/device/number_main'), name: 'deviceNumberManage', meta: { title: 'deviceNumberManage' }},
  509. // { path: '/device/main', component: () => import('@/xt_pages/device/main'), name: 'dialysisMachineManage', meta: { title: 'dialysisMachineManage' }}
  510. // ]
  511. // },
  512. // {
  513. // path: '/role',
  514. // component: Layout,
  515. // redirect: '/role/admin/manage',
  516. // name: 'role',
  517. // alwaysShow: true,
  518. // meta: { title: 'permissionManage', icon: 'role' },
  519. // children: [
  520. // { path: '/role/admin/manage', component: () => import('@/xt_pages/role/admin'), name: 'adminManage', meta: { title: 'adminManage' }},
  521. // { path: '/role/manage', component: () => import('@/xt_pages/role/role'), name: 'roleManage', meta: { title: 'roleManage' }},
  522. // { path: '/role/admin/create', component: () => import('@/xt_pages/role/CreateAdmin'), name: 'addAdmin', meta: { title: 'addAdmin', noCache: true }, hidden: true, is_menu: false },
  523. // { path: '/role/admin/edit', component: () => import('@/xt_pages/role/EditAdmin'), name: 'editAdmin', meta: { title: 'editAdmin', noCache: true }, hidden: true, is_menu: false },
  524. // { path: '/role/perview', component: () => import('@/xt_pages/role/EditPerview'), name: 'setupPerview', meta: { title: 'setupPerview', noCache: true }, hidden: true, is_menu: false },
  525. // { path: '/role/admin/specialpermission', component: () => import('@/xt_pages/role/special_permission'), name: 'special_permission_manage', meta: { title: 'special_permission_manage' }}
  526. // ]
  527. // },
  528. // {
  529. // path: '/fullscreenboard',
  530. // component: () => import('@/xt_pages/fullscreenboard/index'),
  531. // hidden: true
  532. // }
  533. // /////////////本地要end/
  534. ]
  535. export default new Router({
  536. // mode: 'history', // require service support
  537. scrollBehavior: () => ({ y: 0 }),
  538. routes: xt_constantRouterMap
  539. })
  540. export const xt_asyncRouterMap = [
  541. // //////////////////////////////////线在开始
  542. {
  543. path: '/patients',
  544. component: Layout,
  545. redirect: 'noredirect',
  546. name: 'User',
  547. alwaysShow: true,
  548. meta: {
  549. title: 'user',
  550. icon: 'bingren'
  551. },
  552. children: [
  553. {
  554. path: '/patients/patients',
  555. component: () => import('@/xt_pages/user/patients'),
  556. name: 'Patient',
  557. meta: { title: 'patient', noCache: true }
  558. },
  559. {
  560. path: '/patients/create',
  561. component: () => import('@/xt_pages/user/createPatient'),
  562. name: 'createPatient',
  563. meta: { title: 'createPatient', noCache: true }
  564. },
  565. {
  566. path: '/patients/patient/:id',
  567. component: () => import('@/xt_pages/user/patientInfo'),
  568. hidden: true,
  569. is_menu: false,
  570. name: 'patient Page',
  571. meta: { title: 'patientPage', noCache: true }
  572. },
  573. {
  574. path: '/patients/patient/:id/edit',
  575. component: () => import('@/xt_pages/user/editPatient'),
  576. hidden: true,
  577. is_menu: false,
  578. name: 'Edit Patient',
  579. meta: { title: 'editPatient', noCache: true }
  580. },
  581. {
  582. path: '/patients/patient/:id/dialysisSolution',
  583. component: () => import('@/xt_pages/user/dialysisSolution'),
  584. hidden: true,
  585. is_menu: false,
  586. name: 'dialysisSolution',
  587. meta: { title: 'dialysisSolution', noCache: true }
  588. },
  589. {
  590. path: '/patients/patient/:id/weight',
  591. component: () => import('@/xt_pages/user/weight'),
  592. hidden: true,
  593. is_menu: false,
  594. name: 'weight',
  595. meta: { title: 'weight', noCache: true }
  596. },
  597. {
  598. path: '/patients/patient/:id/dialysisRecord',
  599. component: () => import('@/xt_pages/user/dialysisRecord'),
  600. hidden: true,
  601. is_menu: false,
  602. name: 'dialysisRecord',
  603. meta: { title: 'dialysisRecord', noCache: true }
  604. },
  605. {
  606. path: '/patients/patient/:id/scheduling',
  607. component: () => import('@/xt_pages/user/scheduling'),
  608. hidden: true,
  609. is_menu: false,
  610. name: 'scheduling',
  611. meta: { title: 'scheduling', noCache: true }
  612. },
  613. {
  614. path: '/patients/patient/:id/doctorAdvice',
  615. component: () => import('@/xt_pages/user/doctorAdvice'),
  616. hidden: true,
  617. is_menu: false,
  618. name: 'doctorAdvice',
  619. meta: { title: 'doctorAdvice', noCache: true }
  620. },
  621. {
  622. path: '/patients/inspection',
  623. component: () => import('@/xt_pages/user/inspection'),
  624. hidden: true,
  625. is_menu: false,
  626. name: 'Inspection',
  627. meta: { title: 'inspection', noCache: true }
  628. },
  629. {
  630. path: '/patients/course',
  631. component: () => import('@/xt_pages/user/courseOfDisease'),
  632. hidden: true,
  633. is_menu: false,
  634. name: 'CourseOfDiseaseManage',
  635. meta: { title: 'CourseOfDiseaseManage', noCache: true }
  636. },
  637. {
  638. path: '/patients/rescue',
  639. component: () => import('@/xt_pages/user/rescueRecord'),
  640. hidden: true,
  641. is_menu: false,
  642. name: 'RescueRecord',
  643. meta: { title: 'RescueRecord', noCache: true }
  644. },
  645. {
  646. path: '/patients/patient/:id/proeducation',
  647. component: () => import('@/xt_pages/user/proeducation'),
  648. hidden: true,
  649. is_menu: false,
  650. name: 'proeducation',
  651. meta: { title: 'proeducation', noCache: true }
  652. }
  653. ]
  654. },
  655. {
  656. path: '/workforce',
  657. component: Layout,
  658. redirect: 'noredirect',
  659. name: 'workforce',
  660. alwaysShow: true,
  661. meta: {
  662. title: 'workforce',
  663. icon: 'paiban'
  664. },
  665. children: [
  666. {
  667. path: '/workforce/appointment',
  668. component: () => import('@/xt_pages/workforce/appointment'),
  669. name: 'appointment',
  670. meta: { title: 'appointment', noCache: true }
  671. },
  672. {
  673. path: '/workforce/sign',
  674. component: () => import('@/xt_pages/workforce/sign'),
  675. hidden: true,
  676. is_menu: false,
  677. name: 'workforcesign',
  678. meta: { title: 'sign', noCache: true }
  679. },
  680. {
  681. path: '/workforce/remind',
  682. component: () => import('@/xt_pages/workforce/remind'),
  683. name: 'remind',
  684. meta: { title: 'remind', noCache: true }
  685. },
  686. {
  687. path: '/workforce/template',
  688. component: () => import('@/xt_pages/workforce/template'),
  689. name: 'workforce_template',
  690. hidden: true,
  691. is_menu: false,
  692. meta: { title: 'workforce_template', noCache: true }
  693. },
  694. {
  695. path: '/workforce/schedule/print',
  696. component: () => import('@/xt_pages/workforce/schedule_print'),
  697. name: 'schedule_print',
  698. hidden: true,
  699. is_menu: false,
  700. meta: { title: 'schedule_print', noCache: true }
  701. }
  702. ]
  703. },
  704. {
  705. path: '/sign',
  706. component: Layout,
  707. redirct: '/sign/index',
  708. children: [{
  709. path: '/sign',
  710. component: () => import('@/xt_pages/sign/index'),
  711. name: 'sign',
  712. meta: { title: 'signWeight', icon: 'sign', noCache: true }
  713. }]
  714. },
  715. {
  716. path: '/dialysis/',
  717. component: Layout,
  718. redirect: 'noredirect',
  719. name: 'dialysis',
  720. alwaysShow: true,
  721. meta: {
  722. title: 'dialysis',
  723. icon: 'touxi'
  724. },
  725. children: [
  726. { path: '/dialysis/dialysisrecord', component: () => import('@/xt_pages/dialysis/schedualPatient'), name: '透析记录', meta: { title: '透析记录' }},
  727. {
  728. path: '/dialysis/record/:id',
  729. component: () => import('@/xt_pages/dialysis/dialysisPage'),
  730. hidden: true,
  731. is_menu: false,
  732. name: 'paper',
  733. meta: { title: 'paper', noCache: true }
  734. },
  735. {
  736. path: '/dialysis/print',
  737. component: () => import('@/xt_pages/dialysis/dialysisPrintOrder'),
  738. hidden: true,
  739. is_menu: false,
  740. name: 'dialysisPrintOrder',
  741. meta: { title: 'dialysisPrintOrder', noCache: true }
  742. },
  743. // { path: 'advice', component: () => import('@/xt_pages/dialysis/doctorAdvice'), name: 'advice', meta: { title: 'advice' }},
  744. // { path: 'prepare', component: () => import('@/xt_pages/dialysis/dialysisPrepare'), name: 'prepare', meta: { title: 'prepare' }},
  745. { path: '/dialysis/watch', component: () => import('@/xt_pages/dialysis/bloodPresssWatch'), name: 'watch', meta: { title: 'watch' }},
  746. { path: '/dialysis/details', component: () => import('@/xt_pages/dialysis/details'), name: 'details', meta: { title: 'details' }, is_menu: false },
  747. {
  748. path: '/dialysis/print/batch',
  749. component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order'),
  750. hidden: true,
  751. is_menu: false,
  752. name: 'dialysis_batch_print',
  753. meta: { title: '批量打印', noCache: true }
  754. },
  755. { path: '/dialysis/board', component: () => import('@/xt_pages/dialysis/bulletinBoard'), name: '数据看板', meta: { title: '数据看板' }}
  756. ]
  757. },
  758. {
  759. path: '/stock/',
  760. component: Layout,
  761. redirect: 'noredirect',
  762. name: 'stockManage',
  763. meta: { title: 'stockManage', icon: 'stock' },
  764. children: [
  765. {
  766. path: '/stock/in',
  767. component: () => import('@/xt_pages/stock/stockInOrder'),
  768. name: 'stockInOrder',
  769. meta: { title: 'stockInOrder', noCache: true }
  770. }, {
  771. path: '/stock/in/other',
  772. component: () => import('@/xt_pages/stock/otherStockInOrder'),
  773. name: 'otherStockInOrder',
  774. meta: { title: 'otherStockInOrder', noCache: true }
  775. },
  776. // {
  777. // path: '/stock/return',
  778. // component: () => import('@/xt_pages/stock/salesReturnOrder'),
  779. // name: 'salesReturnOrder',
  780. // meta: { title: 'salesReturnOrder', noCache: true }
  781. // },
  782. {
  783. path: '/stock/return/other',
  784. component: () => import('@/xt_pages/stock/otherSalesReturnOrder'),
  785. name: 'otherSalesReturnOrder',
  786. meta: { title: 'otherSalesReturnOrder', noCache: true }
  787. },
  788. {
  789. path: '/stock/out',
  790. component: () => import('@/xt_pages/stock/stockOutOrder'),
  791. name: 'stockOutOrder',
  792. meta: { title: 'stockOutOrder', noCache: true }
  793. }, {
  794. path: '/stock/out/other',
  795. component: () => import('@/xt_pages/stock/otherStockOutOrder'),
  796. name: 'otherStockOutOrder',
  797. meta: { title: 'otherStockOutOrder', noCache: true }
  798. }, {
  799. path: '/stock/cancel',
  800. component: () => import('@/xt_pages/stock/cancelStockOrder'),
  801. name: 'cancelStockOrder',
  802. meta: { title: 'cancelStockOrder', noCache: true }
  803. }, {
  804. path: '/stock/cancel/other',
  805. component: () => import('@/xt_pages/stock/otherCancelStockOrder'),
  806. name: 'otherCancelStockOrder',
  807. meta: { title: 'otherCancelStockOrder', noCache: true }
  808. }, {
  809. path: '/stock/query',
  810. component: () => import('@/xt_pages/stock/stockQuery'),
  811. name: 'stockQuery',
  812. meta: { title: 'stockQuery' }
  813. },
  814. {
  815. path: '/stock/detail',
  816. component: () => import('@/xt_pages/stock/stockDetailIndex'),
  817. name: 'stockDetail',
  818. meta: { title: 'stockDetail' }
  819. },
  820. {
  821. path: '/stock/in/add',
  822. component: () => import('@/xt_pages/stock/stockInOrderAdd'),
  823. name: 'stockInOrderAdd',
  824. hidden: true,
  825. is_menu: false,
  826. meta: { title: 'stockInOrderAdd' }
  827. },
  828. {
  829. path: '/stock/in/detail',
  830. component: () => import('@/xt_pages/stock/stockInDetail'),
  831. name: 'stockInDetail',
  832. hidden: true,
  833. is_menu: false,
  834. meta: { title: 'stockInDetail' }
  835. }, {
  836. path: '/stock/return/detail',
  837. component: () => import('@/xt_pages/stock/salesReturnDetail'),
  838. name: 'salesReturnDetail',
  839. hidden: true,
  840. is_menu: false,
  841. meta: { title: 'salesReturnDetail' }
  842. }, {
  843. path: '/stock/return/add',
  844. component: () => import('@/xt_pages/stock/salesReturnOrderAdd'),
  845. name: 'salesReturnOrderAdd',
  846. hidden: true,
  847. is_menu: false,
  848. meta: { title: 'salesReturnOrderAdd' }
  849. }, {
  850. path: '/stock/out/add',
  851. component: () => import('@/xt_pages/stock/stockOutOrderAdd'),
  852. name: 'stockOutOrderAdd',
  853. hidden: true,
  854. is_menu: false,
  855. meta: { title: 'stockOutOrderAdd', noCache: true }
  856. },
  857. {
  858. path: '/stock/out/detail',
  859. component: () => import('@/xt_pages/stock/stockOutDetail'),
  860. name: 'stockOutDetail',
  861. hidden: true,
  862. is_menu: false,
  863. meta: { title: 'stockOutDetail', noCache: true }
  864. },
  865. {
  866. path: '/stock/cancel/add',
  867. component: () => import('@/xt_pages/stock/cancelStockOrderAdd'),
  868. name: 'cancelStockOrderAdd',
  869. hidden: true,
  870. is_menu: false,
  871. meta: { title: 'cancelStockOrderAdd', noCache: true }
  872. },
  873. {
  874. path: '/stock/cancel/detail',
  875. component: () => import('@/xt_pages/stock/cancelStockDetail'),
  876. name: 'cancelStockDetail',
  877. hidden: true,
  878. is_menu: false,
  879. meta: { title: 'cancelStockDetail', noCache: true }
  880. },
  881. {
  882. path: '/stock/config',
  883. component: () => import('@/xt_pages/stock/index'),
  884. name: 'config',
  885. meta: { title: 'config' }
  886. }
  887. ]
  888. },
  889. {
  890. path: '/qcd',
  891. component: Layout,
  892. redirect: '/qcd/dialysistotal',
  893. name: 'qcd',
  894. alwaysShow: true,
  895. meta: { title: '质控管理', icon: 'table' },
  896. children: [
  897. { path: '/statistics/index', component: () => import('@/xt_pages/statistics/index'), name: 'statistics', meta: { title: 'statistics' }},
  898. { path: '/qcd/dialysistotal', component: () => import('@/xt_pages/qcd/dialysisTotal'), name: 'dialysistotal', meta: { title: '透析总量' }},
  899. { path: '/qcd/processindicators', component: () => import('@/xt_pages/qcd/processIndicators'), name: 'processIndicators', meta: { title: '过程指标' }},
  900. { path: '/qcd/outcomeIndicators/control', component: () => import('@/xt_pages/qcd/outcomeIndicators/control'), name: 'outcomeIndicatorsControl', meta: { title: '结果指标' }},
  901. { path: '/qcd/outcomeIndicators/query', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/outcomeIndicators/query'), name: 'outcomeIndicatorsQuery', meta: { title: '指标查询' }},
  902. { path: '/qcd/patientanalysis/total', component: () => import('@/xt_pages/qcd/patientAnalysis/total'), name: 'patientAnalysisTotal', meta: { title: '患者分析' }},
  903. { path: '/qcd/patientanalysis/weight', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/weight'), name: 'patientAnalysisWeight', meta: { title: '体重分析' }},
  904. { path: '/qcd/patientanalysis/bloodpressure', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/bloodPressure'), name: 'patientAnalysisBloodPressure', meta: { title: '血压分析' }},
  905. { path: '/qcd/patientanalysis/dialysisage', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/dialysisAge'), name: 'patientAnalysisDialysisAge', meta: { title: '透析龄分析' }},
  906. { path: '/qcd/patientanalysis/lapseto', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/lapseto'), name: 'patientAnalysisLapseto', meta: { title: '转归分析' }},
  907. { path: '/qcd/patientanalysis/complication', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/complication'), name: 'patientAnalysisComplication', meta: { title: '并发症分析' }},
  908. { path: '/qcd/patientanalysis/infectiousdiseases', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/infectiousDiseases'), name: 'patientAnalysisInfectiousDiseases', meta: { title: '传染病分析' }},
  909. { path: '/qcd/pa/person/lapseto', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/lapseto'), name: 'paPersonLapseto', meta: { title: '转归' }},
  910. { path: '/qcd/pa/person/weight', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/weight'), name: 'paPersonWeight', meta: { title: '体重' }},
  911. { path: '/qcd/pa/person/bloodpressure', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/bloodPressure'), name: 'paPersonBloodPressure', meta: { title: '血压' }},
  912. { path: '/qcd/pa/person/indicators', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/indicators'), name: 'paPersonIndicators', meta: { title: '指标控制' }},
  913. { path: '/qcd/pa/person/oralmedicine', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/oralMedicine'), name: 'paPersonOralMedicine', meta: { title: '口服药' }}
  914. ]
  915. },
  916. {
  917. path: '/data/',
  918. component: Layout,
  919. redirect: 'noredirect',
  920. name: 'data',
  921. meta: { title: 'data_dictionary', icon: 'excel' },
  922. children: [
  923. { path: '/data/dictionary', component: () => import('@/xt_pages/data/index'), name: 'dictionary', meta: { title: 'field_config' }},
  924. { path: '/data/template', component: () => import('@/xt_pages/data/template'), name: 'template', meta: { title: 'template' }},
  925. { path: '/data/druguse', component: () => import('@/xt_pages/data/druguseTemplate'), name: 'druguse', meta: { title: 'druguse' }}
  926. ]
  927. },
  928. {
  929. path: '/device',
  930. component: Layout,
  931. redirect: '/device/main',
  932. name: 'device',
  933. alwaysShow: true,
  934. meta: { title: 'deviceManage', icon: 'shebei' },
  935. children: [
  936. { path: '/device/zones', component: () => import('@/xt_pages/device/zone_main'), name: 'deviceZoneManage', meta: { title: 'deviceZoneManage' }},
  937. { path: '/device/groups', component: () => import('@/xt_pages/device/group_main'), name: 'deviceGroupManage', meta: { title: 'deviceGroupManage' }},
  938. { path: '/device/numbers', component: () => import('@/xt_pages/device/number_main'), name: 'deviceNumberManage', meta: { title: 'deviceNumberManage' }},
  939. { path: '/device/main', component: () => import('@/xt_pages/device/main'), name: 'dialysisMachineManage', meta: { title: 'dialysisMachineManage' }}
  940. ]
  941. },
  942. // /////////////////////////////////////线在end
  943. {
  944. path: '/role',
  945. component: Layout,
  946. redirect: '/role/admin/manage',
  947. name: 'role',
  948. alwaysShow: true,
  949. meta: { title: 'permissionManage', icon: 'role' },
  950. children: [
  951. { path: '/role/admin/manage', component: () => import('@/xt_pages/role/admin'), name: 'adminManage', meta: { title: 'adminManage' }},
  952. { path: '/role/manage', component: () => import('@/xt_pages/role/role'), name: 'roleManage', meta: { title: 'roleManage' }},
  953. { path: '/role/admin/create', component: () => import('@/xt_pages/role/CreateAdmin'), name: 'addAdmin', meta: { title: 'addAdmin', noCache: true }, hidden: true, is_menu: false },
  954. { path: '/role/admin/edit', component: () => import('@/xt_pages/role/EditAdmin'), name: 'editAdmin', meta: { title: 'editAdmin', noCache: true }, hidden: true, is_menu: false },
  955. { path: '/role/perview', component: () => import('@/xt_pages/role/EditPerview'), name: 'setupPerview', meta: { title: 'setupPerview', noCache: true }, hidden: true, is_menu: false },
  956. { path: '/role/admin/specialpermission', component: () => import('@/xt_pages/role/special_permission'), name: 'special_permission_manage', meta: { title: 'special_permission_manage' }}
  957. ]
  958. }
  959. ]