|
@@ -8,7 +8,6 @@ Vue.use(Router)
|
|
|
/* Layout */
|
|
|
import Layout from '@/layout'
|
|
|
|
|
|
-const uiVersion = domain.uiVersion
|
|
|
const enableBroadcast = domain.enableBroadcast
|
|
|
const enableMobile = domain.enableMobile
|
|
|
const enableEntraceguard = domain.enableEntraceguard
|
|
@@ -113,28 +112,28 @@ export const partRoutes = [
|
|
|
path: 'mobile',
|
|
|
component: () => import('@/views/ncs-device/nurse_watch'),
|
|
|
name: 'device-mobile',
|
|
|
- hidden: !enableMobile,
|
|
|
+ needShow: 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,
|
|
|
+ needShow: enableCustomerDevice,
|
|
|
meta: { title: i18n.t('tab.userLocationManage'), icon: 'el-icon-watch-1', noCache: true } // 用户设备
|
|
|
},
|
|
|
{
|
|
|
path: 'huayi_sleep',
|
|
|
component: () => import('@/views/ncs-device/huayi_sleep'),
|
|
|
name: 'huayi-sleep',
|
|
|
- hidden: !enableCustomerDevice,
|
|
|
+ needShow: enableCustomerDevice,
|
|
|
meta: { title: i18n.t('zy20241209.huayiSleep'), icon: 'sleep_monitoring', noCache: true } // 用户设备
|
|
|
},
|
|
|
{
|
|
|
path: 'sos',
|
|
|
component: () => import('@/views/ncs-sos-device-setting/sos_device_setting'),
|
|
|
name: 'sos-device',
|
|
|
- hidden: !enableSosDevice,
|
|
|
+ needShow: enableSosDevice,
|
|
|
meta: { title: i18n.t('tab.sosDeviceSettingManage'), icon: 'el-icon-s-help', noCache: true } // 报警设备
|
|
|
},
|
|
|
{
|
|
@@ -149,21 +148,21 @@ export const partRoutes = [
|
|
|
component: () => import('@/views/ncs-device/nbDeviceCondition'),
|
|
|
name: 'nbdevice-condition',
|
|
|
meta: { title: i18n.t('tab.nbiotDeviceStatus'), icon: 'iot', noCache: true },
|
|
|
- hidden: !enableNBiot
|
|
|
+ needShow: 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
|
|
|
+ needHidden: [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
|
|
|
+ needHidden: [2]
|
|
|
},
|
|
|
{
|
|
|
path: 'index/:id?',
|
|
@@ -185,13 +184,6 @@ export const partRoutes = [
|
|
|
meta: { title: i18n.t('tab.deviceMenuDetail'), icon: 'el-icon-tickets', noCache: true },
|
|
|
hidden: 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'),
|
|
@@ -229,14 +221,13 @@ export const partRoutes = [
|
|
|
component: Layout,
|
|
|
name: 'entrace-guard',
|
|
|
redirect: '/entrace_guard/users',
|
|
|
- hidden: !enableEntraceguard,
|
|
|
+ needShow: enableEntraceguard,
|
|
|
children: [
|
|
|
{
|
|
|
path: 'users',
|
|
|
component: () => import('@/views/entrace-guard/users'),
|
|
|
name: 'entrace-guard-list',
|
|
|
- meta: { title: i18n.t('tab.entraceguardUser'), icon: 'pass_through', noCache: true },
|
|
|
- hidden: !enableEntraceguard
|
|
|
+ meta: { title: i18n.t('tab.entraceguardUser'), icon: 'pass_through', noCache: true }
|
|
|
}]
|
|
|
},
|
|
|
// 客户信息
|
|
@@ -246,17 +237,17 @@ export const partRoutes = [
|
|
|
redirect: '/customer/list',
|
|
|
name: 'customer-manager',
|
|
|
meta: {
|
|
|
- title: uiVersion === 1 ? i18n.t('tab.patientManage') : i18n.t('tab.customerManage'),
|
|
|
+ title: i18n.t('tab.patientManage'),
|
|
|
icon: 'el-icon-s-custom',
|
|
|
noCache: true
|
|
|
},
|
|
|
children: [
|
|
|
{
|
|
|
path: 'list',
|
|
|
- component: () => uiVersion === 1 ? import('@/views/customer/patientManagement') : uiVersion === 2 ? import('@/views/customer/customerManagement') : import('@/views/customer/elderlyCareManagement'),
|
|
|
+ component: () => import('@/views/customer/patientManagement'),
|
|
|
name: 'customer-list',
|
|
|
meta: {
|
|
|
- title: uiVersion === 1 ? i18n.t('tab.patientManage') : i18n.t('tab.customerManage'),
|
|
|
+ title: i18n.t('tab.patientManage'),
|
|
|
icon: 'el-icon-s-custom',
|
|
|
noCache: true
|
|
|
}
|
|
@@ -398,14 +389,14 @@ export const partRoutes = [
|
|
|
component: Layout,
|
|
|
name: 'broadcast',
|
|
|
redirect: '/broadcast/index',
|
|
|
- hidden: !enableBroadcast || uiVersion !== 1,
|
|
|
+ needShow: enableBroadcast,
|
|
|
+ needHidden: [2, 3],
|
|
|
children: [
|
|
|
{
|
|
|
path: 'index',
|
|
|
component: () => import('@/views/ncs-broadcast/index'),
|
|
|
name: 'broadcast-list',
|
|
|
meta: { title: i18n.t('tab.broadcastManage'), icon: 'el-icon-headset', noCache: true }, // 广播设置
|
|
|
- hidden: !enableBroadcast || uiVersion !== 1
|
|
|
},
|
|
|
{
|
|
|
path: 'edit/:id?',
|
|
@@ -450,7 +441,7 @@ export const partRoutes = [
|
|
|
component: () => import('@/views/ncs-nurse-config/index'),
|
|
|
name: 'nurse-config',
|
|
|
meta: { title: i18n.t('tab.nurseConfig'), icon: 'care1', noCache: true }, // 护理参数
|
|
|
- hidden: uiVersion !== 1
|
|
|
+ needHidden: [2, 3]
|
|
|
},
|
|
|
{
|
|
|
path: 'channel',
|
|
@@ -584,14 +575,14 @@ export const hospitalRoutes = [
|
|
|
component: () => import('@/views/calling-board/index'),
|
|
|
name: 'information-board',
|
|
|
meta: { title: i18n.t('tab.boardManage'), icon: 'infomation_board', noCache: true },
|
|
|
- hidden: uiVersion === 2
|
|
|
+ needHidden: [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
|
|
|
+ needHidden: [2]
|
|
|
},
|
|
|
{
|
|
|
path: 'index/:id?',
|
|
@@ -711,7 +702,7 @@ export const adminRoutes = [
|
|
|
component: () => import('@/views/ncs-linux-version/linuxVersionSetting'),
|
|
|
name: 'admin-linux-version',
|
|
|
meta: { title: i18n.t('tab.linuxVersion'), icon: 'nested', noCache: true },
|
|
|
- hidden: !enableLinux
|
|
|
+ needShow: enableLinux
|
|
|
},
|
|
|
{
|
|
|
path: 'led_device',
|
|
@@ -856,7 +847,7 @@ export const adminRoutes = [
|
|
|
meta: { title: i18n.t('tab.debugging485'), icon: 'authen', noCache: true }
|
|
|
}
|
|
|
],
|
|
|
- hidden: !enable485
|
|
|
+ needShow: enable485
|
|
|
},
|
|
|
{
|
|
|
path: '/interaction_push',
|