Commit 6ef23c03 authored by lvshibao's avatar lvshibao

数据分析-质检绩效考核汇总

parent 36c43baf
......@@ -325,12 +325,14 @@ class TasksApi(viewsets.ViewSet):
return Response({'code': 0, 'msg': 'success', 'data': data_sort})
@action(['post'], detail=False)
@get_account_info
def seat_check(self, req: Request):
"""
坐席绩效考核汇总
:param req:
:return:
"""
username = req.data.get('username', '')
task_id = req.data.get('task', '')
agent_name = req.data.get('agentName', '')
page = req.data.get('page', '1')
......@@ -340,6 +342,8 @@ class TasksApi(viewsets.ViewSet):
task_condition = {'hasCheck': 1, 'createdAt__gte': start_date, 'createdAt__lt': end_date + ' 23:59:59'}
if task_id:
task_condition['name__startswith'] = task_id
if username in name_list:
task_condition['name__startswith'] = username
tasks = Tasks.objects.filter(**task_condition).values('id', 'name', 'sessionCollectionId')
task_dict = {}
task_name_dict = {}
......
......@@ -14,7 +14,7 @@
display: inline-block;
}
#OneTime .el-input__icon {
line-height: 32px;
line-height: 32px;
}
#OneTime .el-input .el-input__inner {
padding-left: 30px;
......@@ -26,7 +26,7 @@
font-size:15px;
}
.groutTitle{
display: flex;
display: flex;
flex-direction: row;
margin-bottom: 20px;
margin-top: 10px;
......@@ -37,13 +37,13 @@
background-color:#fff;
}
.groutTitle > div:nth-child(2){
margin: 0 10px;
margin: 0 10px;
}
.groutTitle .grid-content{
padding: 20px;
}
.groutTitle .grid-content .icon{
font-size: 30px;
font-size: 30px;
margin-right:10px;
}
.groutTitle .grid-content div{
......@@ -51,7 +51,7 @@
vertical-align: middle;
}
.groutTitle .grid-content .content-value{
font-size: 30px;
font-size: 30px;
}
#main{
background-color: #fff;
......@@ -78,7 +78,7 @@
font-weight: bold;
}
#mutiTable .el-table__body tr:nth-child(2) td:first-child,#mutiTable .el-table__body tr:nth-child(1) td:first-child{
border-right: 0;
border-right: 0;
}
#noData{
text-align: center;
......@@ -120,7 +120,7 @@
end-placeholder="结束日期"
:default-time="['00:00:00', '23:59:59']">
</el-date-picker>
<el-select v-model="taskvalue" filterable placeholder="请选择" @change="changeTask">
<el-select v-if="sel_is_show == true" v-model="taskvalue" filterable placeholder="请选择" @change="changeTask">
<el-option
v-for="item in taskList"
:key="item.id"
......
......@@ -23,42 +23,43 @@ new Vue({
basearr: [
{
createdAt: '质检考核项目编号',
fwyy:'1',
kcb:'2',
jsy:'3',
fwtd:'4',
yssb:'5',
jysb:'6',
yycl:'7',
ywcc:'8',
yyjlz:'9',
fwjs:'10',
wtgbj:'11',
cgjxxhs:'12',
wgzlf:'13',
mgc:'14',
fwyy:'1',
kcb:'2',
jsy:'3',
fwtd:'4',
yssb:'5',
jysb:'6',
yycl:'7',
ywcc:'8',
yyjlz:'9',
fwjs:'10',
wtgbj:'11',
cgjxxhs:'12',
wgzlf:'13',
mgc:'14',
}, {
createdAt: '质检考核权重',
fwyy:'15%',
kcb:'5%',
jsy:'3%',
fwtd:'5%',
yssb:'5%',
jysb:'5%',
yycl:'10%',
ywcc:'10%',
yyjlz:'10%',
fwjs:'10%',
wtgbj:'2%',
cgjxxhs:'20%',
wgzlf:'100%',
mgc:'100%',
fwyy:'15%',
kcb:'5%',
jsy:'3%',
fwtd:'5%',
yssb:'5%',
jysb:'5%',
yycl:'10%',
ywcc:'10%',
yyjlz:'10%',
fwjs:'10%',
wtgbj:'2%',
cgjxxhs:'20%',
wgzlf:'100%',
mgc:'100%',
}],
tableData: [],
currentPage:1,
pagesize: 15,
total: 10,
isHidePage: true,
sel_is_show: true,
}
},
mounted () {
......@@ -77,12 +78,13 @@ new Vue({
this.start_date = dateRange[0];
this.end_date = dateRange[1];
this.currentPage = 1;
this.getTake();
this.getRule(this.taskvalue,this.start_date,this.end_date,this.takevalue); // 获取统计数据
},
changeTask(msg){
this.taskvalue = msg;
this.currentPage = 1;
this.getTake()
this.getTake();
this.getRule(this.taskvalue,this.start_date,this.end_date,this.takevalue); // 获取统计数据
},
changeTake(msg){
......@@ -145,6 +147,13 @@ new Vue({
}else{
that.takeList = data.data;
}
if (['合肥', '芜湖', '淮北', '安庆', '黄山', '滁州', '阜阳', '亳州', '宿州', '六安', '宣城', '巢湖', '池州', '淮南', '安徽省营业部', '蚌埠', '马鞍山', '铜陵'].indexOf(data.username) !== -1) {
that.sel_is_show = false;
that.taskvalue = data.username;
} else {
that.sel_is_show = true;
}
})
},
arraySpanMethod({ row, column, rowIndex, columnIndex }) {
......@@ -157,7 +166,7 @@ new Vue({
else if (columnIndex === 2 || columnIndex === 3 ) {
return [0, 0]
}
}
}
},
dateFormat(date){
return date.getFullYear() + "-" + (date.getMonth()+1) + "-" + date.getDate();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment