Açıklama Yok

networkAssessment.html 6.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>网络单位考核报表</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <link href="../css/init.css" rel="stylesheet" />
  8. <link href="../css/Table/table1.css" rel="stylesheet" />
  9. <script src="../Script/Common/huayi.load.js"></script>
  10. <script src="../Script/Common/huayi.config.js"></script>
  11. <script src="../My97DatePicker/WdatePicker.js"></script>
  12. <script src="../css/laydate/laydate.js"></script>
  13. <style>
  14. body {
  15. font-family: "微软雅黑";
  16. font-size: 14px;
  17. }
  18. ul li {
  19. list-style: none;
  20. float: left;
  21. }
  22. .fr {
  23. float: right;
  24. }
  25. /*标头*/
  26. .th-box {
  27. width: 100%;
  28. padding: 5px;
  29. border-bottom: 1px solid #e7eaec;
  30. }
  31. .th-bar {
  32. height: 40px;
  33. }
  34. #list thead tr th{
  35. background: #01a1cb;
  36. color: #fff;
  37. }
  38. </style>
  39. </head>
  40. <body class="gray-bg">
  41. <div class="wrapper wrapper-content animated fadeInRight">
  42. <div class="daoHang clearfix">
  43. <div class="dhLeft">
  44. <sapn><i class="syIcon"></i>位置:<a href="javaScript:;" id="ReIndex">首页</a>&gt;<a href="javaScript:;">报表管理</a>&gt;<a href="" class="nowPosition">网络单位考核报表</a></sapn>
  45. </div>
  46. <div class="dhRight">
  47. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  48. </div>
  49. </div>
  50. <div class="th-box">
  51. <div class="th-bar">
  52. <!--<a class="sc_btn btn-info" id="moves">批量删除</a>-->
  53. <div class="seach-box fr">
  54. <!--<ul>
  55. <li>开始时间:<input id="start" class="photo x-color laydate-icon" type="text" /></li>
  56. <li>结束时间:<input id="end" class="photo x-color laydate-icon" type="text" /></li>
  57. <li>
  58. 时间类型:
  59. <select style="width: 100px;" class="select_ dataType">
  60. <option value="0" selected="selected">日</option>
  61. <option value="1">周</option>
  62. <option value="2">月</option>
  63. </select>
  64. </li>
  65. <li>
  66. <button class="btns search">查询</button>
  67. <a class="btns export">导出</a>
  68. </li>
  69. </ul>-->
  70. </div>
  71. </div>
  72. </div>
  73. <div style="width: 100%;padding: 10px;">
  74. <table id="list" class="table table-hover table-striped table-bordered table-condensed">
  75. <thead>
  76. <tr>
  77. <th>姓名</th>
  78. <th>工号</th>
  79. <th>排名</th>
  80. <th>工作总量计分(50)</th>
  81. <th>话务质量计分(30)</th>
  82. <th>值班值守计分(10)</th>
  83. <th>工作纪律计分(10)</th>
  84. <th>总计</th>
  85. </tr>
  86. <tr>
  87. <td>小刘</td>
  88. <td>202005140001</td>
  89. <td>1</td>
  90. <td>50</td>
  91. <td>30</td>
  92. <td>10</td>
  93. <td>10</td>
  94. <td>100</td>
  95. </tr>
  96. <tr>
  97. <td>小王</td>
  98. <td>202005140002</td>
  99. <td>2</td>
  100. <td>49</td>
  101. <td>29</td>
  102. <td>10</td>
  103. <td>10</td>
  104. <td>98</td>
  105. </tr>
  106. </thead>
  107. <tbody>
  108. </tbody>
  109. </table>
  110. <!--高级搜索框-->
  111. </div>
  112. </div>
  113. <script>
  114. $(document).ready(function () {
  115. var start=$('#start').val();//开始时间
  116. var end=$('#end').val();//结束时间
  117. var usercode;//工号
  118. var type=$('.dataType').val();//时间类型
  119. //表头
  120. $.ajax({
  121. type:"get",
  122. url:huayi.config.callcenter_url +"TelWOReport/GetColumnList",
  123. async:true,
  124. dataType:'json',
  125. data:{
  126. token:$.cookie("token")
  127. },
  128. success:function(data){
  129. var con=data.data;
  130. if(data.state.toLowerCase()=='success'){
  131. $(con).each(function(i,n){
  132. $('<th>'+n +'</th>').appendTo('#ist thead tr')
  133. })
  134. }
  135. }
  136. });
  137. tableAjax(start,end,type)
  138. //表内数据
  139. function tableAjax(start,end,type){
  140. $('#list tbody').html('');
  141. $.ajax({
  142. type:"get",
  143. url:huayi.config.callcenter_url +"TelWOReport/GetTrafficReport",
  144. async:true,
  145. dataType:'json',
  146. data:{
  147. token:$.cookie("token"),
  148. btime:start,
  149. etime:end,
  150. type:type
  151. // usercode:usercode
  152. },
  153. success:function(data){
  154. var con=data.data;
  155. if(data.state.toLowerCase()=='success'){
  156. $(con).each(function(i,n){
  157. $('<tr><td>' + n.日期 + '</td><td>' + n.接听来电 + '</td><td>' + n.有效来电 + '</td><td>' + n.受理 + '</td><td>' + n.在线办结 + '</td><td>' + n.转派工单 + '</td><td>' + n.办结 + '</td></tr>').appendTo('#ist tbody')
  158. })
  159. }
  160. }
  161. });
  162. }
  163. $('.search').click(function(){
  164. start=$('#start').val();
  165. end=$('#end').val();
  166. type=$('.dataType').val();
  167. tableAjax(start,end,type)
  168. })
  169. $('.export').click(function(){
  170. dcexcel(this);
  171. })
  172. function dcexcel(obj) {
  173. var url = huayi.config.callcenter_url + "TelWOReport/ExptList?token=" + $.cookie("token");
  174. url += "&btime=" + $("#start").val() + "&etime=" + $("#end").val()+ "&type=" + $(".dataType").val();
  175. obj.href = url;
  176. }
  177. })
  178. </script>
  179. </body>
  180. </html>