Commit 2505e04d authored by lvshibao's avatar lvshibao

seat页面修改

parent 04e1b548
......@@ -182,11 +182,11 @@ class DataApi(viewsets.ViewSet):
response.write(codecs.BOM_UTF8)
writer = csv.writer(response)
# 设置表头
header = ['坐席', '全部会话数', '违规会话数', '违规占比']
header = ['坐席id', '坐席姓名', '全部会话数', '违规会话数', '违规占比']
writer.writerow(header)
# 设置表数据
for r in data_sort:
row = [r['agentName'], r['validate_session'], r['total_session'], r['ratio']]
row = [r['agentName'], r['seatName'], r['validate_session'], r['total_session'], r['ratio']]
writer.writerow(row)
return response
......
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