|
@@ -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');
|
|
|
}
|
|
|
}
|
|
|
},
|