| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- <!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 rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
- <link href="../css/WorkOrder/Search.css" rel="stylesheet">
- <link href="../css/init.css" rel="stylesheet" />
- <script src="../css/laydate/laydate.js"></script>
- <style>
- .hwbb thead tr td {
- background: #00a1cb;
- color: #fff;
- font-size: 14px;
- }
- #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="" 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="toolBar clearfix">
- <div class="toolRight">
- 开始时间:
- <input class="photo x-color inputs laydate-icon" type="text" id="startTime" /> 结束时间:
- <input class="photo x-color inputs laydate-icon" type="text" id="endTime" />
- <a class="btns db">搜索</a>
- <a class="btns dbexecl">导出Execl</a>
- </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>
-
- </tr>
- </thead>
- </table>
- </div>
- <div class="table-body">
- <table class="thTable hwbb 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>
- $(document).ready(function(){
- laydate.skin('blue');
- laydate({
- elem: '#startTime',
- event: 'focus'
- });
- laydate({
- elem: '#endTime',
- event: 'focus'
- });
- $('.db').click(function () {
- GetDataList();
- })
- //导出
- $('.dbexecl').click(function () {
- dcexcel(this);
- })
- GetColumnList();
- GetDataList();
- })
- //加载表头
- function GetColumnList() {
- $("#thead thead tr").html('');
- /*请求后台*/
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + "/TotalTel/GetColumnList",
- dataType: 'json',
- async: true,
- data: {
- token: $.cookie("token")
- },
- success: function(data) {
- /*验证请求*/
- if(data.state == "success") {
- var content = data.data;
- for(var i = 0; i < content.length; i++) {
- $("<th>" + content[i] + "</th>").appendTo($("#thead thead tr"));
- }
- }
- }
- });
- }
- //加载数据
- function GetDataList() {
- $(".hwbb tbody").html('');
- /*请求后台*/
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + "/TotalTel/GetDataList",
- dataType: 'json',
- async: true,
- data: {
- stime: $("#startTime").val(),
- etime: $("#endTime").val(),
- token: $.cookie("token"),
- },
- success: function(data) {
- /*验证请求*/
- if(data.state == "success") {
- var content = data.rows;
- $(".tbody").html("");
- for(var i = 0; i < content.length; i++) {
- //$("<tr><td>" + content[i].时间 + "</td><td>" + content[i].电话呼入次数 + "</td><td>" + content[i].电话呼出次数 + "</td><td>" + content[i].正常接听次数 + "</td><td>" + content[i].未接通次数 + "</td><td>" + content[i].语音留言次数 + "</td><td>" + content[i].主动放弃次数 + "</td><td>" + content[i].电话骚扰次数 + "</td><td>" + content[i].平均呼入时间 + "</td></tr>").appendTo(".hwbb tbody");
- $("<tr><td>" + content[i].时间 + "</td><td>" + content[i].电话呼入次数 + "</td><td>" + content[i].电话呼出次数 + "</td><td>" + content[i].正常接听次数 + "</td><td>" + content[i].未接通次数 + "</td><td>" + content[i].主动放弃次数 + "</td><td>" + content[i].电话骚扰次数 + "</td><td>" + content[i].平均呼入时间 + "</td></tr>").appendTo(".hwbb tbody");
- //$("<tr><td>" + content[i].时间 + "</td><td>" + content[i].电话呼入次数 + "</td><td>" + content[i].电话呼出次数 + "</td><td>" + content[i].正常接听次数 + "</td><td>" + content[i].语音留言次数 + "</td><td>" + content[i].主动放弃次数 + "</td><td>" + content[i].平均呼入时间 + "</td></tr>").appendTo(".hwbb tbody");
- }
- }
- }
- });
- }
-
- function dcexcel(obj) {
- var url = huayi.config.callcenter_url + "/TotalTel/ExptList?token=" + $.cookie("token");
- url += "&stime=" + $("#startTime").val() + "&etime=" + $("#endTime").val() + "";
- obj.href = url;
- }
- </script>
- </body>
- </html>
|