12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007 |
- import Vue from 'vue'
- import Router from 'vue-router'
-
- Vue.use(Router)
-
- /* Layout */
- import Layout from '@/views/layout/Layout'
-
- /** note: submenu only apppear when children.length>=1
- * detail see https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html
- **/
-
- /**
- * hidden: true if `hidden:true` will not show in the sidebar(default is false)
- * alwaysShow: true if set true, will always show the root menu, whatever its child routes length
- * if not set alwaysShow, only more than one route under the children
- * it will becomes nested mode, otherwise not show the root menu
- * redirect: noredirect if `redirect:noredirect` will no redirct in the breadcrumb
- * name:'router-name' the name is used by <keep-alive> (must set!!!)
- * meta : {
- roles: ['admin','editor'] will control the page roles (you can set multiple roles)
- title: 'title' the name show in submenu and breadcrumb (recommend set)
- icon: 'svg-name' the icon show in the sidebar,
- noCache: true if true ,the page will no be cached(default is false)
- }
- **/
- export const xt_constantRouterMap = [
- // { path: '/login', component: () => import('@/views/login/index'), hidden: true },
- { path: '/token/verify', component: () => import('@/xt_pages/index/verify_token'), hidden: true },
- { path: '/404', component: () => import('@/views/errorPage/404'), hidden: true },
- { path: '/401', component: () => import('@/views/errorPage/401'), hidden: true },
- {
- path: '',
- component: Layout,
- redirect: '/home',
- children: [{
- path: '/home',
- component: () => import('@/xt_pages/home/index'),
- name: 'home',
- meta: { title: 'home', icon: 'dashboard', noCache: true }
- }]
- },
-
- {
- path: '/service',
- component: Layout,
- // redirect: '/service',
- hidden: true,
- is_menu: false,
-
- meta: { title: 'service', icon: 'shebei' },
- children: [{
- path: '/service',
- component: () => import('@/xt_pages/service/index'),
- hidden: true,
- is_menu: false,
- name: 'service',
- meta: { title: 'service', icon: 'shebei', noCache: true }
- }, {
- path: '/service/invoice',
- component: () => import('@/xt_pages/service/invoice'),
- hidden: true,
- is_menu: false,
- name: 'invoice',
- meta: { title: 'invoice', icon: 'shebei', noCache: true }
- }, {
- path: '/service/invoice/apply',
- component: () => import('@/xt_pages/service/invoiceApply'),
- hidden: true,
- is_menu: false,
- name: 'invoiceApply',
- meta: { title: 'invoiceApply', icon: 'shebei', noCache: true }
- },
- {
- path: '/servicePay',
- component: () => import('@/xt_pages/service/servicePay'),
- hidden: true,
- name: 'servicePay',
- meta: { title: 'servicePay' }
- },
- {
- path: '/payType',
- component: () => import('@/xt_pages/service/payType'),
- hidden: true,
- name: 'payType',
- meta: { title: 'payType' }
- },
- {
- path: '/weChatPay',
- component: () => import('@/xt_pages/service/weChatPay'),
- hidden: true,
- name: 'weChatPay',
- meta: { title: 'weChatPay' }
- },
- {
- path: '/service/completeOrder',
- component: () => import('@/xt_pages/service/completeOrder'),
- hidden: true,
- name: 'completeOrder',
- meta: { title: 'completeOrder' }
- }, {
- path: '/service/buy',
- component: () => import('@/xt_pages/service/serviceOrder'),
- hidden: true,
- is_menu: false,
- name: 'serviceOrder',
- meta: { title: 'serviceOrder', icon: 'shebei', noCache: true }
- }, {
- path: '/order',
- component: () => import('@/xt_pages/service/orderRecord'),
- hidden: true,
- is_menu: false,
- name: 'orderRecord',
- meta: { title: 'orderRecord', icon: 'shebei', noCache: true }
- }, {
- path: '/service/recordList',
- component: () => import('@/xt_pages/service/serviceRecord'),
- hidden: true,
- is_menu: false,
- name: 'recordList',
- meta: { title: 'recordList', icon: 'shebei', noCache: true }
- }
- ]
- }
-
- // ////////////////////////////
- // 本地开始
- // ///////////////////////////
- // {
- // path: '/patients',
- // component: Layout,
- // redirect: 'noredirect',
- // name: 'User',
- // meta: {
- // title: 'user',
- // icon: 'bingren'
- // },
- // children: [
- // {
- // path: '/patients/patients',
- // component: () => import('@/xt_pages/user/patients'),
- // name: 'Patient',
- // meta: { title: 'patient', noCache: true }
- // },
- // {
- // path: '/patients/create',
- // component: () => import('@/xt_pages/user/createPatient'),
- // name: 'createPatient',
- // meta: { title: 'createPatient', noCache: true }
- // },
- // {
- // path: '/patients/patient/:id',
- // component: () => import('@/xt_pages/user/patientInfo'),
- // hidden: true,
- // is_menu: false,
- // name: 'patient Page',
- // meta: { title: 'patientPage', noCache: true }
- // },
- // {
- // path: '/patients/patient/:id/edit',
- // component: () => import('@/xt_pages/user/editPatient'),
- // hidden: true,
- // is_menu: false,
- // name: 'Edit Patient',
- // meta: { title: 'editPatient', noCache: true }
- // },
- // {
- // path: '/patients/patient/:id/dialysisSolution',
- // component: () => import('@/xt_pages/user/dialysisSolution'),
- // hidden: true,
- // is_menu: false,
- // name: 'dialysisSolution',
- // meta: { title: 'dialysisSolution', noCache: true }
- // },
- // {
- // path: '/patients/patient/:id/weight',
- // component: () => import('@/xt_pages/user/weight'),
- // hidden: true,
- // is_menu: false,
- // name: 'weight',
- // meta: { title: 'weight', noCache: true }
- // },
- // {
- // path: '/patients/patient/:id/dialysisRecord',
- // component: () => import('@/xt_pages/user/dialysisRecord'),
- // hidden: true,
- // is_menu: false,
- // name: 'dialysisRecord',
- // meta: { title: 'dialysisRecord', noCache: true }
- // },
- // {
- // path: '/patients/patient/:id/scheduling',
- // component: () => import('@/xt_pages/user/scheduling'),
- // hidden: true,
- // is_menu: false,
- // name: 'scheduling',
- // meta: { title: 'scheduling', noCache: true }
- // },
- // {
- // path: '/patients/patient/:id/doctorAdvice',
- // component: () => import('@/xt_pages/user/doctorAdvice'),
- // hidden: true,
- // is_menu: false,
- // name: 'doctorAdvice',
- // meta: { title: 'doctorAdvice', noCache: true }
- // },
- // {
- // path: '/patients/inspection',
- // component: () => import('@/xt_pages/user/inspection'),
- // hidden: true,
- // is_menu: false,
- // name: 'Inspection',
- // meta: { title: 'inspection', noCache: true }
- // },
- // {
- // path: '/patients/course',
- // component: () => import('@/xt_pages/user/courseOfDisease'),
- // hidden: true,
- // is_menu: false,
- // name: 'CourseOfDiseaseManage',
- // meta: { title: 'CourseOfDiseaseManage', noCache: true }
- // },
- // {
- // path: '/patients/rescue',
- // component: () => import('@/xt_pages/user/rescueRecord'),
- // hidden: true,
- // is_menu: false,
- // name: 'RescueRecord',
- // meta: { title: 'RescueRecord', noCache: true }
- // },
- // {
- // path: '/patients/patient/:id/proeducation',
- // component: () => import('@/xt_pages/user/proeducation'),
- // hidden: true,
- // is_menu: false,
- // name: 'proeducation',
- // meta: { title: 'proeducation', noCache: true }
- // }
- // ]
- // },
- // {
- // path: '/workforce',
- // component: Layout,
- // redirect: 'noredirect',
- // name: 'workforce',
- // meta: {
- // title: 'workforce',
- // icon: 'paiban'
- // },
- // children: [
- // {
- // path: '/workforce/appointment',
- // component: () => import('@/xt_pages/workforce/appointment'),
- // name: 'appointment',
- // meta: { title: 'appointment', noCache: true }
- // },
- // {
- // path: '/workforce/sign',
- // component: () => import('@/xt_pages/workforce/sign'),
- // hidden: true,
- // is_menu: false,
- // name: 'workforcesign',
- // meta: { title: 'sign', noCache: true }
- // },
- // {
- // path: '/workforce/remind',
- // component: () => import('@/xt_pages/workforce/remind'),
- // name: 'remind',
- // meta: { title: 'remind', noCache: true }
- // },
- // {
- // path: '/workforce/template',
- // component: () => import('@/xt_pages/workforce/template'),
- // name: 'workforce_template',
- // hidden: true,
- // is_menu: false,
- // meta: { title: 'workforce_template', noCache: true }
- // },
- // {
- // path: '/workforce/schedule/print',
- // component: () => import('@/xt_pages/workforce/schedule_print'),
- // name: 'schedule_print',
- // hidden: true,
- // is_menu: false,
- // meta: { title: 'schedule_print', noCache: true }
- // }
- // ]
- // },
- // {
- // path: '/sign',
- // component: Layout,
- // redirct: '/sign/index',
- // children: [{
- // path: '/sign',
- // component: () => import('@/xt_pages/sign/index'),
- // name: 'sign',
- // meta: { title: 'signWeight', icon: 'sign', noCache: true }
- // }]
- // },
- // {
- // path: '/dialysis/',
- // component: Layout,
- // redirect: 'noredirect',
- // name: 'dialysis',
- // meta: {
- // title: 'dialysis',
- // icon: 'touxi'
- // },
- // children: [
- // { path: '/dialysis/dialysisrecord', component: () => import('@/xt_pages/dialysis/schedualPatient'), name: '透析记录', meta: { title: '透析记录' }},
- // {
- // path: '/dialysis/record/:id',
- // component: () => import('@/xt_pages/dialysis/dialysisPage'),
- // hidden: true,
- // is_menu: false,
- // name: 'paper',
- // meta: { title: 'paper', noCache: true }
- // },
- // {
- // path: '/dialysis/print',
- // component: () => import('@/xt_pages/dialysis/dialysisPrintOrder'),
- // hidden: true,
- // is_menu: false,
- // name: 'dialysisPrintOrder',
- // meta: { title: 'dialysisPrintOrder', noCache: true }
- // },
-
- // // { path: 'advice', component: () => import('@/xt_pages/dialysis/doctorAdvice'), name: 'advice', meta: { title: 'advice' }},
- // // { path: 'prepare', component: () => import('@/xt_pages/dialysis/dialysisPrepare'), name: 'prepare', meta: { title: 'prepare' }},
- // { path: '/dialysis/watch', component: () => import('@/xt_pages/dialysis/bloodPresssWatch'), name: 'watch', meta: { title: 'watch' }},
- // { path: '/dialysis/details', component: () => import('@/xt_pages/dialysis/details'), name: 'details', meta: { title: 'details' }, hidden: true, is_menu: false },
- // {
- // path: '/dialysis/print/batch',
- // component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order'),
- // hidden: true,
- // is_menu: false,
- // name: 'dialysis_batch_print',
- // meta: { title: '批量打印', noCache: true }
- // },
- // { path: '/dialysis/board', component: () => import('@/xt_pages/dialysis/bulletinBoard'), name: '数据看板', meta: { title: '数据看板' }}
- // ]
- // },
- // {
- // path: '/stock/',
- // component: Layout,
- // redirect: 'noredirect',
- // name: 'stockManage',
- // meta: { title: 'stockManage', icon: 'stock' },
- // children: [
- // {
- // path: '/stock/config',
- // component: () => import('@/xt_pages/stock/index'),
- // name: 'config',
- // meta: { title: 'config' }
- // },
- // {
- // path: '/stock/in',
- // component: () => import('@/xt_pages/stock/stockInOrder'),
- // name: 'stockInOrder',
- // meta: { title: 'stockInOrder', noCache: true }
- // }, {
- // path: '/stock/in/other',
- // component: () => import('@/xt_pages/stock/otherStockInOrder'),
- // name: 'otherStockInOrder',
- // meta: { title: 'otherStockInOrder', noCache: true }
- // }, {
- // path: '/stock/return',
- // component: () => import('@/xt_pages/stock/salesReturnOrder'),
- // name: 'salesReturnOrder',
- // meta: { title: 'salesReturnOrder', noCache: true }
- // }, {
- // path: '/stock/return/other',
- // component: () => import('@/xt_pages/stock/otherSalesReturnOrder'),
- // name: 'otherSalesReturnOrder',
- // meta: { title: 'otherSalesReturnOrder', noCache: true }
- // },
- // {
- // path: '/stock/out',
- // component: () => import('@/xt_pages/stock/stockOutOrder'),
- // name: 'stockOutOrder',
- // meta: { title: 'stockOutOrder', noCache: true }
- // }, {
- // path: '/stock/out/other',
- // component: () => import('@/xt_pages/stock/otherStockOutOrder'),
- // name: 'otherStockOutOrder',
- // meta: { title: 'otherStockOutOrder', noCache: true }
- // }, {
- // path: '/stock/cancel',
- // component: () => import('@/xt_pages/stock/cancelStockOrder'),
- // name: 'cancelStockOrder',
- // meta: { title: 'cancelStockOrder', noCache: true }
- // }, {
- // path: '/stock/cancel/other',
- // component: () => import('@/xt_pages/stock/otherCancelStockOrder'),
- // name: 'otherCancelStockOrder',
- // meta: { title: 'otherCancelStockOrder', noCache: true }
- // }, {
- // path: '/stock/query',
- // component: () => import('@/xt_pages/stock/stockQuery'),
- // name: 'stockQuery',
- // meta: { title: 'stockQuery' }
- // }, {
- // path: '/stock/detail',
- // component: () => import('@/xt_pages/stock/stockDetailIndex'),
- // name: 'stockDetail',
- // meta: { title: 'stockDetail' }
- // },
- // {
- // path: '/stock/in/add',
- // component: () => import('@/xt_pages/stock/stockInOrderAdd'),
- // name: 'stockInOrderAdd',
- // hidden: true,
- // is_menu: false,
- // meta: { title: 'stockInOrderAdd' }
- // }, {
- // path: '/stock/in/detail',
- // component: () => import('@/xt_pages/stock/stockInDetail'),
- // name: 'stockInDetail',
- // hidden: true,
- // is_menu: false,
- // meta: { title: 'stockInDetail' }
- // }, {
- // path: '/stock/return/detail',
- // component: () => import('@/xt_pages/stock/salesReturnDetail'),
- // name: 'salesReturnDetail',
- // hidden: true,
- // is_menu: false,
- // meta: { title: 'salesReturnDetail' }
- // }, {
- // path: '/stock/return/add',
- // component: () => import('@/xt_pages/stock/salesReturnOrderAdd'),
- // name: 'salesReturnOrderAdd',
- // hidden: true,
- // is_menu: false,
- // meta: { title: 'salesReturnOrderAdd' }
- // }, {
- // path: '/stock/out/add',
- // component: () => import('@/xt_pages/stock/stockOutOrderAdd'),
- // name: 'stockOutOrderAdd',
- // hidden: true,
- // is_menu: false,
- // meta: { title: 'stockOutOrderAdd' }
- // }, {
- // path: '/stock/out/detail',
- // component: () => import('@/xt_pages/stock/stockOutDetail'),
- // name: 'stockOutDetail',
- // hidden: true,
- // is_menu: false,
- // meta: { title: 'stockOutDetail' }
- // }, {
- // path: '/stock/cancel/add',
- // component: () => import('@/xt_pages/stock/cancelStockOrderAdd'),
- // name: 'cancelStockOrderAdd',
- // hidden: true,
- // is_menu: false,
- // meta: { title: 'cancelStockOrderAdd' }
- // }, {
- // path: '/stock/cancel/detail',
- // component: () => import('@/xt_pages/stock/cancelStockDetail'),
- // name: 'cancelStockDetail',
- // hidden: true,
- // is_menu: false,
- // meta: { title: 'cancelStockDetail' }
- // }
- // ]
- // },
-
- // {
- // path: '/qcd',
- // component: Layout,
- // redirect: '/qcd/dialysistotal',
- // name: 'qcd',
- // alwaysShow: true,
- // meta: { title: '科室质控', icon: 'statistics' },
- // children: [
- // { path: '/statistics/index', component: () => import('@/xt_pages/statistics/index'), name: 'statistics', meta: { title: 'statistics' }},
- // { path: '/qcd/dialysistotal', component: () => import('@/xt_pages/qcd/dialysisTotal'), name: 'dialysistotal', meta: { title: '透析总量' }},
- // { path: '/qcd/processindicators', component: () => import('@/xt_pages/qcd/processIndicators'), name: 'processIndicators', meta: { title: '过程指标' }},
- // { path: '/qcd/outcomeIndicators/control', component: () => import('@/xt_pages/qcd/outcomeIndicators/control'), name: 'outcomeIndicatorsControl', meta: { title: '结果指标' }},
- // { path: '/qcd/outcomeIndicators/query', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/outcomeIndicators/query'), name: 'outcomeIndicatorsQuery', meta: { title: '指标查询' }},
- // { path: '/qcd/patientanalysis/total', component: () => import('@/xt_pages/qcd/patientAnalysis/total'), name: 'patientAnalysisTotal', meta: { title: '患者分析' }},
- // { path: '/qcd/patientanalysis/weight', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/weight'), name: 'patientAnalysisWeight', meta: { title: '体重分析' }},
- // { path: '/qcd/patientanalysis/bloodpressure', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/bloodPressure'), name: 'patientAnalysisBloodPressure', meta: { title: '血压分析' }},
- // { path: '/qcd/patientanalysis/dialysisage', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/dialysisAge'), name: 'patientAnalysisDialysisAge', meta: { title: '透析龄分析' }},
- // { path: '/qcd/patientanalysis/lapseto', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/lapseto'), name: 'patientAnalysisLapseto', meta: { title: '转归分析' }},
- // { path: '/qcd/patientanalysis/complication', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/complication'), name: 'patientAnalysisComplication', meta: { title: '并发症分析' }},
- // { path: '/qcd/patientanalysis/infectiousdiseases', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/infectiousDiseases'), name: 'patientAnalysisInfectiousDiseases', meta: { title: '传染病分析' }},
- // { path: '/qcd/pa/person/lapseto', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/lapseto'), name: 'paPersonLapseto', meta: { title: '转归' }},
- // { path: '/qcd/pa/person/weight', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/weight'), name: 'paPersonWeight', meta: { title: '体重' }},
- // { path: '/qcd/pa/person/bloodpressure', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/bloodPressure'), name: 'paPersonBloodPressure', meta: { title: '血压' }},
- // { path: '/qcd/pa/person/indicators', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/indicators'), name: 'paPersonIndicators', meta: { title: '指标控制' }},
- // { path: '/qcd/pa/person/oralmedicine', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/oralMedicine'), name: 'paPersonOralMedicine', meta: { title: '口服药' }}
- // ]
- // },
- // {
- // path: '/data/',
- // component: Layout,
- // redirect: 'noredirect',
- // name: 'data',
- // meta: { title: 'data_dictionary', icon: 'excel' },
- // children: [
- // { path: '/data/dictionary', component: () => import('@/xt_pages/data/index'), name: 'dictionary', meta: { title: 'field_config' }},
- // { path: '/data/template', component: () => import('@/xt_pages/data/template'), name: 'template', meta: { title: 'template' }},
- // { path: '/data/druguse', component: () => import('@/xt_pages/data/druguseTemplate'), name: 'druguse', meta: { title: 'druguse' }}
- // ]
- // },
- // {
- // path: '/device',
- // component: Layout,
- // redirect: '/device/main',
- // name: 'device',
- // alwaysShow: true,
- // meta: { title: 'deviceManage', icon: 'shebei' },
- // children: [
- // { path: '/device/zones', component: () => import('@/xt_pages/device/zone_main'), name: 'deviceZoneManage', meta: { title: 'deviceZoneManage' }},
- // { path: '/device/groups', component: () => import('@/xt_pages/device/group_main'), name: 'deviceGroupManage', meta: { title: 'deviceGroupManage' }},
- // { path: '/device/numbers', component: () => import('@/xt_pages/device/number_main'), name: 'deviceNumberManage', meta: { title: 'deviceNumberManage' }},
- // { path: '/device/main', component: () => import('@/xt_pages/device/main'), name: 'dialysisMachineManage', meta: { title: 'dialysisMachineManage' }}
- // ]
- // },
- // {
- // path: '/role',
- // component: Layout,
- // redirect: '/role/admin/manage',
- // name: 'role',
- // alwaysShow: true,
- // meta: { title: 'permissionManage', icon: 'role' },
- // children: [
- // { path: '/role/admin/manage', component: () => import('@/xt_pages/role/admin'), name: 'adminManage', meta: { title: 'adminManage' }},
- // { path: '/role/manage', component: () => import('@/xt_pages/role/role'), name: 'roleManage', meta: { title: 'roleManage' }},
- // { path: '/role/admin/create', component: () => import('@/xt_pages/role/CreateAdmin'), name: 'addAdmin', meta: { title: 'addAdmin', noCache: true }, hidden: true, is_menu: false },
- // { path: '/role/admin/edit', component: () => import('@/xt_pages/role/EditAdmin'), name: 'editAdmin', meta: { title: 'editAdmin', noCache: true }, hidden: true, is_menu: false },
- // { path: '/role/perview', component: () => import('@/xt_pages/role/EditPerview'), name: 'setupPerview', meta: { title: 'setupPerview', noCache: true }, hidden: true, is_menu: false },
- // { path: '/role/admin/specialpermission', component: () => import('@/xt_pages/role/special_permission'), name: 'special_permission_manage', meta: { title: 'special_permission_manage' }}
- // ]
- // },
- // {
- // path: '/fullscreenboard',
- // component: () => import('@/xt_pages/fullscreenboard/index'),
- // hidden: true
- // }
- // /////////////本地要end/
- ]
-
- export default new Router({
- // mode: 'history', // require service support
- scrollBehavior: () => ({ y: 0 }),
- routes: xt_constantRouterMap
- })
-
- export const xt_asyncRouterMap = [
- // //////////////////////////////////线在开始
- {
- path: '/patients',
- component: Layout,
- redirect: 'noredirect',
- name: 'User',
- alwaysShow: true,
- meta: {
- title: 'user',
- icon: 'bingren'
- },
- children: [
- {
- path: '/patients/patients',
- component: () => import('@/xt_pages/user/patients'),
- name: 'Patient',
- meta: { title: 'patient', noCache: true }
- },
- {
- path: '/patients/create',
- component: () => import('@/xt_pages/user/createPatient'),
- name: 'createPatient',
- meta: { title: 'createPatient', noCache: true }
- },
- {
- path: '/patients/patient/:id',
- component: () => import('@/xt_pages/user/patientInfo'),
- hidden: true,
- is_menu: false,
- name: 'patient Page',
- meta: { title: 'patientPage', noCache: true }
- },
- {
- path: '/patients/patient/:id/edit',
- component: () => import('@/xt_pages/user/editPatient'),
- hidden: true,
- is_menu: false,
- name: 'Edit Patient',
- meta: { title: 'editPatient', noCache: true }
- },
- {
- path: '/patients/patient/:id/dialysisSolution',
- component: () => import('@/xt_pages/user/dialysisSolution'),
- hidden: true,
- is_menu: false,
- name: 'dialysisSolution',
- meta: { title: 'dialysisSolution', noCache: true }
- },
- {
- path: '/patients/patient/:id/weight',
- component: () => import('@/xt_pages/user/weight'),
- hidden: true,
- is_menu: false,
- name: 'weight',
- meta: { title: 'weight', noCache: true }
- },
-
- {
- path: '/patients/patient/:id/dialysisRecord',
- component: () => import('@/xt_pages/user/dialysisRecord'),
- hidden: true,
- is_menu: false,
- name: 'dialysisRecord',
- meta: { title: 'dialysisRecord', noCache: true }
- },
- {
- path: '/patients/patient/:id/scheduling',
- component: () => import('@/xt_pages/user/scheduling'),
- hidden: true,
- is_menu: false,
- name: 'scheduling',
- meta: { title: 'scheduling', noCache: true }
- },
- {
- path: '/patients/patient/:id/doctorAdvice',
- component: () => import('@/xt_pages/user/doctorAdvice'),
- hidden: true,
- is_menu: false,
- name: 'doctorAdvice',
- meta: { title: 'doctorAdvice', noCache: true }
- },
- {
- path: '/patients/inspection',
- component: () => import('@/xt_pages/user/inspection'),
- hidden: true,
- is_menu: false,
- name: 'Inspection',
- meta: { title: 'inspection', noCache: true }
- },
- {
- path: '/patients/newinspection',
- component: () => import('@/xt_pages/user/newInspection'),
- hidden: true,
- is_menu: false,
- name: 'newInspection',
- meta: { title: 'newInspection', noCache: true }
- },
- {
- path: '/',
- component: () => import('@/xt_pages/user/courseOfDisease'),
- hidden: true,
- is_menu: false,
- name: 'CourseOfDiseaseManage',
- meta: { title: 'CourseOfDiseaseManage', noCache: true }
- },
-
- {
- path: '/patients/rescue',
- component: () => import('@/xt_pages/user/rescueRecord'),
- hidden: true,
- is_menu: false,
- name: 'RescueRecord',
- meta: { title: 'RescueRecord', noCache: true }
- },
- {
- path: '/patients/patient/:id/proeducation',
- component: () => import('@/xt_pages/user/proeducation'),
- hidden: true,
- is_menu: false,
- name: 'proeducation',
- meta: { title: 'proeducation', noCache: true }
- }
- ]
- },
- {
- path: '/workforce',
- component: Layout,
- redirect: 'noredirect',
- name: 'workforce',
- alwaysShow: true,
- meta: {
- title: 'workforce',
- icon: 'paiban'
- },
- children: [
- {
- path: '/workforce/appointment',
- component: () => import('@/xt_pages/workforce/appointment'),
- name: 'appointment',
- meta: { title: 'appointment', noCache: true }
- },
- {
- path: '/workforce/sign',
- component: () => import('@/xt_pages/workforce/sign'),
- hidden: true,
- is_menu: false,
- name: 'workforcesign',
- meta: { title: 'sign', noCache: true }
- },
- {
- path: '/workforce/remind',
- component: () => import('@/xt_pages/workforce/remind'),
- name: 'remind',
- meta: { title: 'remind', noCache: true }
- },
-
- // {
- // path: '/workforce/schedulePrint',
- // component: () => import('@/xt_pages/workforce/schedulePrint'),
- // name: 'schedulePrint',
- // meta: { title: 'schedulePrint', noCache: true }
- // },
- {
- path: '/workforce/template',
- component: () => import('@/xt_pages/workforce/template'),
- name: 'workforce_template',
- hidden: true,
- is_menu: false,
- meta: { title: 'workforce_template', noCache: true }
- },
- {
- path: '/workforce/schedule/print',
- component: () => import('@/xt_pages/workforce/schedule_print'),
- name: 'schedule_print',
- hidden: true,
- is_menu: false,
- meta: { title: 'schedule_print', noCache: true }
- }
- ]
- },
- {
- path: '/sign',
- component: Layout,
- redirct: '/sign/index',
- children: [{
- path: '/sign',
- component: () => import('@/xt_pages/sign/index'),
- name: 'sign',
- meta: { title: 'signWeight', icon: 'sign', noCache: true }
- }]
- },
- {
- path: '/dialysis/',
- component: Layout,
- redirect: 'noredirect',
- name: 'dialysis',
- alwaysShow: true,
- meta: {
- title: 'dialysis',
- icon: 'touxi'
- },
- children: [
- { path: '/dialysis/dialysisrecord', component: () => import('@/xt_pages/dialysis/schedualPatient'), name: '透析记录', meta: { title: '透析记录' }},
-
- {
- path: '/dialysis/record/:id',
- component: () => import('@/xt_pages/dialysis/dialysisPage'),
- hidden: true,
- is_menu: false,
- name: 'paper',
- meta: { title: 'paper', noCache: true }
- },
- {
- path: '/dialysis/print',
- component: () => import('@/xt_pages/dialysis/dialysisPrintOrder'),
- hidden: true,
- is_menu: false,
- name: 'dialysisPrintOrder',
- meta: { title: 'dialysisPrintOrder', noCache: true }
- },
-
- // { path: 'advice', component: () => import('@/xt_pages/dialysis/doctorAdvice'), name: 'advice', meta: { title: 'advice' }},
- // { path: 'prepare', component: () => import('@/xt_pages/dialysis/dialysisPrepare'), name: 'prepare', meta: { title: 'prepare' }},
- { path: '/dialysis/watch', component: () => import('@/xt_pages/dialysis/bloodPresssWatch'), name: 'watch', meta: { title: 'watch' }},
- { path: '/dialysis/details', component: () => import('@/xt_pages/dialysis/details'), name: 'details', meta: { title: 'details' }, is_menu: false },
- {
- path: '/dialysis/print/batch',
- component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order'),
- hidden: true,
- is_menu: false,
- name: 'dialysis_batch_print',
- meta: { title: '批量打印', noCache: true }
- },
- { path: '/dialysis/board', component: () => import('@/xt_pages/dialysis/bulletinBoard'), name: '数据看板', meta: { title: '数据看板' }}
- ]
- },
- {
- path: '/stock/',
- component: Layout,
- redirect: 'noredirect',
- name: 'stockManage',
- meta: { title: 'stockManage', icon: 'stock' },
- children: [
- {
- path: '/stock/in',
- component: () => import('@/xt_pages/stock/stockInOrder'),
- name: 'stockInOrder',
- meta: { title: 'stockInOrder', noCache: true }
- }, {
- path: '/stock/in/other',
- component: () => import('@/xt_pages/stock/otherStockInOrder'),
- name: 'otherStockInOrder',
- meta: { title: 'otherStockInOrder', noCache: true }
- },
- // {
- // path: '/stock/return',
- // component: () => import('@/xt_pages/stock/salesReturnOrder'),
- // name: 'salesReturnOrder',
- // meta: { title: 'salesReturnOrder', noCache: true }
- // },
- {
- path: '/stock/return/other',
- component: () => import('@/xt_pages/stock/otherSalesReturnOrder'),
- name: 'otherSalesReturnOrder',
- meta: { title: 'otherSalesReturnOrder', noCache: true }
- },
- {
- path: '/stock/out',
- component: () => import('@/xt_pages/stock/stockOutOrder'),
- name: 'stockOutOrder',
- meta: { title: 'stockOutOrder', noCache: true }
- }, {
- path: '/stock/out/other',
- component: () => import('@/xt_pages/stock/otherStockOutOrder'),
- name: 'otherStockOutOrder',
- meta: { title: 'otherStockOutOrder', noCache: true }
- }, {
- path: '/stock/cancel',
- component: () => import('@/xt_pages/stock/cancelStockOrder'),
- name: 'cancelStockOrder',
- meta: { title: 'cancelStockOrder', noCache: true }
- }, {
- path: '/stock/cancel/other',
- component: () => import('@/xt_pages/stock/otherCancelStockOrder'),
- name: 'otherCancelStockOrder',
- meta: { title: 'otherCancelStockOrder', noCache: true }
- },
- {
- path: '/stock/query',
- component: () => import('@/xt_pages/stock/stockQuery'),
- name: 'stockQuery',
- meta: { title: 'stockQuery' }
- },
- {
- path: '/stock/detail',
- component: () => import('@/xt_pages/stock/stockDetailIndex'),
- name: 'stockDetail',
- meta: { title: 'stockDetail' }
- },
- {
- path: '/stock/in/add',
- component: () => import('@/xt_pages/stock/stockInOrderAdd'),
- name: 'stockInOrderAdd',
- hidden: true,
- is_menu: false,
- meta: { title: 'stockInOrderAdd' }
- },
- {
- path: '/stock/in/detail',
- component: () => import('@/xt_pages/stock/stockInDetail'),
- name: 'stockInDetail',
- hidden: true,
- is_menu: false,
- meta: { title: 'stockInDetail' }
- }, {
- path: '/stock/return/detail',
- component: () => import('@/xt_pages/stock/salesReturnDetail'),
- name: 'salesReturnDetail',
- hidden: true,
- is_menu: false,
- meta: { title: 'salesReturnDetail' }
- }, {
- path: '/stock/return/add',
- component: () => import('@/xt_pages/stock/salesReturnOrderAdd'),
- name: 'salesReturnOrderAdd',
- hidden: true,
- is_menu: false,
- meta: { title: 'salesReturnOrderAdd' }
- }, {
- path: '/stock/out/add',
- component: () => import('@/xt_pages/stock/stockOutOrderAdd'),
- name: 'stockOutOrderAdd',
- hidden: true,
- is_menu: false,
- meta: { title: 'stockOutOrderAdd', noCache: true }
- },
- {
- path: '/stock/out/detail',
- component: () => import('@/xt_pages/stock/stockOutDetail'),
- name: 'stockOutDetail',
- hidden: true,
- is_menu: false,
- meta: { title: 'stockOutDetail', noCache: true }
- },
- {
- path: '/stock/cancel/add',
- component: () => import('@/xt_pages/stock/cancelStockOrderAdd'),
- name: 'cancelStockOrderAdd',
- hidden: true,
- is_menu: false,
- meta: { title: 'cancelStockOrderAdd', noCache: true }
- },
- {
- path: '/stock/cancel/detail',
- component: () => import('@/xt_pages/stock/cancelStockDetail'),
- name: 'cancelStockDetail',
- hidden: true,
- is_menu: false,
- meta: { title: 'cancelStockDetail', noCache: true }
- },
- {
- path: '/stock/config',
- component: () => import('@/xt_pages/stock/index'),
- name: 'config',
- meta: { title: 'config' }
- }
-
- ]
- },
- {
- path: '/qcd',
- component: Layout,
- redirect: '/qcd/dialysistotal',
- name: 'qcd',
- alwaysShow: true,
- meta: { title: '质控管理', icon: 'table' },
- children: [
- { path: '/statistics/index', component: () => import('@/xt_pages/statistics/index'), name: 'statistics', meta: { title: 'statistics' }},
- { path: '/qcd/dialysistotal', component: () => import('@/xt_pages/qcd/dialysisTotal'), name: 'dialysistotal', meta: { title: '透析总量' }},
- { path: '/qcd/processindicators', component: () => import('@/xt_pages/qcd/processIndicators'), name: 'processIndicators', meta: { title: '过程指标' }},
- { path: '/qcd/outcomeIndicators/control', component: () => import('@/xt_pages/qcd/outcomeIndicators/control'), name: 'outcomeIndicatorsControl', meta: { title: '结果指标' }},
- { path: '/qcd/outcomeIndicators/query', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/outcomeIndicators/query'), name: 'outcomeIndicatorsQuery', meta: { title: '指标查询' }},
- { path: '/qcd/patientanalysis/total', component: () => import('@/xt_pages/qcd/patientAnalysis/total'), name: 'patientAnalysisTotal', meta: { title: '患者分析' }},
- { path: '/qcd/patientanalysis/weight', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/weight'), name: 'patientAnalysisWeight', meta: { title: '体重分析' }},
- { path: '/qcd/patientanalysis/bloodpressure', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/bloodPressure'), name: 'patientAnalysisBloodPressure', meta: { title: '血压分析' }},
- { path: '/qcd/patientanalysis/dialysisage', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/dialysisAge'), name: 'patientAnalysisDialysisAge', meta: { title: '透析龄分析' }},
- { path: '/qcd/patientanalysis/lapseto', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/lapseto'), name: 'patientAnalysisLapseto', meta: { title: '转归分析' }},
- { path: '/qcd/patientanalysis/complication', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/complication'), name: 'patientAnalysisComplication', meta: { title: '并发症分析' }},
- { path: '/qcd/patientanalysis/infectiousdiseases', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/infectiousDiseases'), name: 'patientAnalysisInfectiousDiseases', meta: { title: '传染病分析' }},
- { path: '/qcd/pa/person/lapseto', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/lapseto'), name: 'paPersonLapseto', meta: { title: '转归' }},
- { path: '/qcd/pa/person/weight', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/weight'), name: 'paPersonWeight', meta: { title: '体重' }},
- { path: '/qcd/pa/person/bloodpressure', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/bloodPressure'), name: 'paPersonBloodPressure', meta: { title: '血压' }},
- { path: '/qcd/pa/person/indicators', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/indicators'), name: 'paPersonIndicators', meta: { title: '指标控制' }},
- { path: '/qcd/pa/person/oralmedicine', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/oralMedicine'), name: 'paPersonOralMedicine', meta: { title: '口服药' }}
- ]
- },
- {
- path: '/data/',
- component: Layout,
- redirect: 'noredirect',
- name: 'data',
- meta: { title: 'data_dictionary', icon: 'excel' },
- children: [
- { path: '/data/dictionary', component: () => import('@/xt_pages/data/index'), name: 'dictionary', meta: { title: 'field_config' }},
- { path: '/data/template', component: () => import('@/xt_pages/data/template'), name: 'template', meta: { title: 'template' }},
- { path: '/data/druguse', component: () => import('@/xt_pages/data/druguseTemplate'), name: 'druguse', meta: { title: 'druguse' }}
- ]
- },
- {
- path: '/device',
- component: Layout,
- redirect: '/device/main',
- name: 'device',
- alwaysShow: true,
- meta: { title: 'deviceManage', icon: 'shebei' },
- children: [
- { path: '/device/zones', component: () => import('@/xt_pages/device/zone_main'), name: 'deviceZoneManage', meta: { title: 'deviceZoneManage' }},
- { path: '/device/groups', component: () => import('@/xt_pages/device/group_main'), name: 'deviceGroupManage', meta: { title: 'deviceGroupManage' }},
- { path: '/device/numbers', component: () => import('@/xt_pages/device/number_main'), name: 'deviceNumberManage', meta: { title: 'deviceNumberManage' }},
- { path: '/device/main', component: () => import('@/xt_pages/device/main'), name: 'dialysisMachineManage', meta: { title: 'dialysisMachineManage' }}
- ]
- },
-
- {
- path: '/dialysisIndex',
- component: Layout,
- redirct: '/dialysisIndex/index',
- children: [{
- path: '/dialysisIndex',
- component: () => import('@/xt_pages/dialysis/scheduleIndex'),
- name: 'dialysisIndex',
- meta: { title: 'dialysisIndex', icon: 'dialysisIndex', noCache: true }
- }]
- },
-
- // /////////////////////////////////////线在end
- {
- path: '/role',
- component: Layout,
- redirect: '/role/admin/manage',
- name: 'role',
- alwaysShow: true,
- meta: { title: 'permissionManage', icon: 'role' },
- children: [
- { path: '/role/admin/manage', component: () => import('@/xt_pages/role/admin'), name: 'adminManage', meta: { title: 'adminManage' }},
- { path: '/role/manage', component: () => import('@/xt_pages/role/role'), name: 'roleManage', meta: { title: 'roleManage' }},
- { path: '/role/admin/create', component: () => import('@/xt_pages/role/CreateAdmin'), name: 'addAdmin', meta: { title: 'addAdmin', noCache: true }, hidden: true, is_menu: false },
- { path: '/role/admin/edit', component: () => import('@/xt_pages/role/EditAdmin'), name: 'editAdmin', meta: { title: 'editAdmin', noCache: true }, hidden: true, is_menu: false },
- { path: '/role/perview', component: () => import('@/xt_pages/role/EditPerview'), name: 'setupPerview', meta: { title: 'setupPerview', noCache: true }, hidden: true, is_menu: false },
- { path: '/role/admin/specialpermission', component: () => import('@/xt_pages/role/special_permission'), name: 'special_permission_manage', meta: { title: 'special_permission_manage' }}
- ]
- },
-
-
- ]
|