暫無描述

seaterMY.html 6.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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/reportCommon/Search.css" rel="stylesheet">
  11. <link href="../css/reportCommon/common.css" rel="stylesheet">
  12. <link href="../css/WorkOrder/Search.css" rel="stylesheet">
  13. <link rel="stylesheet" href="../css/bootstrap-select.css" />
  14. <link href="../css/init.css" rel="stylesheet" />
  15. <script src="../css/laydate/laydate.js"></script>
  16. <script src="../js/bootstrap-select.js"></script>
  17. <script src="../My97DatePicker/WdatePicker.js"></script>
  18. <style>
  19. .seach-box ul {
  20. overflow: inherit;
  21. }
  22. </style>
  23. </head>
  24. <body class="gray-bg">
  25. <div class="wrapper wrapper-content animated fadeInRight">
  26. <div class="daoHang clearfix">
  27. <div class="dhLeft">
  28. <sapn>
  29. <i class="syIcon"></i>位置:
  30. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  31. <a href="javaScript:;">报表管理</a>&gt;
  32. <a href="" class="nowPosition">坐席接听满意度统计</a>
  33. </sapn>
  34. </div>
  35. <div class="dhRight">
  36. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  37. </div>
  38. </div>
  39. <div class="Content_box">
  40. <!--待处理/-->
  41. <div class="complain Shows">
  42. <div class="th-box">
  43. <div class="th-bar">
  44. <div class="seach-box">
  45. <ul>
  46. <li>
  47. 创建时间:
  48. <input class="photo x-color inputs laydate-icon" type="text" id="startTimes" autocomplete="off" />-
  49. <input class="photo x-color inputs laydate-icon" type="text" id="endTimes" autocomplete="off" />
  50. </li>
  51. <li style="width: 300px;">
  52. <div style="width: 100px">选择坐席:</div>
  53. <select id="userGroup" name="select" class="selectpicker show-tick form-control" com style="width: 150px;" data-live-search="true">
  54. <option value="">请选择坐席</option>
  55. </select>
  56. </li>
  57. <li style="width: 300px;">
  58. <div style="width: 100px">选择坐席:</div>
  59. <select id="ZX" name="select" class="selectpicker show-tick form-control" com style="width: 150px;" data-live-search="true">
  60. <option value="">请选择坐席</option>
  61. </select>
  62. </li>
  63. <li>
  64. <a class="sc_btn btns db" style="padding: 7px 10px;">搜索</a>
  65. <a class="sc_btn btns export">导出</a>
  66. </li>
  67. <li><span class="text-danger"
  68. style="padding-left: 10px;line-height: 30px;">默认显示当前月的信息</span></li>
  69. </ul>
  70. </div>
  71. </div>
  72. </div>
  73. <div style="width: 100%;padding: 10px;">
  74. <table id="workorderlist" data-row-style="rowStyle" data-query-params="queryParams"
  75. data-pagination="true">
  76. <thead>
  77. <tr>
  78. <th data-field="" data-formatter="serialNumber" data-align="center">序号</th>
  79. <th data-field="username" data-align="center">坐席姓名</th>
  80. <th data-field="count" data-align="center">接听量</th>
  81. <th data-field="satisfiedcount" data-align="center">满意量</th>
  82. <th data-field="normalcount" data-align="center">一般量</th>
  83. <th data-field="notsatisfiedcount" data-align="center">不满意总量</th>
  84. <th data-field="satisfiedrate" data-align="center">满意度</th>
  85. </tr>
  86. </thead>
  87. </table>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. <script src="../js/reportCommon/common.js"></script>
  93. <script>
  94. $(document).ready(function () {
  95. laydate.skin('blue');
  96. laydate({
  97. elem: '#startTimes',
  98. event: 'focus',
  99. istime: true,
  100. format: 'YYYY-MM-DD hh:mm:ss'
  101. });
  102. laydate({
  103. elem: '#endTimes',
  104. event: 'focus',
  105. istime: true,
  106. format: 'YYYY-MM-DD hh:mm:ss'
  107. });
  108. ZX($("#ZX"));
  109. // userGroup($("#userGroup"));
  110. initTable();
  111. })
  112. function initTable() {
  113. $.ajax({
  114. url: huayi.config.callcenter_url + 'TalkTime/GetUserSatisfied',
  115. type: 'get',
  116. data: {
  117. start: $("#startTimes").val(),
  118. end: $("#endTimes").val(),
  119. usercode: $("#ZX").val(),
  120. token: $.cookie("token")
  121. },
  122. dataType: "json",
  123. async: true,
  124. success: function (returnValue) {
  125. //异步获取数据
  126. var resultData1 = returnValue.data.UserSatisfiedReport;
  127. $('#workorderlist').bootstrapTable('load', resultData1);
  128. }
  129. });
  130. $('#workorderlist').bootstrapTable('destroy').bootstrapTable({
  131. striped: true
  132. });
  133. }
  134. //序号
  135. function serialNumber(val, row, index) {
  136. return index + 1;
  137. }
  138. //代办搜索
  139. $(".db").click(function () {
  140. initTable();
  141. })
  142. //导出
  143. $('.export').click(function () {
  144. dcexcel(this);
  145. })
  146. function dcexcel(obj) {
  147. var url = huayi.config.callcenter_url + "TalkTime/GetUserSatisfied?token=" + $.cookie("token");
  148. url += "&start=" + $("#startTimes").val() + "&end=" + $("#endTimes").val() + "&isExport=true";
  149. obj.href = url;
  150. }
  151. </script>
  152. </body>
  153. </html>