|
@@ -9,33 +9,12 @@ Vue.use(Router)
|
|
|
import Layout from '@/layout'
|
|
|
|
|
|
const uiVersion = domain.uiVersion
|
|
|
-
|
|
|
-/* Router Modules */
|
|
|
-// import componentsRouter from './modules/components'
|
|
|
-// import chartsRouter from './modules/charts'
|
|
|
-// import tableRouter from './modules/table'
|
|
|
-// import nestedRouter from './modules/nested'
|
|
|
-
|
|
|
-/**
|
|
|
- * Note: sub-menu only appear when route children.length >= 1
|
|
|
- * Detail see: https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html
|
|
|
- *
|
|
|
- * hidden: true if set true, item will not show in the sidebar(default is false)
|
|
|
- * alwaysShow: true if set true, will always show the root menu
|
|
|
- * if not set alwaysShow, when item has more than one children route,
|
|
|
- * it will becomes nested mode, otherwise not show the root menu
|
|
|
- * redirect: noRedirect if set noRedirect will no redirect in the breadcrumb
|
|
|
- * name:'router-name' the name is used by <keep-alive> (must set!!!)
|
|
|
- * meta : {
|
|
|
- roles: ['admin','editor'] control the page roles (you can set multiple roles)
|
|
|
- title: 'title' the name show in sidebar and breadcrumb (recommend set)
|
|
|
- icon: 'svg-name'/'el-icon-x' the icon show in the sidebar
|
|
|
- noCache: true if set true, the page will no be cached(default is false)
|
|
|
- affix: true if set true, the tag will affix in the tags-view
|
|
|
- breadcrumb: false if set false, the item will hidden in breadcrumb(default is true)
|
|
|
- activeMenu: '/example/list' if set path, the sidebar will highlight the path you set
|
|
|
- }
|
|
|
- */
|
|
|
+const enableBroadcast = domain.enableBroadcast
|
|
|
+const enableMobile = domain.enableMobile
|
|
|
+const enableEntraceguard = domain.enableEntraceguard
|
|
|
+const enableNBiot = domain.enableNBiot
|
|
|
+const enableCustomerDevice = domain.enableCustomerDevice
|
|
|
+const enableSosDevice = domain.enableSosDevice
|
|
|
|
|
|
/**
|
|
|
* constantRoutes
|
|
@@ -95,187 +74,160 @@ export const constantRoutes = [
|
|
|
]
|
|
|
// 科室级页面
|
|
|
export const partRoutes = [
|
|
|
+ //空间设备相关
|
|
|
{
|
|
|
- path: '/frameTreeView',
|
|
|
+ path: '/frame',
|
|
|
component: Layout,
|
|
|
- redirect: '/hospitalFrame/frameTreeView',
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: 'frameTreeView',
|
|
|
+ redirect: '/frame/tree',
|
|
|
+ name: 'part-frame-tree',
|
|
|
+ meta: { title: i18n.t('tab.frameManage'), icon: 'tree', noCache: true },
|
|
|
+ children: [{
|
|
|
+ path: 'tree',
|
|
|
component: () => import('@/views/hospitalFrame/frameTreeView'),
|
|
|
- name: 'hospitalFrame',
|
|
|
+ name: 'part-frame-tree',
|
|
|
meta: { title: i18n.t('tab.frameManage'), icon: 'tree', noCache: true } // 空间位置
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/device',
|
|
|
- component: Layout,
|
|
|
- name: 'part-device',
|
|
|
- meta: {
|
|
|
- title: i18n.t('deviceManage.deviceManage'),
|
|
|
- icon: 'devices'
|
|
|
- },
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: 'ncs-device',
|
|
|
- component: () => import('@/views/ncs-device/deviceManagement'),
|
|
|
- name: 'CallingDevice',
|
|
|
- meta: { title: i18n.t('tab.deviceManage'), icon: 'component', noCache: true } // 所有设备
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'ncs-nurse-watch',
|
|
|
- component: () => import('@/views/ncs-device/nurse_watch'),
|
|
|
- name: 'nurse_watch',
|
|
|
- meta: { title: i18n.t('tab.mobileDeviceManage'), icon: 'el-icon-watch', noCache: true } // 移动设备
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'ncs-user-watch',
|
|
|
- component: () => import('@/views/ncs-device/user_watch'),
|
|
|
- name: 'user_watch',
|
|
|
- meta: { title: i18n.t('tab.userLocationManage'), icon: 'el-icon-watch-1', noCache: true } // 用户设备
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'ncs-sos-device',
|
|
|
- component: () => import('@/views/ncs-sos-device-setting/sos_device_setting'),
|
|
|
- name: 'sos-device-setting',
|
|
|
- meta: { title: i18n.t('tab.sosDeviceSettingManage'), icon: 'el-icon-s-help', noCache: true } // 报警设备
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'myMapHtml',
|
|
|
- component: () => import('@/views/customer/myMapHtml'),
|
|
|
- name: 'myMapHtml',
|
|
|
- meta: { title: i18n.t('customerManage.footprint'), icon: 'area', noCache: true }, // 足迹
|
|
|
- hidden: true
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'nbdevice-condition',
|
|
|
- component: () => import('@/views/ncs-device/nbDeviceCondition'),
|
|
|
- name: 'NbdeviceCondition',
|
|
|
- meta: { title: i18n.t('tab.nbiotDeviceStatus'), icon: 'iot', noCache: true },
|
|
|
- hidden: uiVersion === 2
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'information-board',
|
|
|
- component: () => import('@/views/calling-board/index'),
|
|
|
- name: 'CallingBoard',
|
|
|
- meta: { title: i18n.t('tab.boardManage'), icon: 'infomation_board', noCache: true },
|
|
|
- hidden: uiVersion === 2
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'custom-infoboard',
|
|
|
- component: () => import('@/views/custom-infoboard/board-title'),
|
|
|
- name: 'BoardTitle',
|
|
|
- meta: { title: i18n.t('tab.customBoardManage'), icon: 'designer', noCache: true },
|
|
|
- hidden: uiVersion === 2
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'device-menu',
|
|
|
- component: () => import('@/views/ncs-device-menu/index'),
|
|
|
- name: 'DeviceMenu',
|
|
|
- meta: { title: i18n.t('tab.deviceMenuManager'), icon: 'el-icon-menu', noCache: true }
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'led-deviceManager',
|
|
|
- component: () => import('@/views/ncs-led/ledDeviceManagement'),
|
|
|
- name: 'LedDeviceManager',
|
|
|
- meta: { title: i18n.t('tab.ledDeviceManager'), icon: 'led', noCache: true },
|
|
|
- hidden: uiVersion === 2
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'led-control',
|
|
|
- component: () => import('@/views/ncs-led/ledControl'),
|
|
|
- name: 'LedControl',
|
|
|
- meta: { title: i18n.t('tab.ledDevice'), icon: 'el-icon-message-solid', noCache: true }, // LED点阵屏
|
|
|
- hidden: uiVersion === 2
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- // {
|
|
|
- // path: '/ncs-device',
|
|
|
- // component: Layout,
|
|
|
- // redirect: '/ncs-device/index',
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // path: 'index',
|
|
|
- // // component: () => import('@/views/ncs-device/index'),
|
|
|
- // component: () => import('@/views/ncs-device/deviceManagement'),
|
|
|
- // name: 'CallingDevice',
|
|
|
- // meta: { title: i18n.t('tab.deviceManage'), icon: 'component', noCache: true } // 所有设备
|
|
|
- // }
|
|
|
- // ]
|
|
|
- // },
|
|
|
- {
|
|
|
- path: '/ncs-clerk',
|
|
|
- component: Layout,
|
|
|
- redirect: '/ncs-clerk/clerkList',
|
|
|
+ },{
|
|
|
+ path: 'clerk_frame_manage',
|
|
|
+ component: () => import('@/views/ncs-clerk-frame-manage/index'),
|
|
|
+ name: 'clerk-frame-manage',
|
|
|
+ meta: { title: i18n.t('tab.staffManageFrames'), icon: 'frame_manage', noCache: true }
|
|
|
+ },{
|
|
|
+ path: 'device',
|
|
|
+ name: 'part-device',
|
|
|
+ component: () => import('@/views/ncs-device/index'),
|
|
|
+ redirect: '/frame/device/list',
|
|
|
+ meta: {
|
|
|
+ title: i18n.t('deviceManage.deviceManage'),
|
|
|
+ icon: 'devices'
|
|
|
+ },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'list',
|
|
|
+ component: () => import('@/views/ncs-device/deviceManagement'),
|
|
|
+ name: 'device-list',
|
|
|
+ meta: { title: i18n.t('tab.deviceManage'), icon: 'component', noCache: true } // 所有设备
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'mobile',
|
|
|
+ component: () => import('@/views/ncs-device/nurse_watch'),
|
|
|
+ name: 'device-mobile',
|
|
|
+ hidden: !enableMobile,
|
|
|
+ meta: { title: i18n.t('tab.mobileDeviceManage'), icon: 'el-icon-watch', noCache: true } // 移动设备
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'user_watch',
|
|
|
+ component: () => import('@/views/ncs-device/user_watch'),
|
|
|
+ name: 'user-watch',
|
|
|
+ hidden: !enableCustomerDevice,
|
|
|
+ meta: { title: i18n.t('tab.userLocationManage'), icon: 'el-icon-watch-1', noCache: true } // 用户设备
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'sos',
|
|
|
+ component: () => import('@/views/ncs-sos-device-setting/sos_device_setting'),
|
|
|
+ name: 'sos-device',
|
|
|
+ hidden: !enableSosDevice,
|
|
|
+ meta: { title: i18n.t('tab.sosDeviceSettingManage'), icon: 'el-icon-s-help', noCache: true } // 报警设备
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'map',
|
|
|
+ component: () => import('@/views/customer/myMapHtml'),
|
|
|
+ name: 'device-map',
|
|
|
+ meta: { title: i18n.t('customerManage.footprint'), icon: 'area', noCache: true }, // 足迹
|
|
|
+ hidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'nbdevice_condition',
|
|
|
+ component: () => import('@/views/ncs-device/nbDeviceCondition'),
|
|
|
+ name: 'nbdevice-condition',
|
|
|
+ meta: { title: i18n.t('tab.nbiotDeviceStatus'), icon: 'iot', noCache: true },
|
|
|
+ hidden: !enableNBiot
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'information_board',
|
|
|
+ component: () => import('@/views/calling-board/index'),
|
|
|
+ name: 'information-board',
|
|
|
+ meta: { title: i18n.t('tab.boardManage'), icon: 'infomation_board', noCache: true },
|
|
|
+ hidden: uiVersion === 2
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'custom_infoboard',
|
|
|
+ component: () => import('@/views/custom-infoboard/board-title'),
|
|
|
+ name: 'board-title',
|
|
|
+ meta: { title: i18n.t('tab.customBoardManage'), icon: 'designer', noCache: true },
|
|
|
+ hidden: uiVersion === 2
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'device_menu',
|
|
|
+ component: () => import('@/views/ncs-device-menu/index'),
|
|
|
+ name: 'device-menu',
|
|
|
+ meta: { title: i18n.t('tab.deviceMenuManager'), icon: 'el-icon-menu', noCache: true }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'led',
|
|
|
+ component: () => import('@/views/ncs-led/ledDeviceManagement'),
|
|
|
+ name: 'led-manager',
|
|
|
+ meta: { title: i18n.t('tab.ledDeviceManager'), icon: 'led', noCache: true },
|
|
|
+ hidden: uiVersion === 2
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'led-control',
|
|
|
+ component: () => import('@/views/ncs-led/ledControl'),
|
|
|
+ name: 'led-control',
|
|
|
+ meta: { title: i18n.t('tab.ledDevice'), icon: 'el-icon-message-solid', noCache: true }, // LED点阵屏
|
|
|
+ hidden: true
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ //职员相关
|
|
|
+ {
|
|
|
+ path: '/clerk',
|
|
|
+ component: Layout,
|
|
|
+ redirect: '/clerk/list',
|
|
|
name: 'part-clerk',
|
|
|
meta: { title: i18n.t('tab.clerkManage'), icon: 'peoples', noCache: true },
|
|
|
children: [
|
|
|
{
|
|
|
- path: 'clerkList',
|
|
|
+ path: 'list',
|
|
|
component: () => import('@/views/ncs-clerk/clerkManagement'),
|
|
|
- name: 'clerkList',
|
|
|
+ name: 'clerk-list',
|
|
|
meta: { title: i18n.t('tab.clerkManage'), icon: 'el-icon-user-solid', noCache: true }
|
|
|
},
|
|
|
{
|
|
|
- path: 'nfcInteractionList',
|
|
|
+ path: 'nfc_interaction_list',
|
|
|
component: () => import('@/views/nfc-interaction/index'),
|
|
|
- name: 'nfcInteractionList',
|
|
|
+ name: 'nfc-interaction-list',
|
|
|
meta: { title: i18n.t('tab.clerkCalendar'), icon: 'el-icon-date', noCache: true }
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
+ //门禁
|
|
|
{
|
|
|
- path: '/entrace-guard',
|
|
|
+ path: '/entrace_guard',
|
|
|
component: Layout,
|
|
|
- redirect: '/entrace-guard/users',
|
|
|
+ name: 'entrace-guard',
|
|
|
+ hidden: !enableEntraceguard,
|
|
|
children: [
|
|
|
{
|
|
|
path: 'users',
|
|
|
component: () => import('@/views/entrace-guard/users'),
|
|
|
- name: 'users',
|
|
|
- meta: { title: i18n.t('tab.entraceguardUser'), icon: 'pass_through', noCache: true }
|
|
|
+ name: 'entrace-guard',
|
|
|
+ meta: { title: i18n.t('tab.entraceguardUser'), icon: 'pass_through', noCache: true },
|
|
|
+ hidden: !enableEntraceguard
|
|
|
}]
|
|
|
-
|
|
|
},
|
|
|
+ //客户信息
|
|
|
{
|
|
|
- path: '/ncs-clerk-frame-manage',
|
|
|
+ path: '/customer',
|
|
|
component: Layout,
|
|
|
- redirect: '/ncs-clerk-frame-manage/index',
|
|
|
+ redirect: '/customer/list',
|
|
|
+ name: 'customer',
|
|
|
children: [
|
|
|
{
|
|
|
- path: 'clerkList',
|
|
|
- component: () => import('@/views/ncs-clerk-frame-manage/index'),
|
|
|
- name: 'clerkList',
|
|
|
- meta: { title: i18n.t('tab.staffManageFrames'), icon: 'frame_manage', noCache: true }
|
|
|
-
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
-
|
|
|
- // {
|
|
|
- // path: '/customer',
|
|
|
- // component: Layout,
|
|
|
- // redirect: '/customer/list',
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // path: 'customer',
|
|
|
- // component: () => import('@/views/customer/list'),
|
|
|
- // name: 'customerList',
|
|
|
- // meta: { title: '入住人管理', icon: 'el-icon-s-custom', noCache: true }
|
|
|
- // }
|
|
|
- // ]
|
|
|
- // },
|
|
|
- {
|
|
|
- path: '/customerlist',
|
|
|
- component: Layout,
|
|
|
- redirect: '/customerlist/index',
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: 'index',
|
|
|
+ path: 'list',
|
|
|
component: () => uiVersion === 1 ? import('@/views/customer/patientManagement') : uiVersion === 2 ? import('@/views/customer/customerManagement') : import('@/views/customer/elderlyCareManagement'),
|
|
|
- name: uiVersion === 1 ? 'patientManagement' : uiVersion === 2 ? 'customerManager' : 'elderlyCareManager',
|
|
|
+ name: 'customer-manager',
|
|
|
meta: {
|
|
|
title: uiVersion === 1 ? i18n.t('tab.patientManage') : i18n.t('tab.customerManage'),
|
|
|
icon: 'el-icon-s-custom',
|
|
@@ -283,9 +235,9 @@ export const partRoutes = [
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- path: '/allMap',
|
|
|
+ path: 'map',
|
|
|
component: () => import('@/views/customer/allMap'),
|
|
|
- name: 'allMap',
|
|
|
+ name: 'map',
|
|
|
meta: { title: '用户分布', icon: 'area', noCache: true },
|
|
|
hidden: true
|
|
|
},
|
|
@@ -298,345 +250,190 @@ export const partRoutes = [
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
- // {
|
|
|
- // path: '/ncs-nurse-watch',
|
|
|
- // component: Layout,
|
|
|
- // redirect: '/ncs-device/nurse_watch',
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // path: 'index',
|
|
|
- // component: () => import('@/views/ncs-device/nurse_watch'),
|
|
|
- // name: 'nurse_watch',
|
|
|
- // meta: { title: i18n.t('tab.mobileDeviceManage'), icon: 'el-icon-watch', noCache: true } // 移动设备
|
|
|
- // },
|
|
|
- // {
|
|
|
- // path: '/myMapHtml',
|
|
|
- // component: () => import('@/views/customer/myMapHtml'),
|
|
|
- // name: 'myMapHtml',
|
|
|
- // meta: { title: i18n.t('customerManage.footprint'), icon: 'area', noCache: true },
|
|
|
- // hidden: true
|
|
|
- // }
|
|
|
- // ]
|
|
|
- // },
|
|
|
- // {
|
|
|
- // path: '/ncs-user-watch',
|
|
|
- // component: Layout,
|
|
|
- // redirect: '/ncs-device/user_watch',
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // path: 'index',
|
|
|
- // component: () => import('@/views/ncs-device/user_watch'),
|
|
|
- // name: 'user_watch',
|
|
|
- // meta: { title: i18n.t('tab.userLocationManage'), icon: 'el-icon-watch', noCache: true }
|
|
|
- // }
|
|
|
- // ]
|
|
|
- // },
|
|
|
- // {
|
|
|
- // path: '/ncs-sos-device',
|
|
|
- // component: Layout,
|
|
|
- // redirect: '/ncs-device/sos_device',
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // path: 'index',
|
|
|
- // component: () => import('@/views/ncs-sos-device-setting/sos_device_setting'),
|
|
|
- // name: 'sos-device-setting',
|
|
|
- // meta: { title: i18n.t('tab.sosDeviceSettingManage'), icon: 'el-icon-s-help', noCache: true }
|
|
|
- // }
|
|
|
- // ]
|
|
|
- // },
|
|
|
- {
|
|
|
- path: '/ncs-channel',
|
|
|
- component: Layout,
|
|
|
- redirect: '/ncs-channel/index',
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: 'index',
|
|
|
- component: () => import('@/views/ncs-channel/index'),
|
|
|
- name: 'ncsChannel',
|
|
|
- meta: { title: i18n.t('tab.channelManage'), icon: 'el-icon-mobile-phone', noCache: true }
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/ncs-channel/history/:id?',
|
|
|
- component: () => import('@/views/ncs-channel/channelImHistory'),
|
|
|
- name: 'channelImHistory',
|
|
|
- meta: { title: i18n.t('tab.channelImHistory'), icon: 'area', noCache: true },
|
|
|
- hidden: true
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
+ //便签
|
|
|
{
|
|
|
path: '/remark',
|
|
|
component: Layout,
|
|
|
- redirect: '/remark/index',
|
|
|
+ name: 'remark-list',
|
|
|
children: [
|
|
|
{
|
|
|
- path: 'remark',
|
|
|
+ path: 'list',
|
|
|
component: () => import('@/views/ncs-remark/index'),
|
|
|
- name: 'remarkList',
|
|
|
+ name: 'remark-list',
|
|
|
meta: { title: i18n.t('tab.remarkManage'), icon: 'el-icon-s-order', noCache: true }
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
+ //任务
|
|
|
{
|
|
|
path: '/task',
|
|
|
component: Layout,
|
|
|
- redirect: '/task/index',
|
|
|
+ name: 'task-list',
|
|
|
children: [
|
|
|
{
|
|
|
- path: 'task',
|
|
|
+ path: 'list',
|
|
|
component: () => import('@/views/ncs-task/index'),
|
|
|
- name: 'taskList',
|
|
|
+ name: 'task-list',
|
|
|
meta: { title: i18n.t('tab.taskManage'), icon: 'table', noCache: true }
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
+ //交互信息
|
|
|
{
|
|
|
- path: '/ncs-interaction',
|
|
|
+ path: '/interaction',
|
|
|
component: Layout,
|
|
|
- redirect: '/ncs-interaction/index',
|
|
|
+ redirect: '/interaction/history',
|
|
|
+ name: 'interaction',
|
|
|
+ meta: { title: i18n.t('tab.interaction'), icon: 'list', noCache: true },
|
|
|
children: [
|
|
|
{
|
|
|
- path: 'index',
|
|
|
+ path: 'history',
|
|
|
component: () => import('@/views/ncs-interaction/index'),
|
|
|
- name: 'CallingList',
|
|
|
+ name: 'interaction-history',
|
|
|
meta: { title: i18n.t('tab.interactionHistory'), icon: 'list', noCache: true }
|
|
|
+ },{
|
|
|
+ path: 'chars',
|
|
|
+ component: () => import('@/views/ncs-chars/index'),
|
|
|
+ name: 'interaction-chars',
|
|
|
+ meta: { title: i18n.t('tab.interactionChars'), icon: 'el-icon-pie-chart', noCache: true }
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
-
|
|
|
- // {
|
|
|
- // path: '/calling-message',
|
|
|
- // component: Layout,
|
|
|
- // redirect: '/calling-message/index',
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // path: 'index',
|
|
|
- // component: () => import('@/views/calling-message/index'),
|
|
|
- // name: 'CallingMessage',
|
|
|
- // meta: { title: '留言设置', icon: 'email', noCache: true }
|
|
|
- // }
|
|
|
- // ]
|
|
|
- // },
|
|
|
-
|
|
|
- {
|
|
|
- path: '',
|
|
|
- component: Layout,
|
|
|
- redirect: '/frameGroup/index',
|
|
|
- name: 'frameGroup',
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: '/frameGroup/index',
|
|
|
- component: () => import('@/views/hospitalFrame/frameGroup'),
|
|
|
- name: 'frameGroup',
|
|
|
- meta: { title: i18n.t('tab.frameGroupManage'), icon: 'area', noCache: true }
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/frameGroup/edit/:id?',
|
|
|
- component: () => import('@/views/hospitalFrame/frameGroupEdit'),
|
|
|
- name: 'frameGroupEdit',
|
|
|
- meta: { title: i18n.t('tab.frameGroupEdit'), icon: 'area', noCache: true },
|
|
|
- hidden: true
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'nurse_watch_frame/:id?',
|
|
|
- component: () => import('@/views/hospitalFrame/nurse_watch_frame'),
|
|
|
- name: 'nurseWatchFrame',
|
|
|
- meta: { title: i18n.t('tab.watchFrameManage'), icon: 'area', noCache: true },
|
|
|
- hidden: true
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
+ //广播
|
|
|
{
|
|
|
- path: '',
|
|
|
+ path: '/broadcast',
|
|
|
component: Layout,
|
|
|
- redirect: '/broadcast/index',
|
|
|
+ name: 'broadcast',
|
|
|
+ hidden: !enableBroadcast || uiVersion !== 1,
|
|
|
children: [
|
|
|
{
|
|
|
- path: '/broadcast/index',
|
|
|
+ path: 'index',
|
|
|
component: () => import('@/views/ncs-broadcast/index'),
|
|
|
- name: 'Broadcast',
|
|
|
- meta: { title: i18n.t('tab.broadcastManage'), icon: 'el-icon-headset', noCache: true } // 广播设置
|
|
|
+ name: 'broadcast',
|
|
|
+ meta: { title: i18n.t('tab.broadcastManage'), icon: 'el-icon-headset', noCache: true }, // 广播设置
|
|
|
+ hidden: !enableBroadcast || uiVersion !== 1
|
|
|
},
|
|
|
{
|
|
|
- path: '/broadcast/edit/:id?',
|
|
|
+ path: 'edit/:id?',
|
|
|
component: () => import('@/views/ncs-broadcast/broadcastEdit'),
|
|
|
- name: 'broadcastEdit',
|
|
|
+ name: 'broadcast-edit',
|
|
|
meta: { title: i18n.t('tab.broadcastEdit'), icon: 'area', noCache: true },
|
|
|
hidden: true
|
|
|
}
|
|
|
- ],
|
|
|
- hidden: uiVersion !== 1
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/ncs-nurse-config',
|
|
|
+ ]
|
|
|
+ },{
|
|
|
+ path: '/infoboard_designer',
|
|
|
component: Layout,
|
|
|
- redirect: '/ncs-nurse-config/index',
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: 'index',
|
|
|
- component: () => import('@/views/ncs-nurse-config/index'),
|
|
|
- name: 'NcsNurseConfig',
|
|
|
- meta: { title: i18n.t('tab.nurseConfig'), icon: 'care1', noCache: true } // 护理参数
|
|
|
- }
|
|
|
- ],
|
|
|
- hidden: uiVersion !== 1
|
|
|
- },
|
|
|
- // {
|
|
|
- // path: '/calling-board',
|
|
|
- // component: Layout,
|
|
|
- // redirect: '/calling-board/index',
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // path: 'index',
|
|
|
- // component: () => import('@/views/calling-board/index'),
|
|
|
- // name: 'CallingBoard',
|
|
|
- // meta: { title: i18n.t('tab.boardManage'), icon: 'el-icon-data-board', noCache: true }
|
|
|
- // }
|
|
|
- // ],
|
|
|
- //
|
|
|
- // },
|
|
|
-
|
|
|
- // {
|
|
|
- // path: '/board-title',
|
|
|
- // component: Layout,
|
|
|
- // redirect: '/custom-infoboard/board-title',
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // path: 'index',
|
|
|
- // component: () => import('@/views/custom-infoboard/board-title'),
|
|
|
- // name: 'BoardTitle',
|
|
|
- // meta: { title: i18n.t('tab.customBoardManage'), icon: 'designer', noCache: true }
|
|
|
- // }
|
|
|
- // ],
|
|
|
- // hidden: uiVersion === 2
|
|
|
- // },
|
|
|
- {
|
|
|
- path: '/calling-board-designer',
|
|
|
- component: Layout,
|
|
|
- redirect: '/custom-infoboard/screen-designer',
|
|
|
+ name: 'infoboard-designer',
|
|
|
children: [
|
|
|
{
|
|
|
path: 'index/:id?',
|
|
|
component: () => import('@/views/custom-infoboard/infoboard-designer'), // 自定义看板 component: () => import('@/views/custom-infoboard/infoboard-designer'),资阳 component: () => import('@/views/custom-infoboard/screen-designer')
|
|
|
- name: 'BoardDesigner',
|
|
|
+ name: 'infoboard-designer',
|
|
|
meta: { title: i18n.t('tab.customBoardDesigner'), icon: 'el-icon-data-board', noCache: true }
|
|
|
}
|
|
|
],
|
|
|
hidden: true
|
|
|
- },
|
|
|
-
|
|
|
- {
|
|
|
- path: '/ncs-event',
|
|
|
- component: Layout,
|
|
|
- redirect: '/ncs-event/index',
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: 'index',
|
|
|
- component: () => import('@/views/ncs-event/index'),
|
|
|
- name: 'eventList',
|
|
|
- meta: { title: i18n.t('tab.eventManage'), icon: 'el-icon-notebook-2', noCache: true }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- // {
|
|
|
- // path: '/calling-deviceregisterparams',
|
|
|
- // component: Layout,
|
|
|
- // redirect: '/deviceregisterparams/index',
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // path: 'index',
|
|
|
- // component: () => import('@/views/calling-deviceRegisterParam/index'),
|
|
|
- // name: 'deviceRegisterParam',
|
|
|
- // meta: { title: '设备自动注册参数', icon: 'params', noCache: true }
|
|
|
- // }
|
|
|
- // ]
|
|
|
- // },
|
|
|
- {
|
|
|
- path: '/ncs-interaction-chars',
|
|
|
- component: Layout,
|
|
|
- redirect: '/ncs-interaction-chars/index',
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: 'index',
|
|
|
- component: () => import('@/views/ncs-chars/index'),
|
|
|
- name: 'interactionChars',
|
|
|
- meta: { title: i18n.t('tab.interactionChars'), icon: 'el-icon-pie-chart', noCache: true }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- // {
|
|
|
- // path: '/function-mapping',
|
|
|
- // component: Layout,
|
|
|
- // redirect: '/function-mapping/index',
|
|
|
- // children: [
|
|
|
- //
|
|
|
- // ]
|
|
|
- // },
|
|
|
- {
|
|
|
- path: '/components',
|
|
|
+ },{
|
|
|
+ path: '/settings',
|
|
|
component: Layout,
|
|
|
+ redirect: '/settings/index',
|
|
|
+ name: 'part-settings',
|
|
|
meta: {
|
|
|
- title: i18n.t('tab.bedsideInteration'),
|
|
|
- icon: 'component'
|
|
|
+ title: i18n.t('tab.settings'),
|
|
|
+ icon: 'el-icon-s-tools'
|
|
|
},
|
|
|
children: [
|
|
|
{
|
|
|
- path: '/function-mapping/index',
|
|
|
- component: () => import('@/views/function-mapping/index'),
|
|
|
- name: 'functionMapping',
|
|
|
- meta: { title: i18n.t('tab.functionRoleMapping'), icon: 'function', noCache: true }
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/interaction-chain/index',
|
|
|
- component: () => import('@/views/interaction-chain/index'),
|
|
|
- name: 'interactionChain',
|
|
|
- meta: { title: i18n.t('tab.interactionChain'), icon: 'squence', noCache: true } // 交互接收顺序
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/countdonw/index',
|
|
|
- component: () => import('@/views/ncs-countdown-config/index'),
|
|
|
- name: 'countdownConfig',
|
|
|
- meta: { title: i18n.t('tab.countdownConfig'), icon: 'countdown', noCache: true }
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/screentip/index',
|
|
|
- component: () => import('@/views/ncs-screentip/index'),
|
|
|
- name: 'screenTip',
|
|
|
- meta: { title: i18n.t('tab.screentip'), icon: 'screen_tip', noCache: true }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- // {
|
|
|
- // path: '/screen-tip',
|
|
|
- // component: Layout,
|
|
|
- // redirect: '/ncs-screentip/index',
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // path: 'index',
|
|
|
- // component: () => import('@/views/ncs-screentip/index'),
|
|
|
- // name: 'screenTip',
|
|
|
- // meta: { title: i18n.t('tab.screentip'), icon: 'screen_tip', noCache: true }
|
|
|
- // }
|
|
|
- // ]
|
|
|
- // },
|
|
|
- // {
|
|
|
- // path: '/interaction-chain',
|
|
|
- // component: Layout,
|
|
|
- // redirect: '/interaction-chain/index',
|
|
|
- // children: [
|
|
|
- //
|
|
|
- // ]
|
|
|
- // },
|
|
|
- {
|
|
|
- path: '/calling-setting',
|
|
|
- component: Layout,
|
|
|
- redirect: '/calling-setting/index',
|
|
|
- children: [
|
|
|
- {
|
|
|
path: 'index',
|
|
|
component: () => import('@/views/calling-setting/index'),
|
|
|
- name: 'CallingSetting',
|
|
|
- meta: { title: i18n.t('tab.partSetting'), icon: 'el-icon-s-tools', noCache: true } // 机构设置
|
|
|
+ name: 'part-settings',
|
|
|
+ meta: { title: i18n.t('tab.partSettings'), icon: 'el-icon-s-tools', noCache: true } // 机构设置
|
|
|
+ },{
|
|
|
+ path: 'nurse_config',
|
|
|
+ component: () => import('@/views/ncs-nurse-config/index'),
|
|
|
+ name: 'nurse-config',
|
|
|
+ meta: { title: i18n.t('tab.nurseConfig'), icon: 'care1', noCache: true }, // 护理参数
|
|
|
+ hidden: uiVersion !== 1
|
|
|
+ },{
|
|
|
+ path: 'channel',
|
|
|
+ component: () => import('@/views/ncs-channel/index'),
|
|
|
+ name: 'channel',
|
|
|
+ meta: { title: i18n.t('tab.channelManage'), icon: 'el-icon-mobile-phone', noCache: true },
|
|
|
+ children: [{
|
|
|
+ path: 'history/:id?',
|
|
|
+ component: () => import('@/views/ncs-channel/channelImHistory'),
|
|
|
+ name: 'channel-im-history',
|
|
|
+ meta: { title: i18n.t('tab.channelImHistory'), icon: 'area', noCache: true },
|
|
|
+ hidden: true
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },{
|
|
|
+ path: 'event_list',
|
|
|
+ component: () => import('@/views/ncs-event/index'),
|
|
|
+ name: 'event-list',
|
|
|
+ meta: { title: i18n.t('tab.eventManage'), icon: 'el-icon-notebook-2', noCache: true }
|
|
|
+ },{
|
|
|
+ path: 'components',
|
|
|
+ component: () => import('@/views/hospitalFrame/index'),
|
|
|
+ redirect: '/settings/components/function_mapping',
|
|
|
+ name: 'beds-side',
|
|
|
+ meta: {
|
|
|
+ title: i18n.t('tab.bedsideInteration'),
|
|
|
+ icon: 'component'
|
|
|
+ },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'function_mapping',
|
|
|
+ component: () => import('@/views/function-mapping/index'),
|
|
|
+ name: 'function-mapping',
|
|
|
+ meta: { title: i18n.t('tab.functionRoleMapping'), icon: 'function', noCache: true }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'interaction_chain',
|
|
|
+ component: () => import('@/views/interaction-chain/index'),
|
|
|
+ name: 'interaction-chain',
|
|
|
+ meta: { title: i18n.t('tab.interactionChain'), icon: 'squence', noCache: true } // 交互接收顺序
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'countdonw',
|
|
|
+ component: () => import('@/views/ncs-countdown-config/index'),
|
|
|
+ name: 'countdown-config',
|
|
|
+ meta: { title: i18n.t('tab.countdownConfig'), icon: 'countdown', noCache: true }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'screentip',
|
|
|
+ component: () => import('@/views/ncs-screentip/index'),
|
|
|
+ name: 'screen-tip',
|
|
|
+ meta: { title: i18n.t('tab.screentip'), icon: 'screen_tip', noCache: true }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },{
|
|
|
+ path: '/frame_group',
|
|
|
+ component: () => import('@/views/hospitalFrame/index'),
|
|
|
+ name: 'frame-group',
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'index',
|
|
|
+ component: () => import('@/views/hospitalFrame/frameGroup'),
|
|
|
+ name: 'frame-group',
|
|
|
+ meta: { title: i18n.t('tab.frameGroupManage'), icon: 'area', noCache: true }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'edit/:id?',
|
|
|
+ component: () => import('@/views/hospitalFrame/frameGroupEdit'),
|
|
|
+ name: 'frame-group-edit',
|
|
|
+ meta: { title: i18n.t('tab.frameGroupEdit'), icon: 'area', noCache: true },
|
|
|
+ hidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'watch_frame/:id?',
|
|
|
+ component: () => import('@/views/hospitalFrame/nurse_watch_frame'),
|
|
|
+ name: 'nurse-watch-frame',
|
|
|
+ meta: { title: i18n.t('tab.watchFrameManage'), icon: 'area', noCache: true },
|
|
|
+ hidden: true
|
|
|
+ }
|
|
|
+ ]
|
|
|
}
|
|
|
]
|
|
|
},
|
|
@@ -663,7 +460,6 @@ export const hospitalRoutes = [
|
|
|
children: [
|
|
|
{
|
|
|
path: 'index',
|
|
|
- // component: () => import('@/views/hospital/ncs_device/deviceManager'),
|
|
|
component: () => import('@/views/hospital/deviceManagement'),
|
|
|
name: 'hospital_deviceList',
|
|
|
meta: { title: i18n.t('tab.deviceManage'), icon: 'component', noCache: true }
|
|
@@ -691,11 +487,8 @@ export const hospitalRoutes = [
|
|
|
{
|
|
|
path: 'index',
|
|
|
component: () => import('@/views/hospital/customerManagement'),
|
|
|
- name: 'hospital_customerList',
|
|
|
+ name: 'customer-list',
|
|
|
meta: { title: i18n.t('tab.customerManage'), icon: 'el-icon-s-custom', noCache: true }
|
|
|
- // component: () => uiVersion === 1 ? import('@/views/customer/patientManagement') : import('@/views/customer/customerManagement'),
|
|
|
- // name: uiVersion === 1 ? 'hospital_patientList' : 'hospital_customerList',
|
|
|
- // meta: { title: uiVersion === 1 ? '入住人管理' : '用户管理', icon: 'el-icon-s-custom', noCache: true }
|
|
|
}
|
|
|
]
|
|
|
},
|
|
@@ -945,18 +738,6 @@ export const adminRoutes = [
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
- // {
|
|
|
- // path: '/ncs-linux-version',
|
|
|
- // component: Layout,
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // path: 'index',
|
|
|
- // component: () => import('@/views/ncs-linux-version/linuxVersionSetting'),
|
|
|
- // name: 'linuxVersion',
|
|
|
- // meta: { title: i18n.t('tab.linuxVersion'), icon: 'nested', noCache: true }
|
|
|
- // }
|
|
|
- // ]
|
|
|
- // },
|
|
|
{
|
|
|
path: '/device-frame',
|
|
|
component: Layout,
|