Açıklama Yok

seaterMY.html 6.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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. .seach-box ul li ul li{
  23. float: none;
  24. width: 100%;
  25. display: block;
  26. }
  27. </style>
  28. </head>
  29. <body class="gray-bg">
  30. <div class="wrapper wrapper-content animated fadeInRight">
  31. <div class="daoHang clearfix">
  32. <div class="dhLeft">
  33. <sapn>
  34. <i class="syIcon"></i>位置:
  35. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  36. <a href="javaScript:;">报表管理</a>&gt;
  37. <a href="" class="nowPosition">坐席接听满意度统计</a>
  38. </sapn>
  39. </div>
  40. <div class="dhRight">
  41. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  42. </div>
  43. </div>
  44. <div class="Content_box">
  45. <!--待处理/-->
  46. <div class="complain Shows">
  47. <div class="th-box">
  48. <div class="th-bar">
  49. <div class="seach-box">
  50. <ul>
  51. <li>
  52. 创建时间:
  53. <input class="photo x-color inputs laydate-icon" type="text" id="startTimes" autocomplete="off" />-
  54. <input class="photo x-color inputs laydate-icon" type="text" id="endTimes" autocomplete="off" />
  55. </li>
  56. <li style="width: 340px;">
  57. <div style="width: 100px;word-break: normal;">选择坐席组:</div>
  58. <div style="width: 220px">
  59. <select id="userGroup" name="select" class="selectpicker show-tick form-control" com style="width: 150px !important;" data-live-search="true">
  60. <option value="">请选择坐席</option>
  61. </select>
  62. </div>
  63. </li>
  64. <li style="width: 320px;">
  65. <div style="width: 100px">选择坐席:</div>
  66. <div style="width: 220px">
  67. <select id="ZX" name="select" class="selectpicker show-tick form-control" com data-live-search="true">
  68. <option value="">请选择坐席</option>
  69. </select>
  70. </div>
  71. </li>
  72. <li>
  73. <a class="sc_btn btns dbPresent" style="padding: 7px 10px;">搜索</a>
  74. <a class="sc_btn btns exportPresent">导出</a>
  75. </li>
  76. <li><span class="text-danger" style="padding-left: 10px;line-height: 30px;">默认显示当前月的信息</span></li>
  77. </ul>
  78. </div>
  79. </div>
  80. </div>
  81. <div style="width: 100%;padding: 10px;">
  82. <table id="workorderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  83. <thead>
  84. <tr>
  85. <th data-field="" data-formatter="serialNumber" data-align="center">序号</th>
  86. <th data-field="username" data-align="center">坐席姓名</th>
  87. <th data-field="count" data-align="center">接听量</th>
  88. <th data-field="satisfiedcount" data-align="center">满意量</th>
  89. <th data-field="normalcount" data-align="center">一般量</th>
  90. <th data-field="notsatisfiedcount" data-align="center">不满意总量</th>
  91. <th data-field="satisfiedrate" data-align="center">满意度</th>
  92. </tr>
  93. </thead>
  94. </table>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. <script src="../js/reportCommon/common.js"></script>
  100. <script>
  101. var apiUrl = 'TalkTime/GetUserSatisfied'
  102. var zxSelectObj = {
  103. id:'ZX',
  104. apiUrl:'SeatMonitoring/GetList',
  105. params:{
  106. group:$("#userGroup").val()
  107. },
  108. selectValue:'F_UserCode',
  109. selectName:'F_UserName'
  110. }
  111. var groupSelectObj = {
  112. id:'userGroup',
  113. apiUrl:'InfoNew/GetDicValueListById',
  114. params:{
  115. id:2522
  116. },
  117. selectValue:'F_Value',
  118. selectName:'F_Value'
  119. }
  120. $(document).ready(function() {
  121. laydate.skin('blue');
  122. laydate({
  123. elem: '#startTimes',
  124. event: 'focus',
  125. istime: true,
  126. format: 'YYYY-MM-DD hh:mm:ss'
  127. });
  128. laydate({
  129. elem: '#endTimes',
  130. event: 'focus',
  131. istime: true,
  132. format: 'YYYY-MM-DD hh:mm:ss'
  133. });
  134. selectCommon(zxSelectObj)
  135. selectCommon(groupSelectObj)
  136. initTablePresent();
  137. })
  138. $("#userGroup").change(function(){
  139. selectCommon(zxSelectObj)
  140. })
  141. //代办搜索
  142. $(".dbPresent").click(function() {
  143. initTablePresent()
  144. })
  145. //导出
  146. $('.exportPresent').click(function() {
  147. var params = dataParam()
  148. params.isExport = true;
  149. exportFileFun(apiUrl, params)
  150. })
  151. function initTablePresent() {
  152. $.ajax({
  153. url: huayi.config.callcenter_url + 'TalkTime/GetUserSatisfied',
  154. type: 'get',
  155. data: dataParam(),
  156. dataType: "json",
  157. async: true,
  158. success: function (returnValue) {
  159. //异步获取数据
  160. var resultData1 = returnValue.data.UserSatisfiedReport;
  161. $('#workorderlist').bootstrapTable('load', resultData1);
  162. }
  163. });
  164. $('#workorderlist').bootstrapTable('destroy').bootstrapTable({
  165. striped: true
  166. });
  167. }
  168. //序号
  169. function serialNumber(val, row, index) {
  170. return index + 1;
  171. }
  172. function dataParam() {
  173. var obj = {
  174. start: $("#startTimes").val(),
  175. end: $("#endTimes").val(),
  176. usergroup:$("#userGroup").val(),
  177. usercode: $("#ZX").val(),
  178. token: $.cookie("token")
  179. };
  180. return obj
  181. }
  182. </script>
  183. </body>
  184. </html>