|
@@ -7,41 +7,41 @@
|
|
|
<el-col :span="12">
|
|
|
<div class="box">
|
|
|
<div >
|
|
|
- <div class="lableTxt">项目概览表</div>
|
|
|
+ <div class="lableTxt">{{ $t('projectoverviewtable') }}</div>
|
|
|
<el-divider></el-divider>
|
|
|
<el-row :gutter="10">
|
|
|
<el-col :span="6" style="text-align:center;">
|
|
|
- <p style="color:#666;font-size:12px;">全部</p>
|
|
|
+ <p style="color:#666;font-size:12px;">{{ $t('all') }}</p>
|
|
|
<p style="font-size:28px;font-weight:bold;color:black;">{{taskSum.total}}</p>
|
|
|
</el-col>
|
|
|
<el-col :span="6" style="text-align:center;">
|
|
|
- <p style="color:#666;font-size:12px;">已完成</p>
|
|
|
+ <p style="color:#666;font-size:12px;">{{ $t('state.completed') }}</p>
|
|
|
<p style="font-size:28px;font-weight:bold;color:green;">{{taskSum.finishCount}}</p>
|
|
|
</el-col>
|
|
|
<el-col :span="6" style="text-align:center;">
|
|
|
- <p style="color:#666;font-size:12px;">未完成</p>
|
|
|
+ <p style="color:#666;font-size:12px;">{{ $t('wei-wan-cheng') }}</p>
|
|
|
<p style="font-size:28px;color:blue;font-weight:bold;">{{taskSum.unfinishCount}}</p>
|
|
|
</el-col>
|
|
|
<el-col :span="6" style="text-align:center;">
|
|
|
- <p style="color:#666;font-size:12px;">已逾期</p>
|
|
|
+ <p style="color:#666;font-size:12px;">{{ $t('yi-yu-qi') }}</p>
|
|
|
<p style="font-size:28px;color:red;font-weight:bold;">{{taskSum.timeupCount}}</p>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row :gutter="10">
|
|
|
<el-col :span="6" style="text-align:center;">
|
|
|
- <p style="color:#666;font-size:12px;">待认领</p>
|
|
|
+ <p style="color:#666;font-size:12px;">{{ $t('dai-ren-ling') }}</p>
|
|
|
<p style="font-size:28px;color:#orange;font-weight:bold;">{{taskSum.unassignCount}}</p>
|
|
|
</el-col>
|
|
|
<el-col :span="6" style="text-align:center;">
|
|
|
- <p style="color:#666;font-size:12px;">今日到期</p>
|
|
|
+ <p style="color:#666;font-size:12px;">{{ $t('duetoday') }}</p>
|
|
|
<p style="font-size:28px;font-weight:bold;color:pink;">{{taskSum.todayTimeupCount}}</p>
|
|
|
</el-col>
|
|
|
<el-col :span="6" style="text-align:center;">
|
|
|
- <p style="color:#666;font-size:12px;">逾期完成</p>
|
|
|
+ <p style="color:#666;font-size:12px;">{{ $t('limittocomplete') }}</p>
|
|
|
<p style="font-size:28px;font-weight:bold;color:gray;">{{taskSum.timeupFinishCount}}</p>
|
|
|
</el-col>
|
|
|
<el-col :span="6" style="text-align:center;">
|
|
|
- <p style="color:#666;font-size:12px;">时间待定</p>
|
|
|
+ <p style="color:#666;font-size:12px;">{{ $t('shi-jian-dai-ding') }}</p>
|
|
|
<p style="font-size:28px;font-weight:bold;color:black;">{{taskSum.timeunsetCount}}</p>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -50,10 +50,10 @@
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<div class="box">
|
|
|
- <div class="lableTxt" style="display:flex;justify-content:space-between;align-items:center;">执行人分配
|
|
|
+ <div class="lableTxt" style="display:flex;justify-content:space-between;align-items:center;">{{ $t('distributionexecutors') }}
|
|
|
<el-radio-group v-model="sumListRadio" size="mini" @change="sumRadioChange">
|
|
|
- <el-radio-button label="任务数量"></el-radio-button>
|
|
|
- <el-radio-button label="计划工时"></el-radio-button>
|
|
|
+ <el-radio-button :label="$t('taskNum')"></el-radio-button>
|
|
|
+ <el-radio-button :label="$t('plantime')"></el-radio-button>
|
|
|
</el-radio-group>
|
|
|
</div>
|
|
|
<el-divider></el-divider>
|
|
@@ -64,14 +64,14 @@
|
|
|
<el-row :gutter="10">
|
|
|
<el-col :span="12">
|
|
|
<div class="box">
|
|
|
- <div class="lableTxt">耗时最多任务</div>
|
|
|
+ <div class="lableTxt">{{ $t('consumingtask') }}</div>
|
|
|
<el-divider></el-divider>
|
|
|
<div id="costPanel" style="height:300px;width:500px;"></div>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<div class="box">
|
|
|
- <div class="lableTxt">按任务列表统计</div>
|
|
|
+ <div class="lableTxt">{{ $t('statisticsbytasklist') }}</div>
|
|
|
<el-divider></el-divider>
|
|
|
<div id="stagesPanel" style="height:300px;width:500px;"></div>
|
|
|
</div>
|
|
@@ -81,7 +81,7 @@
|
|
|
<el-row :gutter="10">
|
|
|
<el-col :span="24">
|
|
|
<div class="box" style="height:550px;">
|
|
|
- <div class="lableTxt">任务 计划工时 VS 实际工时 <el-link @click="exportTaskCompare" style="float:right;"><i class="iconfont firerock-iconexport"></i>导出</el-link></div>
|
|
|
+ <div class="lableTxt">{{ $t('actualworkinghours') }} <el-link @click="exportTaskCompare" style="float:right;"><i class="iconfont firerock-iconexport"></i>{{ $t('export.export') }}</el-link></div>
|
|
|
<el-divider></el-divider>
|
|
|
<div id="taskTimeComparePanel" style="height:500px;width:1100px;"></div>
|
|
|
</div>
|
|
@@ -131,18 +131,18 @@
|
|
|
pVisible:false,
|
|
|
taskSum:{},
|
|
|
users:[],
|
|
|
- importanceList:[{id:1,label:'一般'},{id:2,label:'紧急'},{id:3,label:'重要'},{id:4,label:'重要且紧急'}],
|
|
|
+ importanceList:[{id:1,label:this.$t('yi-ban')},{id:2,label:this.$t('jin-ji')},{id:3,label:this.$t('zhong-yao')},{id:4,label:this.$t('zhong-yao-qie-jin-ji')}],
|
|
|
//1-一般,2-紧急,3-重要,4-重要且紧急
|
|
|
- levelTxt:["全部","一般","紧急","重要","重要且紧急"],
|
|
|
+ levelTxt:[this.$t('all'),this.$t('yi-ban'),this.$t('jin-ji'),this.$t('zhong-yao'),this.$t('zhong-yao-qie-jin-ji')],
|
|
|
//1-进行中,2-已完成,3-已撤销
|
|
|
- statusTxt: ["全部","进行中","已完成","已撤销"],
|
|
|
+ statusTxt: [this.$t('all'),this.$t('ongoing'),this.$t('state.completed'),this.$t('state.undone')],
|
|
|
addFolderDialog: false,
|
|
|
upLoading:false,
|
|
|
user: JSON.parse(sessionStorage.getItem("user")),
|
|
|
addLoading: false,
|
|
|
curProjectId:null,
|
|
|
title: "",
|
|
|
- sumListRadio: '任务数量'
|
|
|
+ sumListRadio: this.$t('taskNum')
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -197,7 +197,7 @@
|
|
|
fontSize: 18,
|
|
|
fontWeight: 'normal',
|
|
|
},
|
|
|
- text: list.length == 0?"暂无数据":"工时对比",
|
|
|
+ text: list.length == 0?this.$t('nodata'):this.$t('gong-shi-dui-bi'),
|
|
|
left: "center",
|
|
|
top: "center"
|
|
|
},
|
|
@@ -216,7 +216,7 @@
|
|
|
}
|
|
|
},
|
|
|
legend: {
|
|
|
- data: ['实际工时', '计划工时']
|
|
|
+ data: [this.$t('shi-ji-gong-shi'), this.$t('plantime')]
|
|
|
},
|
|
|
grid: {
|
|
|
left: '3%',
|
|
@@ -234,7 +234,7 @@
|
|
|
type: 'value',
|
|
|
boundaryGap: [0, 1],
|
|
|
axisLabel: {
|
|
|
- formatter:'{value} 小时'
|
|
|
+ formatter:'{value} '+this.$t('time.hour')
|
|
|
}
|
|
|
},
|
|
|
yAxis: [{
|
|
@@ -242,12 +242,12 @@
|
|
|
data: taskNames
|
|
|
}],
|
|
|
series: [{
|
|
|
- name: '实际工时',
|
|
|
+ name: this.$t('shi-ji-gong-shi'),
|
|
|
type: 'bar',
|
|
|
data: xList1
|
|
|
},
|
|
|
{
|
|
|
- name: '计划工时',
|
|
|
+ name: this.$t('plantime'),
|
|
|
type: 'bar',
|
|
|
data: xList2
|
|
|
}]
|
|
@@ -291,7 +291,7 @@
|
|
|
fontSize: 18,
|
|
|
fontWeight: 'normal',
|
|
|
},
|
|
|
- text: list.length == 0?"暂无数据":"耗时最多任务图",
|
|
|
+ text: list.length == 0?this.$t('nodata'):this.$t('themosttime'),
|
|
|
left: "center",
|
|
|
top: "center"
|
|
|
},
|
|
@@ -313,7 +313,7 @@
|
|
|
trigger:'axis',
|
|
|
formatter: function (params,ticket,callback) {
|
|
|
var res = params[0].data.fullName + ""+" : " + params[0].data.value
|
|
|
- + "小时";
|
|
|
+ + this.$t('time.hour');
|
|
|
_this.params = params;
|
|
|
return res;
|
|
|
}
|
|
@@ -327,11 +327,11 @@
|
|
|
yAxis: [{
|
|
|
type : 'value',
|
|
|
axisLabel: {
|
|
|
- formatter:'{value} 小时'
|
|
|
+ formatter:'{value}'+this.$t('time.hour')
|
|
|
}
|
|
|
}],
|
|
|
series: [{
|
|
|
- name: '耗时(小时)',
|
|
|
+ name: this.$t('hao-shi-xiao-shi'),
|
|
|
type: 'bar',
|
|
|
barMaxWidth: 30,
|
|
|
data: yList,
|
|
@@ -368,7 +368,7 @@
|
|
|
fontSize: 18,
|
|
|
fontWeight: 'normal',
|
|
|
},
|
|
|
- text: list.length == 0?"暂无数据":"任务列表统计",
|
|
|
+ text: list.length == 0?this.$t('nodata'):this.$t('taskListStatistics'),
|
|
|
left: "center",
|
|
|
top: "center"
|
|
|
},
|
|
@@ -382,11 +382,11 @@
|
|
|
},
|
|
|
tooltip:{
|
|
|
trigger:'item',
|
|
|
- formatter: "{b}<br/>任务数:{c} ({d}%)",
|
|
|
+ formatter: "{b}<br/>"+this.$t('ren-wu-shu')+":{c} ({d}%)",
|
|
|
},
|
|
|
series : [
|
|
|
{
|
|
|
- name: '任务列表',
|
|
|
+ name: this.$t('tasklist'),
|
|
|
type: 'pie',
|
|
|
radius: '55%',
|
|
|
data:list
|
|
@@ -410,7 +410,7 @@
|
|
|
getExecutorPanel(){
|
|
|
let _this = this;
|
|
|
let url
|
|
|
- if(this.sumListRadio == '计划工时'){
|
|
|
+ if(this.sumListRadio == this.$t('plantime')){
|
|
|
url = '/task/getExecutorPlanHour'
|
|
|
}else{
|
|
|
url = '/task/getExecutorPanel'
|
|
@@ -422,7 +422,7 @@
|
|
|
for(var i in list) {
|
|
|
xList.push(list[i].executorName);
|
|
|
yList.push({
|
|
|
- "value": _this.sumListRadio == '计划工时' ? list[i].taskHours : list[i].taskCount,
|
|
|
+ "value": _this.sumListRadio == this.$t('plantime') ? list[i].taskHours : list[i].taskCount,
|
|
|
"id": list[i].executorId
|
|
|
});
|
|
|
}
|
|
@@ -437,7 +437,7 @@
|
|
|
fontSize: 18,
|
|
|
fontWeight: 'normal',
|
|
|
},
|
|
|
- text: list.length == 0?"暂无数据":"执行人分配图",
|
|
|
+ text: list.length == 0?this.$t('nodata'):this.$t('zhi-hang-ren-fen-pei-tu'),
|
|
|
left: "center",
|
|
|
top: "center"
|
|
|
},
|
|
@@ -459,7 +459,7 @@
|
|
|
trigger:'axis',
|
|
|
formatter: function (params,ticket,callback) {
|
|
|
var res = params[0].name + ""+" : " + params[0].data.value
|
|
|
- + (_this.sumListRadio == '计划工时' ? '小时' : "个");
|
|
|
+ + (_this.sumListRadio == this.$t('plantime') ? this.$t('time.hour') : this.$t('ge'));
|
|
|
_this.params = params;
|
|
|
return res;
|
|
|
}
|
|
@@ -477,7 +477,7 @@
|
|
|
}
|
|
|
}],
|
|
|
series: [{
|
|
|
- name: _this.sumListRadio == '计划工时' ? '计划工时(小时)' : '任务数量(个)',
|
|
|
+ name: _this.sumListRadio == this.$t('plantime') ? this.$t('xiaoshijihua') : this.$t('rwushuliang'),
|
|
|
type: 'bar',
|
|
|
barMaxWidth: 30,
|
|
|
data: yList,
|