浏览代码

调整西班牙语

vothin 2 年之前
父节点
当前提交
9a5f4f8458
共有 2 个文件被更改,包括 103 次插入103 次删除
  1. 102 102
      src/router/index.js
  2. 1 1
      src/utils/i18n.js

+ 102 - 102
src/router/index.js

@@ -213,33 +213,33 @@ export const partRoutes = [
       }
       }
     ]
     ]
   },
   },
-  // {
-  //   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 }
-  //     }
-  //   ],
-  //   hidden: uiVersion === 1
-  // },
-  // {
-  //   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-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 }
+      }
+    ],
+    hidden: uiVersion === 1
+  },
+  {
+    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',
     path: '/ncs-channel',
     component: Layout,
     component: Layout,
@@ -299,19 +299,19 @@ export const partRoutes = [
       }
       }
     ]
     ]
   },
   },
-  // {
-  //   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: '/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: '',
     path: '',
     component: Layout,
     component: Layout,
@@ -340,27 +340,27 @@ export const partRoutes = [
       }
       }
     ]
     ]
   },
   },
-  // {
-  //   path: '',
-  //   component: Layout,
-  //   redirect: '/broadcast/index',
-  //   children: [
-  //     {
-  //       path: '/broadcast/index',
-  //       component: () => import('@/views/ncs-broadcast/index'),
-  //       name: 'Broadcast',
-  //       meta: { title: i18n.t('tab.broadcastManage'), icon: 'el-icon-headset', noCache: true }
-  //     },
-  //     {
-  //       path: '/broadcast/edit/:id?',
-  //       component: () => import('@/views/ncs-broadcast/broadcastEdit'),
-  //       name: 'broadcastEdit',
-  //       meta: { title: i18n.t('tab.broadcastEdit'), icon: 'area', noCache: true },
-  //       hidden: true
-  //     }
-  //   ],
-  //   hidden: uiVersion !== 1
-  // },
+  {
+    path: '',
+    component: Layout,
+    redirect: '/broadcast/index',
+    children: [
+      {
+        path: '/broadcast/index',
+        component: () => import('@/views/ncs-broadcast/index'),
+        name: 'Broadcast',
+        meta: { title: i18n.t('tab.broadcastManage'), icon: 'el-icon-headset', noCache: true }
+      },
+      {
+        path: '/broadcast/edit/:id?',
+        component: () => import('@/views/ncs-broadcast/broadcastEdit'),
+        name: 'broadcastEdit',
+        meta: { title: i18n.t('tab.broadcastEdit'), icon: 'area', noCache: true },
+        hidden: true
+      }
+    ],
+    hidden: uiVersion !== 1
+  },
   {
   {
     path: '/ncs-nurse-config',
     path: '/ncs-nurse-config',
     component: Layout,
     component: Layout,
@@ -375,20 +375,20 @@ export const partRoutes = [
     ],
     ],
     hidden: uiVersion !== 1
     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 }
-  //     }
-  //   ],
-  //   hidden: uiVersion === 2
-  // },
+  {
+    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 }
+      }
+    ],
+    hidden: uiVersion === 2
+  },
   {
   {
     path: '/ncs-event',
     path: '/ncs-event',
     component: Layout,
     component: Layout,
@@ -403,19 +403,19 @@ export const partRoutes = [
     ],
     ],
     hidden: uiVersion === 1
     hidden: uiVersion === 1
   },
   },
-  // {
-  //   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: '/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',
     path: '/ncs-interaction-chars',
     component: Layout,
     component: Layout,
@@ -442,20 +442,20 @@ export const partRoutes = [
       }
       }
     ]
     ]
   },
   },
-  // {
-  //   path: '/ncs_led',
-  //   component: Layout,
-  //   redirect: '/ncs_led/index',
-  //   children: [
-  //     {
-  //       path: 'index',
-  //       component: () => import('@/views/ncs-led/ledManager'),
-  //       name: 'part_led',
-  //       meta: { title: i18n.t('tab.ledDevice'), icon: 'el-icon-message-solid', noCache: true }
-  //     }
-  //   ],
-  //   hidden: uiVersion !== 1
-  // },
+  {
+    path: '/ncs_led',
+    component: Layout,
+    redirect: '/ncs_led/index',
+    children: [
+      {
+        path: 'index',
+        component: () => import('@/views/ncs-led/ledManager'),
+        name: 'part_led',
+        meta: { title: i18n.t('tab.ledDevice'), icon: 'el-icon-message-solid', noCache: true }
+      }
+    ],
+    hidden: uiVersion !== 1
+  },
   { path: '*', redirect: '/404', hidden: true }
   { path: '*', redirect: '/404', hidden: true }
 ]
 ]
 export const hospitalRoutes = [
 export const hospitalRoutes = [

+ 1 - 1
src/utils/i18n.js

@@ -10,7 +10,7 @@ Vue.use(VueI18n)
 const i18n = new VueI18n({
 const i18n = new VueI18n({
   // 设置默认语言
   // 设置默认语言
   // locale: 'zh', // 语言标识
   // locale: 'zh', // 语言标识
-  locale: Storage.getItem('DefaultLanguage') == null ? 'es' : Storage.getItem('DefaultLanguage'),
+  locale: Storage.getItem('DefaultLanguage') == null ? 'zh' : Storage.getItem('DefaultLanguage'),
   // 添加多语言(每一个语言标示对应一个语言文件)
   // 添加多语言(每一个语言标示对应一个语言文件)
   messages: {
   messages: {
     'zh': Object.assign(require('../../languages/zh-CN'), zhLang),
     'zh': Object.assign(require('../../languages/zh-CN'), zhLang),