123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974 |
- 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/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',
- 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/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' }}
- ]
- },
-
- // /////////////////////////////////////线在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' }}
- ]
- }
- ]
|