| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>坐席考勤</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <script src="../Script/Common/huayi.load.js"></script>
- <script src="../Script/Common/huayi.config.js"></script>
- <link href="../css/WorkOrder/Search.css" rel="stylesheet">
- <link href="../css/init.css" rel="stylesheet" />
- <!--<script src="../css/laydate/laydate.js"></script>-->
- <script src="../js/laydate/laydate.js"></script>
- <style type="text/css">
- .time-box{
- display: inline-block;
- position: relative;
- }
- .toolRight input{
- padding-right: 30px;
- }
- .tub{
- position: absolute;
- right: 8px;
- top: 5px;
- font-size: 18px;
- color: #00a0ca;
- }
- #thead thead th{
- background: #00a0cd;
- color: #fff;
- }
- table thead, tbody tr {
- display:table;
- width:100%;
- table-layout:fixed;
- }
- .table{
- margin-bottom: 0;
- }
-
- </style>
- </head>
- <body class="gray-bg">
- <div class="wrapper wrapper-content animated fadeInRight">
- <div class="daoHang clearfix">
- <div class="dhLeft">
- <sapn>
- <i class="syIcon"></i>位置:
- <a href="javaScript:;" id="ReIndex">首页</a>>
- <a href="javaScript:;">报表管理</a>>
- <a href="javaScript:;" class="nowPosition">坐席考勤</a>
- </sapn>
- </div>
- <div class="dhRight">
- <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
- </div>
- </div>
- <div class="Content_box">
- <!--待处理/-->
- <div class="complain Shows">
- <div class="th-box">
- <div class="toolBar clearfix">
- <div class="toolRight">
- 开始时间: <span class="time-box"><i class="tub fa fa-calendar"></i><input type="text" id="startTime" /></span>
- 结束时间: <span class="time-box"><i class="tub fa fa-calendar"></i><input type="text" id="endTime" /></span>
- <a class="search btns">搜索</a>
- <a class="btns export">导出</a>
- </div>
- </div>
- </div>
- <div style="width: 100%;padding: 10px;">
- <div class="table-head">
- <table id="thead" class="table table-hover table-striped table-bordered table-condensed">
- <colgroup>
- <col style="width: 80px;"/>
- <col/>
- </colgroup>
- <thead>
- <tr>
- <th >工号</th>
- <th>姓名</th>
- <th>分机号</th>
- <th>签入时间</th>
- <th>签出时间</th>
- <th>签入总时长</th>
- <th>空闲时长</th>
- <th>通话时长</th>
- <th>话后处理时长</th>
- <th>置忙时长</th>
- <th>置忙次数</th>
- <th>登录次数</th>
- <th>呼入量</th>
- <th>呼出量</th>
- </tr>
- </thead>
- </table>
- </div>
- <div class="table-body">
- <table id="table1" class="table table-hover table-striped table-bordered table-condensed">
- <colgroup>
- <col style="width: 80px;"/>
- <col/>
- </colgroup>
- <tbody>
-
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script>
- var table1=$('#table1');
- var dates=new Date();
- var time=dates.getFullYear()+"-"+(dates.getMonth()+1)+"-"+(dates.getDate());
- $(document).ready(function() {
- $('#startTime').val(time)
- //年月选择器
- laydate.render({
- elem: '#startTime'
- ,format: 'yyyy-MM-dd',
- // type: 'month',
- theme: '#00a1cb'
- // value: new Date()
- });
- $('#endTime').val(time)
- //年月选择器
- laydate.render({
- elem: '#endTime'
- ,format: 'yyyy-MM-dd',
- // type: 'month',
- theme: '#00a1cb'
- // value: new Date()
- });
- initTable1();
- //返回首页
- $('#ReIndex').click(function(){
- top.home_index();
- })
-
- //搜索
- $('.search').click(function(){
- initTable1();
- })
-
- })
- function initTable1() {
-
- $.ajax({
- type:"get",
- url:huayi.config.callcenter_url+"SeatMonitoring/GetReportList",
- async:true,
- dataType:'json',
- data:{
- token: $.cookie("token"),
- stime: $('#startTime').val(),
- etime:$('#endTime').val()
- },
- success:function(data){
- if(data.state.toLowerCase()=='success'){
- $('#table1 tbody').html('');
- $(data.data).each(function(i,n){
- // console.log(n)
- $('<tr>'+
- '<td>'+ n.UserCode +'</td>'+
- '<td>'+ n.UserName +'</td>'+
- '<td>'+ n.ExtNumber +'</td>'+
- '<td>'+ n.logintime +'</td>'+//签入
- '<td>'+ n.logouttime +'</td>'+//签出
- '<td>'+ n.logintimes +'</td>'+//签入总时长
- '<td>'+ n.free +'</td>'+//空闲
- '<td>'+ n.talking +'</td>'+//通话
- '<td>'+ n.postprocess +'</td>'+//话后处理
- '<td>'+ n.repose +'</td>'+//置忙
- '<td>'+ n.reposeconut +'</td>'+//置忙次数
- '<td>'+ n.logcount +'</td>'+//登录次数
- '<td>'+ n.callincount +'</td>'+//呼入
- '<td>'+ n.calloutcount +'</td>'+//呼出
- '</tr>').appendTo('#table1 tbody')
- })
-
-
- }
-
- }
-
- });
-
- }
-
- //导出
- $('.export').click(function() {
- dcexcel(this);
- })
- function dcexcel(obj) {
- var dpt = "";
- var url = huayi.config.callcenter_url + "SeatMonitoring/ExptList?token=" + $.cookie("token");
- url += "&stime=" + $('#startTime').val() + "&etime=" + $('#endTime').val();
- obj.href = url;
- }
-
-
- </script>
- </body>
- </html>
|