Browse Source

西班牙语

vothin 2 năm trước cách đây
mục cha
commit
aa45bcd8dc
2 tập tin đã thay đổi với 78 bổ sung78 xóa
  1. 77 77
      src/router/index.js
  2. 1 1
      src/utils/i18n.js

+ 77 - 77
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',
     component: Layout,
@@ -258,8 +258,7 @@ export const partRoutes = [
         meta: { title: i18n.t('tab.channelImHistory'), icon: 'area', noCache: true },
         hidden: true
       }
-    ],
-    hidden: uiVersion !== 2
+    ]
   },
   {
     path: '/remark',
@@ -341,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',
     component: Layout,
@@ -375,20 +374,21 @@ export const partRoutes = [
       }
     ],
     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',
     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 }
 ]
 export const hospitalRoutes = [

+ 1 - 1
src/utils/i18n.js

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