Forráskód Böngészése

调整中英文切换

Lijy 2 éve
szülő
commit
89218ee784

+ 12 - 1
fhKeeper/formulahousekeeper/timesheet/src/i18n/en.js

@@ -12,7 +12,18 @@ export default {
     laborCostStatistics: 'Labor cost statistics', // 工时成本统计
     customizeNumericalStatistics: 'Customize numerical statistics', // 自定义数值统计
     financialAccountingCost: 'Financial accounting cost', // 财务核算成本
-
+    upcomingTasks: ' Upcoming Tasks', // 待办任务
+    projectReportingService: 'Project reporting service', // 项目报表服务
+    askForLeaveManagement: 'Ask for leave management', // 请假管理
+    evectionManagement: 'evection management', // 出差管理
+    customerManagement: 'Customer management', // 客户管理
+    engineeringProfessionalManagement: 'Engineering professional Management', // 工程专业管理
+    reimbursement: 'reimbursement', // 费用报销
+    researchCenterManagement: 'Research Center Management', // 研究中心管理
+    supplierManagement: 'Supplier Management', // 供应商管理
+    organizationalStructure: 'Organizational structure', // 组织架构
+    approvalFlowSettings: 'Approval flow Settings', // 审批流设置
+    basicDataManagemen: 'Basic Data Managemen' // 基本数据管理
   },
   ...enLocale
 }

+ 21 - 1
fhKeeper/formulahousekeeper/timesheet/src/i18n/zh.js

@@ -3,7 +3,27 @@ export default {
   "lang": "中文",
   // 导航
   navigation: {
-    reports: "工时报告"
+    reports: "工时报告",
+    projectManagement: "项目管理",
+    professionalAudit: '专业审核',
+    departmentAudit: '部门审核',
+    projectReportReview: '项目报告审核',
+    ImportDailyReview: '导入日报审核',
+    laborCostStatistics: '工时成本统计',
+    customizeNumericalStatistics: '自定义数值统计',
+    financialAccountingCost: '财务核算成本',
+    upcomingTasks: '待办任务',
+    projectReportingService: '项目报表服务',
+    askForLeaveManagement: '请假管理',
+    evectionManagement: '出差管理',
+    customerManagement: '客户管理',
+    engineeringProfessionalManagement: '工程专业管理',
+    reimbursement: '费用报销',
+    researchCenterManagement: '研究中心管理',
+    supplierManagement: '供应商管理',
+    organizationalStructure: '组织架构',
+    approvalFlowSettings: '审批流设置',
+    basicDataManagemen: '基本数据管理'
   },
   ...zhLocale
 }

+ 40 - 14
fhKeeper/formulahousekeeper/timesheet/src/routes.js

@@ -147,7 +147,7 @@ export const allRouters = [//组织架构
             { path: '/daily', component: daily, name: '工时报告' },
         ],
         // 其他信息
-        meta: { text: 'reports' } 
+        meta: { text: 'navigation.reports' } 
     },
     // {
     //     path: '/',
@@ -259,7 +259,9 @@ export const allRouters = [//组织架构
         leaf: true,
         children: [
             { path: '/task', component: tasks, name: '待办任务' },
-        ]
+        ],
+        // 其他信息
+        meta: { text: 'navigation.financialAccountingCost' } 
     },
     //项目管理
     {
@@ -270,7 +272,9 @@ export const allRouters = [//组织架构
         leaf: true,
         children: [
             { path: '/list', component: list, name: '项目管理' },
-        ]
+        ],
+        // 其他信息
+        meta: { text: 'navigation.projectManagement' } 
     },
     
     
