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 = {}
......
......@@ -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"
......
......@@ -59,6 +59,7 @@ new Vue({
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 }) {
......
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