永城市12345 (县级市)- 来源于虞城县12345 - 所有县级统一API

ZX.html 5.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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. <script src="../Script/Common/huayi.load.js"></script>
  8. <script src="../Script/Common/huayi.config.js"></script>
  9. <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
  10. <link href="../css/WorkOrder/Search.css" rel="stylesheet">
  11. <link href="../css/init.css" rel="stylesheet" />
  12. <script src="../js/laydate/laydate.js"></script>
  13. <script src="../My97DatePicker/WdatePicker.js"></script>
  14. <style>
  15. table td {
  16. word-break: break-all;
  17. word-wrap: break-word;
  18. }
  19. .ld-service li {
  20. float: left;
  21. font-size: 14px;
  22. color: #000;
  23. padding: 5px 15px;
  24. cursor: pointer;
  25. border-bottom: 1px solid #ccc;
  26. }
  27. .cr-click {
  28. border: 1px solid #ccc;
  29. background-color: #fff;
  30. border-bottom: none !important;
  31. border-bottom-left-radius: 5px;
  32. border-bottom-right-radius: 5px;
  33. }
  34. .Shows {
  35. display: block !important;
  36. }
  37. .complain {
  38. display: none;
  39. }
  40. th {
  41. padding: 5px;
  42. text-align: center;
  43. }
  44. td {
  45. padding: 5px;
  46. }
  47. .Borders {
  48. border: 1px solid #d7d7d7;
  49. }
  50. .cx {
  51. display: block;
  52. }
  53. #list thead th{
  54. background: #01a1cb;
  55. color: #fff;
  56. }
  57. .th-bar{
  58. height: initial;
  59. }
  60. </style>
  61. </head>
  62. <body class="gray-bg">
  63. <div class="daoHang clearfix">
  64. <div class="dhLeft">
  65. <sapn>
  66. <i class="syIcon"></i>位置:
  67. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  68. <a href="javaScript:;">业务统计</a>&gt;
  69. <a class="nowPosition">坐席工作统计</a>
  70. </sapn>
  71. </div>
  72. <div class="dhRight">
  73. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  74. </div>
  75. </div>
  76. <div class="wrapper wrapper-content">
  77. <div class="Content_box">
  78. <!--待处理/-->
  79. <div class="complain Shows">
  80. <div class="th-top clearfix">
  81. <div class="form-inline th-bar clearfix">
  82. <div class="time-box form-group" >
  83. <i class="tub fa fa-calendar"></i>
  84. <input class="form-control" type="text" id="startTime" placeholder="请选择创建时间">
  85. </div>
  86. <div class="time-box form-group" >
  87. <span class="text-danger" style="padding-left: 10px;line-height: 30px;">默认显示当前月的信息</span>
  88. </div>
  89. <div class="form-group tool_bars pull-right">
  90. <botton class="btns db">搜索</botton>
  91. <a class="btns export">导出</a>
  92. </div>
  93. </div>
  94. </div>
  95. <div style="width: 100%;">
  96. <table id="workorderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  97. <thead>
  98. <tr>
  99. <th data-field="username" data-align="center">姓名</th>
  100. <th data-field="telcount" data-align="center">接听量</th>
  101. <th data-field="telhandcount" data-align="center">通话成单量</th>
  102. <th data-field="handcount" data-align="center">手动录单量</th>
  103. <th data-field="endcount" data-align="center">当即办理量</th>
  104. <th data-field="turncount" data-align="center">网络转办量</th>
  105. <th data-field="visitcount" data-align="center">回访量</th>
  106. </tr>
  107. </thead>
  108. </table>
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113. <script>
  114. $(document).ready(function () {
  115. laydate.render({
  116. elem: '#startTime',
  117. range: '~',
  118. theme: '#00a1cb',
  119. });
  120. //导出
  121. $('.export').click(function () {
  122. dcexcel(this);
  123. })
  124. //搜索
  125. $(".db").click(function () {
  126. initTable();
  127. })
  128. initTable();
  129. })
  130. function initTable() {
  131. $.ajax({
  132. url: huayi.config.callcenter_url + 'WorkOrderReport/GetUserAccountAssessment',
  133. type: 'get',
  134. data: {
  135. start: ($('#startTime').val() ? $('#startTime').val().split('~')[0]:""),
  136. end: ($('#startTime').val() ? $('#startTime').val().split('~')[1]:""),
  137. token: $.cookie("token")
  138. },
  139. dataType: "json",
  140. async: true,
  141. success: function (returnValue) {
  142. //异步获取数据
  143. var resultData1 = returnValue.data.UserAssessmentReport;
  144. $('#workorderlist').bootstrapTable('load', resultData1);
  145. }
  146. });
  147. $('#workorderlist').bootstrapTable('destroy').bootstrapTable({ striped: true });
  148. }
  149. function dcexcel(obj) {
  150. var url = huayi.config.callcenter_url + "WorkOrderReport/GetUserAccountAssessment?token=" + $.cookie("token");
  151. url += "&start=" + ($('#startTime').val() ? $('#startTime').val().split('~')[0]:"") + "&end=" + ($('#startTime').val() ? $('#startTime').val().split('~')[1]:"") +"&isExport=true";
  152. obj.href = url;
  153. }
  154. </script>
  155. </body>
  156. </html>