@@ -282,7 +286,9 @@ export const allRouters = [//组织架构
         leaf: true,
         children: [
             { path: '/corpreport', component: corpReport, name: '项目报表服务' }
-        ]
+        ],
+        // 其他信息
+        meta: { text: 'navigation.projectReportingService' } 
     },
     {
         path: '/',
@@ -292,7 +298,9 @@ export const allRouters = [//组织架构
         leaf: true,
         children: [
             { path: '/leave', component: leave, name: '请假管理' }
-        ]
+        ],
+        // 其他信息
+        meta: { text: 'navigation.askForLeaveManagement' } 
     },
     {
         path: '/',
@@ -302,7 +310,9 @@ export const allRouters = [//组织架构
         leaf: true,
         children: [
             { path: '/awayOffice', component: awayOffice, name: '出差管理' }
-        ]
+        ],
+        // 其他信息
+        meta: { text: 'navigation.askForLeaveManagement' } 
     }, 
     {
         path: '/',
@@ -312,7 +322,9 @@ export const allRouters = [//组织架构
         leaf: true,
         children: [
             { path: '/customer', component: customer, name: '客户管理' }
-        ]
+        ],
+        // 其他信息
+        meta: { text: 'navigation.customerManagement' } 
     },
     {
         path: '/',
@@ -322,7 +334,9 @@ export const allRouters = [//组织架构
         leaf: true,
         children: [
             { path: '/profession', component: profession, name: '工程专业管理' }
-        ]
+        ],
+        // 其他信息
+        meta: { text: 'navigation.engineeringProfessionalManagement' } 
     },
     // 费用报销模块
     {
@@ -333,7 +347,9 @@ export const allRouters = [//组织架构
         leaf: true,
         children: [
             { path: '/expense', component: expense, name: '费用报销' }
-        ]
+        ],
+        // 其他信息
+        meta: { text: 'navigation.reimbursement' } 
     },
     
     {
@@ -344,7 +360,9 @@ export const allRouters = [//组织架构
         leaf: true,//只有一个节点
         children: [
             { path: '/centerManage', component: centerManage, name: '研究中心管理' },
-        ]
+        ],
+        // 其他信息
+        meta: { text: 'navigation.researchCenterManagement' } 
     },
     {
         path: '/',
@@ -354,7 +372,9 @@ export const allRouters = [//组织架构
         leaf: true,//只有一个节点
         children: [
             { path: '/provider', component: provider, name: '供应商管理' },
-        ]
+        ],
+        // 其他信息
+        meta: { text: 'navigation.supplierManagement' } 
     },
     {
         path: '/',
@@ -364,7 +384,9 @@ export const allRouters = [//组织架构
         leaf: true,//只有一个节点
         children: [
             { path: '/team', component: team, name: '组织架构' },
-        ]
+        ],
+        // 其他信息
+        meta: { text: 'navigation.organizationalStructure' } 
     },
     {
         
@@ -375,7 +397,9 @@ export const allRouters = [//组织架构
         leaf: true,//只有一个节点
         children: [
             { path: '/workflow', component: workflow, name: '审批流设置' },
-        ]
+        ],
+        // 其他信息
+        meta: { text: 'navigation.approvalFlowSettings' } 
     },
     //设置时间类型
     // {
@@ -409,7 +433,9 @@ export const allRouters = [//组织架构
         children: [
             { path: '/timetype', component: timetype, name: '系统基础设置', iconCls: 'iconfont firerock-iconxitong-'},
             { path: '/role', component: quanx, name: '角色权限管理', iconCls: 'iconfont firerock-iconquanxian1' }
-        ]
+        ],
+        // 其他信息
+        meta: { text: 'navigation.basicDataManagemen' }
     },
     {
         path: '/404',

+ 2 - 2
fhKeeper/formulahousekeeper/timesheet/src/views/Home.vue

@@ -91,15 +91,15 @@
                         <el-submenu :index="index+''" v-if="!item.leaf">
                             <template slot="title">
                                 <i :class="item.iconCls"></i>
-                                <!-- <span class="itemName">{{getTitle(item)}}</span> -->
                                 <span class="itemName">{{item.name}}</span>
+                                <!-- <span class="itemName">{{$t(item.meta.text)}}</span> -->
                             </template>
                             <el-menu-item v-for="child in item.children" :index="child.path" :key="child.path" v-if="!child.hidden"><i :class="child.iconCls"></i>{{child.name}}</el-menu-item>
                         </el-submenu>
                         <el-menu-item v-if="item.leaf && item.children.length > 0" :index="item.children[0].path">
                             <i :class="item.iconCls"></i> 
                             {{item.children[0].name}}
-                            <!-- {{$t(item.text)}} -->
+                            <!-- {{$t(item.meta.text)}} -->
                         </el-menu-item>
                     </template>
                 </el-menu>