Bladeren bron

提交desktop文件下的detail翻译

Lijy 10 maanden geleden
bovenliggende
commit
baee2feb6a

+ 16 - 1
fhKeeper/formulahousekeeper/timesheet/src/i18n/en.json

@@ -1643,5 +1643,20 @@
   "ziXiangMuChengBen": "Sub project cost",
   "ziXiangMuGongShi": "Sub project working hours",
   "ziXiangMuMingCheng": "Sub project name",
-  "keHuLieBiaoXlsx": "Customer List. xlsx"
+  "keHuLieBiaoXlsx": "Customer List. xlsx",
+  "gongZuoShiChangFenPei": "Allocation of working hours",
+  "jinRiGongZuoShiChang": "Today's working hours:",
+  "kanXiaoShuo": "Read novels",
+  "liaoTian": "chat",
+  "meiGong": "art designer",
+  "qiTaGongZuo": "Other work",
+  "shangWang": "surf the internet",
+  "sheJi": "Design",
+  "shiChangDanWeiH": "Duration (in hours)",
+  "tingYinLe": "Listen to the music",
+  "weiZhi": "unknown",
+  "wenDang": "file",
+  "yanFa": "research and development",
+  "yingShiYuLe": "Film and entertainment",
+  "yunYing": "operate"
 }

+ 16 - 1
fhKeeper/formulahousekeeper/timesheet/src/i18n/zh.json

@@ -1643,5 +1643,20 @@
   "baoJiaXiangMu": "报价项目",
   "shouHouBaoJiaXiangMu": "售后报价项目",
   "yanFaXiangMu": "研发项目",
-  "keHuLieBiaoXlsx": "客户列表.xlsx"
+  "keHuLieBiaoXlsx": "客户列表.xlsx",
+  "jinRiGongZuoShiChang": "今日工作时长:",
+  "gongZuoShiChangFenPei": "工作时长分配",
+  "yanFa": "研发",
+  "shangWang": "上网",
+  "wenDang": "文档",
+  "sheJi": "设计",
+  "kanXiaoShuo": "看小说",
+  "yingShiYuLe": "影视娱乐",
+  "liaoTian": "聊天",
+  "qiTaGongZuo": "其他工作",
+  "shiChangDanWeiH": "时长(单位:h)",
+  "meiGong": "美工",
+  "yunYing": "运营",
+  "tingYinLe": "听音乐",
+  "weiZhi": "未知"
 }

+ 32 - 32
fhKeeper/formulahousekeeper/timesheet/src/views/desktop/detail.vue

@@ -4,14 +4,14 @@
     <el-col :span="24" class="toolbar" style="padding-bottom: 0px;">
       <el-form :inline="true">
         <el-form-item>
-          <el-button type="text" @click="backToList" icon="el-icon-back" class="back">返回</el-button>
+          <el-button type="text" @click="backToList" icon="el-icon-back" class="back">{{ $t('fan-hui') }}</el-button>
         </el-form-item>
         <el-form-item class="divLine"></el-form-item>
         <el-form-item>
           <span class="workName">{{uName}} / {{date}}</span>
         </el-form-item>
         <el-form-item style="float:right;">
-          今日工作时长:
+          {{ $t('jinRiGongZuoShiChang') }} 
           <span class="workHours">{{uHours}}h</span>
         </el-form-item>
       </el-form>
@@ -139,7 +139,7 @@ export default {
       this.myChart = myChart;
       var option = {
         title: {
-          text: "工作时长分配",
+          text: this.$t('gongZuoShiChangFenPei'),
           left: "left"
         },
         tooltip: {
@@ -153,17 +153,17 @@ export default {
           top: 30,
           bottom: 20,
           data: [
-            "研发",
-            "上网",
-            "文档",
-            "设计",
+            this.$t('yanFa'),
+            this.$t('shangWang'),
+            this.$t('wenDang'),
+            this.$t('sheJi'),
             // "美工",
             // "运营",
-            "看小说",
-            "影视娱乐",
+            this.$t('kanXiaoShuo'),
+            this.$t('yingShiYuLe'),
             // "听音乐",
-            "聊天",
-            "其他工作"
+            this.$t('liaoTian'),
+            this.$t('qiTaGongZuo')
           ]
         },
         toolbox: {
@@ -181,19 +181,19 @@ export default {
         },
         series: [
           {
-            name: "时长(单位:h)",
+            name: this.$t('shiChangDanWeiH'),
             type: "pie",
             radius: [30, 110],
             roseType: "area",
             data: [
-              { value: (this.timeList[1] / 3600).toFixed(2), name: "研发" },
-              { value: (this.timeList[2] / 3600).toFixed(2), name: "上网" },
-              { value: (this.timeList[3] / 3600).toFixed(2), name: "文档" },
-              { value: (this.timeList[4] / 3600).toFixed(2), name: "设计" },
-              { value: (this.timeList[7] / 3600).toFixed(2), name: "看小说" },
-              { value: (this.timeList[8] / 3600).toFixed(2), name: "影视娱乐" },
-              { value: (this.timeList[10] / 3600).toFixed(2), name: "聊天" },
-              { value: (this.timeList[0] / 3600).toFixed(2), name: "其他工作" }
+              { value: (this.timeList[1] / 3600).toFixed(2), name: this.$t('yanFa') },
+              { value: (this.timeList[2] / 3600).toFixed(2), name: this.$t('shangWang') },
+              { value: (this.timeList[3] / 3600).toFixed(2), name: this.$t('wenDang') },
+              { value: (this.timeList[4] / 3600).toFixed(2), name: this.$t('sheJi') },
+              { value: (this.timeList[7] / 3600).toFixed(2), name: this.$t('kanXiaoShuo') },
+              { value: (this.timeList[8] / 3600).toFixed(2), name: this.$t('yingShiYuLe') },
+              { value: (this.timeList[10] / 3600).toFixed(2), name: this.$t('liaoTian') },
+              { value: (this.timeList[0] / 3600).toFixed(2), name: this.$t('qiTaGongZuo') }
             ]
           }
         ]
@@ -209,29 +209,29 @@ export default {
     converType(type) {
       switch (type) {
         case 0:
-          return "其他工作";
+          return this.$t('qiTaGongZuo');
         case 1:
-          return "研发";
+          return this.$t('yanFa');
         case 2:
-          return "上网";
+          return this.$t('shangWang');
         case 3:
-          return "文档";
+          return this.$t('wenDang');
         case 4:
-          return "设计";
+          return this.$t('sheJi');
         case 5:
-          return "美工";
+          return this.$t('meiGong');
         case 6:
-          return "运营";
+          return this.$t('yunYing');
         case 7:
-          return "看小说";
+          return this.$t('kanXiaoShuo');
         case 8:
-          return "影视娱乐";
+          return this.$t('yingShiYuLe');
         case 9:
-          return "听音乐";
+          return this.$t('tingYinLe');
         case 10:
-          return "聊天";
+          return this.$t('liaoTian');
         default:
-          return "未知";
+          return this.$t('weiZhi');
       }
     }
   },