12345市长热线标准版-前端

XL.html 8.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  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="../css/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. #list tbody tr td {
  58. text-align: center;
  59. }
  60. #list tfoot tr td {
  61. text-align: center;
  62. }
  63. </style>
  64. </head>
  65. <body class="gray-bg">
  66. <div class="wrapper wrapper-content animated fadeInRight">
  67. <div class="daoHang clearfix">
  68. <div class="dhLeft">
  69. <sapn>
  70. <i class="syIcon"></i>位置:
  71. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  72. <a href="javaScript:;">业务统计</a>&gt;
  73. <a class="nowPosition">单位绩效统计</a>
  74. </sapn>
  75. </div>
  76. <div class="dhRight">
  77. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  78. </div>
  79. </div>
  80. <div class="Content_box">
  81. <!--待处理/-->
  82. <div class="complain Shows">
  83. <div class="th-box">
  84. <div class="th-bar">
  85. <div class="seach-box">
  86. <ul>
  87. <li>
  88. 部门:
  89. <select name="" id="depar" class="select_"></select>
  90. <!--<select name="" id="" class="select_"></select>-->
  91. </li>
  92. <li>
  93. 交办时间:
  94. <input class="photo x-color inputs laydate-icon" type="text" id="startTimes" />-
  95. <input class="photo x-color inputs laydate-icon" type="text" id="endTimes" />
  96. </li>
  97. <li>
  98. <a class="sc_btn btns db">搜索</a>
  99. <a class="sc_btn btns export">导出</a>
  100. </li>
  101. </ul>
  102. </div>
  103. </div>
  104. </div>
  105. <div style="width: 100%;padding: 10px;">
  106. <table id="list" class="table table-hover table-striped table-bordered table-condensed">
  107. <thead>
  108. <tr>
  109. <th>单位名称</th>
  110. <th>交办总量</th>
  111. <th>已办总量</th>
  112. <th>及时量</th>
  113. <th>超时量</th>
  114. <th>超时时长(小时)</th>
  115. <th>延时量</th>
  116. <th>处理时长(小时)</th>
  117. <th>最大处理时长(小时)</th>
  118. <th>回访量</th>
  119. <th>市民满意</th>
  120. <th>市民不满意</th>
  121. </tr>
  122. </thead>
  123. <tbody></tbody>
  124. <tfoot>
  125. </tfoot>
  126. </table>
  127. </div>
  128. </div>
  129. </div>
  130. </div>
  131. <script>
  132. var keys;
  133. var start;
  134. var end;
  135. var deptId;
  136. $(document).ready(function () {
  137. //返回首页
  138. $('#ReIndex').click(function () {
  139. top.home_index();
  140. })
  141. laydate.skin('blue');
  142. laydate({
  143. elem: '#startTimes',
  144. event: 'focus'
  145. });
  146. laydate({
  147. elem: '#endTimes',
  148. event: 'focus'
  149. });
  150. })
  151. $.getJSON(huayi.config.callcenter_url + "Department/GetDeptList", { token: $.cookie("token") }, function (result) {
  152. if (result.state.toLowerCase() == "success") {
  153. seatlist = result.data;
  154. bindseat($("#depar"));
  155. }
  156. });
  157. function bindseat(obj) {
  158. obj.empty();
  159. obj.append('<option value="">全部</option>');
  160. $(seatlist).each(function (i, n) {
  161. obj.append('<option value="' + n.F_DeptId + '">' + n.F_DeptName + '</option>');
  162. })
  163. }
  164. Ajax();
  165. //导出
  166. $('.export').click(function () {
  167. dcexcel(this);
  168. })
  169. function dcexcel(obj) {
  170. var url = huayi.config.callcenter_url + "WorkOrderReport/GetDeptAssessment?token=" + $.cookie("token");
  171. url += "&start=" + $("#startTimes").val() + "&end=" + $("#endTimes").val() + "&deptId=" + $("#depar").val() + "&isExport=true";
  172. obj.href = url;
  173. }
  174. //搜索
  175. $(".db").click(function () {
  176. start = $('#startTimes').val();
  177. end = $('#endTimes').val();
  178. deptId = $('#depar').val();
  179. Ajax(start, end, deptId);
  180. })
  181. function Ajax(start, end, deptId) {
  182. $('#list tbody').html('');
  183. $('#list tfoot').html('');
  184. $.ajax({
  185. type: "get",
  186. url: huayi.config.callcenter_url + "WorkOrderReport/GetDeptAssessment",
  187. async: true,
  188. dataType: 'json',
  189. data: {
  190. token: $.cookie("token"),
  191. start: start,
  192. end: end,
  193. deptId: deptId
  194. },
  195. success: function (data) {
  196. var tbody = data.data.list;
  197. var tfoot = data.data.total;
  198. if (data.state.toLowerCase() == 'success') {
  199. $(tbody).each(function (i, n) {
  200. $('<tr>' +
  201. '<td>' + n.deptname + '</td>' +
  202. '<td>' + n.assignedcount + '</td>' +
  203. '<td>' + n.completedcount + '</td>' +
  204. '<td>' + n.intime + '</td>' +
  205. '<td>' + n.outtimecount + '</td>' +
  206. '<td>' + n.avgouttime + '</td>' +
  207. '<td>' + n.delayedcount + '</td>' +
  208. '<td>' + n.avghandletime + '</td>' +
  209. '<td>' + n.maxhandletime + '</td>' +
  210. '<td>' + n.visitcount + '</td>' +
  211. '<td>' + n.satisfiedrate + '</td>' +
  212. '<td>' + n.notsatisfiedrate + '</td>' +
  213. '</tr>').appendTo('#list tbody')
  214. })
  215. $(tfoot).each(function (i, n) {
  216. $('<tr>' +
  217. '<td>总计</td>' +
  218. '<td>' + n.assignedcount + '</td>' +
  219. '<td>' + n.completedcount + '</td>' +
  220. '<td>' + n.intime + '</td>' +
  221. '<td>' + n.outtimecount + '</td>' +
  222. '<td>' + n.avgouttime + '</td>' +
  223. '<td>' + n.delayedcount + '</td>' +
  224. '<td>' + n.avghandletime + '</td>' +
  225. '<td>' + n.maxhandletime + '</td>' +
  226. '<td>' + n.visitcount + '</td>' +
  227. '<td>' + n.satisfiedrate + '</td>' +
  228. '<td>' + n.notsatisfiedrate + '</td>' +
  229. '</tr>').appendTo('#list tfoot')
  230. })
  231. }
  232. }
  233. });
  234. }
  235. </script>
  236. </body>
  237. </html>