index_路由未分离前.js 41KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007
  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/newinspection',
  631. component: () => import('@/xt_pages/user/newInspection'),
  632. hidden: true,
  633. is_menu: false,
  634. name: 'newInspection',
  635. meta: { title: 'newInspection', noCache: true }
  636. },
  637. {
  638. path: '/',
  639. component: () => import('@/xt_pages/user/courseOfDisease'),
  640. hidden: true,
  641. is_menu: false,
  642. name: 'CourseOfDiseaseManage',
  643. meta: { title: 'CourseOfDiseaseManage', noCache: true }
  644. },
  645. {
  646. path: '/patients/rescue',
  647. component: () => import('@/xt_pages/user/rescueRecord'),
  648. hidden: true,
  649. is_menu: false,
  650. name: 'RescueRecord',
  651. meta: { title: 'RescueRecord', noCache: true }
  652. },
  653. {
  654. path: '/patients/patient/:id/proeducation',
  655. component: () => import('@/xt_pages/user/proeducation'),
  656. hidden: true,
  657. is_menu: false,
  658. name: 'proeducation',
  659. meta: { title: 'proeducation', noCache: true }
  660. }
  661. ]
  662. },
  663. {
  664. path: '/workforce',
  665. component: Layout,
  666. redirect: 'noredirect',
  667. name: 'workforce',
  668. alwaysShow: true,
  669. meta: {
  670. title: 'workforce',
  671. icon: 'paiban'
  672. },
  673. children: [
  674. {
  675. path: '/workforce/appointment',
  676. component: () => import('@/xt_pages/workforce/appointment'),
  677. name: 'appointment',
  678. meta: { title: 'appointment', noCache: true }
  679. },
  680. {
  681. path: '/workforce/sign',
  682. component: () => import('@/xt_pages/workforce/sign'),
  683. hidden: true,
  684. is_menu: false,
  685. name: 'workforcesign',
  686. meta: { title: 'sign', noCache: true }
  687. },
  688. {
  689. path: '/workforce/remind',
  690. component: () => import('@/xt_pages/workforce/remind'),
  691. name: 'remind',
  692. meta: { title: 'remind', noCache: true }
  693. },
  694. // {
  695. // path: '/workforce/schedulePrint',
  696. // component: () => import('@/xt_pages/workforce/schedulePrint'),
  697. // name: 'schedulePrint',
  698. // meta: { title: 'schedulePrint', noCache: true }
  699. // },
  700. {
  701. path: '/workforce/template',
  702. component: () => import('@/xt_pages/workforce/template'),
  703. name: 'workforce_template',
  704. hidden: true,
  705. is_menu: false,
  706. meta: { title: 'workforce_template', noCache: true }
  707. },
  708. {
  709. path: '/workforce/schedule/print',
  710. component: () => import('@/xt_pages/workforce/schedule_print'),
  711. name: 'schedule_print',
  712. hidden: true,
  713. is_menu: false,
  714. meta: { title: 'schedule_print', noCache: true }
  715. }
  716. ]
  717. },
  718. {
  719. path: '/sign',
  720. component: Layout,
  721. redirct: '/sign/index',
  722. children: [{
  723. path: '/sign',
  724. component: () => import('@/xt_pages/sign/index'),
  725. name: 'sign',
  726. meta: { title: 'signWeight', icon: 'sign', noCache: true }
  727. }]
  728. },
  729. {
  730. path: '/dialysis/',
  731. component: Layout,
  732. redirect: 'noredirect',
  733. name: 'dialysis',
  734. alwaysShow: true,
  735. meta: {
  736. title: 'dialysis',
  737. icon: 'touxi'
  738. },
  739. children: [
  740. { path: '/dialysis/dialysisrecord', component: () => import('@/xt_pages/dialysis/schedualPatient'), name: '透析记录', meta: { title: '透析记录' }},
  741. {
  742. path: '/dialysis/record/:id',
  743. component: () => import('@/xt_pages/dialysis/dialysisPage'),
  744. hidden: true,
  745. is_menu: false,
  746. name: 'paper',
  747. meta: { title: 'paper', noCache: true }
  748. },
  749. {
  750. path: '/dialysis/print',
  751. component: () => import('@/xt_pages/dialysis/dialysisPrintOrder'),
  752. hidden: true,
  753. is_menu: false,
  754. name: 'dialysisPrintOrder',
  755. meta: { title: 'dialysisPrintOrder', noCache: true }
  756. },
  757. // { path: 'advice', component: () => import('@/xt_pages/dialysis/doctorAdvice'), name: 'advice', meta: { title: 'advice' }},
  758. // { path: 'prepare', component: () => import('@/xt_pages/dialysis/dialysisPrepare'), name: 'prepare', meta: { title: 'prepare' }},
  759. { path: '/dialysis/watch', component: () => import('@/xt_pages/dialysis/bloodPresssWatch'), name: 'watch', meta: { title: 'watch' }},
  760. { path: '/dialysis/details', component: () => import('@/xt_pages/dialysis/details'), name: 'details', meta: { title: 'details' }, is_menu: false },
  761. {
  762. path: '/dialysis/print/batch',
  763. component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order'),
  764. hidden: true,
  765. is_menu: false,
  766. name: 'dialysis_batch_print',
  767. meta: { title: '批量打印', noCache: true }
  768. },
  769. { path: '/dialysis/board', component: () => import('@/xt_pages/dialysis/bulletinBoard'), name: '数据看板', meta: { title: '数据看板' }}
  770. ]
  771. },
  772. {
  773. path: '/stock/',
  774. component: Layout,
  775. redirect: 'noredirect',
  776. name: 'stockManage',
  777. meta: { title: 'stockManage', icon: 'stock' },
  778. children: [
  779. {
  780. path: '/stock/in',
  781. component: () => import('@/xt_pages/stock/stockInOrder'),
  782. name: 'stockInOrder',
  783. meta: { title: 'stockInOrder', noCache: true }
  784. }, {
  785. path: '/stock/in/other',
  786. component: () => import('@/xt_pages/stock/otherStockInOrder'),
  787. name: 'otherStockInOrder',
  788. meta: { title: 'otherStockInOrder', noCache: true }
  789. },
  790. // {
  791. // path: '/stock/return',
  792. // component: () => import('@/xt_pages/stock/salesReturnOrder'),
  793. // name: 'salesReturnOrder',
  794. // meta: { title: 'salesReturnOrder', noCache: true }
  795. // },
  796. {
  797. path: '/stock/return/other',
  798. component: () => import('@/xt_pages/stock/otherSalesReturnOrder'),
  799. name: 'otherSalesReturnOrder',
  800. meta: { title: 'otherSalesReturnOrder', noCache: true }
  801. },
  802. {
  803. path: '/stock/out',
  804. component: () => import('@/xt_pages/stock/stockOutOrder'),
  805. name: 'stockOutOrder',
  806. meta: { title: 'stockOutOrder', noCache: true }
  807. }, {
  808. path: '/stock/out/other',
  809. component: () => import('@/xt_pages/stock/otherStockOutOrder'),
  810. name: 'otherStockOutOrder',
  811. meta: { title: 'otherStockOutOrder', noCache: true }
  812. }, {
  813. path: '/stock/cancel',
  814. component: () => import('@/xt_pages/stock/cancelStockOrder'),
  815. name: 'cancelStockOrder',
  816. meta: { title: 'cancelStockOrder', noCache: true }
  817. }, {
  818. path: '/stock/cancel/other',
  819. component: () => import('@/xt_pages/stock/otherCancelStockOrder'),
  820. name: 'otherCancelStockOrder',
  821. meta: { title: 'otherCancelStockOrder', noCache: true }
  822. },
  823. {
  824. path: '/stock/query',
  825. component: () => import('@/xt_pages/stock/stockQuery'),
  826. name: 'stockQuery',
  827. meta: { title: 'stockQuery' }
  828. },
  829. {
  830. path: '/stock/detail',
  831. component: () => import('@/xt_pages/stock/stockDetailIndex'),
  832. name: 'stockDetail',
  833. meta: { title: 'stockDetail' }
  834. },
  835. {
  836. path: '/stock/in/add',
  837. component: () => import('@/xt_pages/stock/stockInOrderAdd'),
  838. name: 'stockInOrderAdd',
  839. hidden: true,
  840. is_menu: false,
  841. meta: { title: 'stockInOrderAdd' }
  842. },
  843. {
  844. path: '/stock/in/detail',
  845. component: () => import('@/xt_pages/stock/stockInDetail'),
  846. name: 'stockInDetail',
  847. hidden: true,
  848. is_menu: false,
  849. meta: { title: 'stockInDetail' }
  850. }, {
  851. path: '/stock/return/detail',
  852. component: () => import('@/xt_pages/stock/salesReturnDetail'),
  853. name: 'salesReturnDetail',
  854. hidden: true,
  855. is_menu: false,
  856. meta: { title: 'salesReturnDetail' }
  857. }, {
  858. path: '/stock/return/add',
  859. component: () => import('@/xt_pages/stock/salesReturnOrderAdd'),
  860. name: 'salesReturnOrderAdd',
  861. hidden: true,
  862. is_menu: false,
  863. meta: { title: 'salesReturnOrderAdd' }
  864. }, {
  865. path: '/stock/out/add',
  866. component: () => import('@/xt_pages/stock/stockOutOrderAdd'),
  867. name: 'stockOutOrderAdd',
  868. hidden: true,
  869. is_menu: false,
  870. meta: { title: 'stockOutOrderAdd', noCache: true }
  871. },
  872. {
  873. path: '/stock/out/detail',
  874. component: () => import('@/xt_pages/stock/stockOutDetail'),
  875. name: 'stockOutDetail',
  876. hidden: true,
  877. is_menu: false,
  878. meta: { title: 'stockOutDetail', noCache: true }
  879. },
  880. {
  881. path: '/stock/cancel/add',
  882. component: () => import('@/xt_pages/stock/cancelStockOrderAdd'),
  883. name: 'cancelStockOrderAdd',
  884. hidden: true,
  885. is_menu: false,
  886. meta: { title: 'cancelStockOrderAdd', noCache: true }
  887. },
  888. {
  889. path: '/stock/cancel/detail',
  890. component: () => import('@/xt_pages/stock/cancelStockDetail'),
  891. name: 'cancelStockDetail',
  892. hidden: true,
  893. is_menu: false,
  894. meta: { title: 'cancelStockDetail', noCache: true }
  895. },
  896. {
  897. path: '/stock/config',
  898. component: () => import('@/xt_pages/stock/index'),
  899. name: 'config',
  900. meta: { title: 'config' }
  901. }
  902. ]
  903. },
  904. {
  905. path: '/qcd',
  906. component: Layout,
  907. redirect: '/qcd/dialysistotal',
  908. name: 'qcd',
  909. alwaysShow: true,
  910. meta: { title: '质控管理', icon: 'table' },
  911. children: [
  912. { path: '/statistics/index', component: () => import('@/xt_pages/statistics/index'), name: 'statistics', meta: { title: 'statistics' }},
  913. { path: '/qcd/dialysistotal', component: () => import('@/xt_pages/qcd/dialysisTotal'), name: 'dialysistotal', meta: { title: '透析总量' }},
  914. { path: '/qcd/processindicators', component: () => import('@/xt_pages/qcd/processIndicators'), name: 'processIndicators', meta: { title: '过程指标' }},
  915. { path: '/qcd/outcomeIndicators/control', component: () => import('@/xt_pages/qcd/outcomeIndicators/control'), name: 'outcomeIndicatorsControl', meta: { title: '结果指标' }},
  916. { path: '/qcd/outcomeIndicators/query', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/outcomeIndicators/query'), name: 'outcomeIndicatorsQuery', meta: { title: '指标查询' }},
  917. { path: '/qcd/patientanalysis/total', component: () => import('@/xt_pages/qcd/patientAnalysis/total'), name: 'patientAnalysisTotal', meta: { title: '患者分析' }},
  918. { path: '/qcd/patientanalysis/weight', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/weight'), name: 'patientAnalysisWeight', meta: { title: '体重分析' }},
  919. { path: '/qcd/patientanalysis/bloodpressure', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/bloodPressure'), name: 'patientAnalysisBloodPressure', meta: { title: '血压分析' }},
  920. { path: '/qcd/patientanalysis/dialysisage', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/dialysisAge'), name: 'patientAnalysisDialysisAge', meta: { title: '透析龄分析' }},
  921. { path: '/qcd/patientanalysis/lapseto', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/lapseto'), name: 'patientAnalysisLapseto', meta: { title: '转归分析' }},
  922. { path: '/qcd/patientanalysis/complication', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/complication'), name: 'patientAnalysisComplication', meta: { title: '并发症分析' }},
  923. { path: '/qcd/patientanalysis/infectiousdiseases', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/infectiousDiseases'), name: 'patientAnalysisInfectiousDiseases', meta: { title: '传染病分析' }},
  924. { path: '/qcd/pa/person/lapseto', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/lapseto'), name: 'paPersonLapseto', meta: { title: '转归' }},
  925. { path: '/qcd/pa/person/weight', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/weight'), name: 'paPersonWeight', meta: { title: '体重' }},
  926. { path: '/qcd/pa/person/bloodpressure', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/bloodPressure'), name: 'paPersonBloodPressure', meta: { title: '血压' }},
  927. { path: '/qcd/pa/person/indicators', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/indicators'), name: 'paPersonIndicators', meta: { title: '指标控制' }},
  928. { path: '/qcd/pa/person/oralmedicine', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/oralMedicine'), name: 'paPersonOralMedicine', meta: { title: '口服药' }}
  929. ]
  930. },
  931. {
  932. path: '/data/',
  933. component: Layout,
  934. redirect: 'noredirect',
  935. name: 'data',
  936. meta: { title: 'data_dictionary', icon: 'excel' },
  937. children: [
  938. { path: '/data/dictionary', component: () => import('@/xt_pages/data/index'), name: 'dictionary', meta: { title: 'field_config' }},
  939. { path: '/data/template', component: () => import('@/xt_pages/data/template'), name: 'template', meta: { title: 'template' }},
  940. { path: '/data/druguse', component: () => import('@/xt_pages/data/druguseTemplate'), name: 'druguse', meta: { title: 'druguse' }}
  941. ]
  942. },
  943. {
  944. path: '/device',
  945. component: Layout,
  946. redirect: '/device/main',
  947. name: 'device',
  948. alwaysShow: true,
  949. meta: { title: 'deviceManage', icon: 'shebei' },
  950. children: [
  951. { path: '/device/zones', component: () => import('@/xt_pages/device/zone_main'), name: 'deviceZoneManage', meta: { title: 'deviceZoneManage' }},
  952. { path: '/device/groups', component: () => import('@/xt_pages/device/group_main'), name: 'deviceGroupManage', meta: { title: 'deviceGroupManage' }},
  953. { path: '/device/numbers', component: () => import('@/xt_pages/device/number_main'), name: 'deviceNumberManage', meta: { title: 'deviceNumberManage' }},
  954. { path: '/device/main', component: () => import('@/xt_pages/device/main'), name: 'dialysisMachineManage', meta: { title: 'dialysisMachineManage' }}
  955. ]
  956. },
  957. {
  958. path: '/dialysisIndex',
  959. component: Layout,
  960. redirct: '/dialysisIndex/index',
  961. children: [{
  962. path: '/dialysisIndex',
  963. component: () => import('@/xt_pages/dialysis/scheduleIndex'),
  964. name: 'dialysisIndex',
  965. meta: { title: 'dialysisIndex', icon: 'dialysisIndex', noCache: true }
  966. }]
  967. },
  968. // /////////////////////////////////////线在end
  969. {
  970. path: '/role',
  971. component: Layout,
  972. redirect: '/role/admin/manage',
  973. name: 'role',
  974. alwaysShow: true,
  975. meta: { title: 'permissionManage', icon: 'role' },
  976. children: [
  977. { path: '/role/admin/manage', component: () => import('@/xt_pages/role/admin'), name: 'adminManage', meta: { title: 'adminManage' }},
  978. { path: '/role/manage', component: () => import('@/xt_pages/role/role'), name: 'roleManage', meta: { title: 'roleManage' }},
  979. { path: '/role/admin/create', component: () => import('@/xt_pages/role/CreateAdmin'), name: 'addAdmin', meta: { title: 'addAdmin', noCache: true }, hidden: true, is_menu: false },
  980. { path: '/role/admin/edit', component: () => import('@/xt_pages/role/EditAdmin'), name: 'editAdmin', meta: { title: 'editAdmin', noCache: true }, hidden: true, is_menu: false },
  981. { path: '/role/perview', component: () => import('@/xt_pages/role/EditPerview'), name: 'setupPerview', meta: { title: 'setupPerview', noCache: true }, hidden: true, is_menu: false },
  982. { path: '/role/admin/specialpermission', component: () => import('@/xt_pages/role/special_permission'), name: 'special_permission_manage', meta: { title: 'special_permission_manage' }}
  983. ]
  984. },
  985. ]