民权县12345_前端

XL.html 7.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  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. #list tbody tr td {
  58. text-align: center;
  59. }
  60. #list tfoot tr td {
  61. text-align: center;
  62. }
  63. .th-bar{
  64. height: initial;
  65. }
  66. </style>
  67. </head>
  68. <body class="gray-bg">
  69. <div class="daoHang clearfix">
  70. <div class="dhLeft">
  71. <sapn>
  72. <i class="syIcon"></i>位置:
  73. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  74. <a href="javaScript:;">业务统计</a>&gt;
  75. <a class="nowPosition">单位绩效统计</a>
  76. </sapn>
  77. </div>
  78. <div class="dhRight">
  79. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  80. </div>
  81. </div>
  82. <div class="wrapper wrapper-content">
  83. <div class="Content_box">
  84. <!--待处理/-->
  85. <div class="complain Shows">
  86. <div class="th-top clearfix">
  87. <div class="form-inline th-bar clearfix">
  88. <div class="time-box form-group" style="width: 230px;">
  89. <i class="tub fa fa-calendar"></i>
  90. <input class="form-control" type="text" id="startTime" placeholder="请选择交办时间" style="width: 230px;">
  91. </div>
  92. <div class="time-box form-group" >
  93. <span class="text-danger" style="padding-left: 10px;line-height: 30px;">默认显示当前月的信息</span>
  94. </div>
  95. <div class="form-group tool_bars pull-right">
  96. <botton class="btns db">搜索</botton>
  97. <a class="btns export">导出</a>
  98. </div>
  99. </div>
  100. </div>
  101. <div style="width: 100%;">
  102. <table id="workorderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  103. <thead>
  104. <tr>
  105. <th data-field="deptname" data-align="center">单位名称</th>
  106. <th data-field="completedcount" data-align="center">已办总量</th>
  107. <th data-field="timelycount" data-align="center">及时量</th>
  108. <th data-field="timeoutcount" data-align="center">超时量</th>
  109. <th data-field="timeouthour" data-align="center">超时时长(小时)</th>
  110. <th data-field="delaycount" data-align="center">延时量</th>
  111. <th data-field="dealhour" data-align="center">处理时长(小时)</th>
  112. <th data-field="avgdealhour" data-align="center">平均处理时长(小时)</th>
  113. <th data-field="maxdealhour" data-align="center">最大处理时长(小时)</th>
  114. <th data-field="visitcount" data-align="center">回访量</th>
  115. <th data-field="satisfiedcount" data-align="center">市民满意</th>
  116. <th data-field="notsatisfiedcount" data-align="center">市民不满意</th>
  117. </tr>
  118. </thead>
  119. </table>
  120. </div>
  121. </div>
  122. </div>
  123. </div>
  124. <script>
  125. var keys;
  126. var start;
  127. var end;
  128. var deptId;
  129. $(document).ready(function () {
  130. laydate.render({
  131. elem: '#startTime',
  132. range: '~',
  133. theme: '#00a1cb',
  134. });
  135. initTable();
  136. })
  137. function initTable() {
  138. $.ajax({
  139. url: huayi.config.callcenter_url + 'WorkOrderReport/GetDeptAssessment',
  140. type: 'get',
  141. data: {
  142. start:($('#startTime').val() ? $('#startTime').val().split('~')[0]:""),
  143. end: ($('#startTime').val() ? $('#startTime').val().split('~')[1]:""),
  144. token: $.cookie("token")
  145. },
  146. dataType: "json",
  147. async: true,
  148. success: function (returnValue) {
  149. //异步获取数据
  150. var resultData1 = returnValue.data.DeptAssessmentReport;
  151. $('#workorderlist').bootstrapTable('load', resultData1);
  152. }
  153. });
  154. $('#workorderlist').bootstrapTable('destroy').bootstrapTable({ striped: true });
  155. }
  156. //$.getJSON(huayi.config.callcenter_url + "Department/GetDeptList", { token: $.cookie("token") }, function (result) {
  157. // if (result.state.toLowerCase() == "success") {
  158. // seatlist = result.data;
  159. // bindseat($("#depar"));
  160. // }
  161. //});
  162. //function bindseat(obj) {
  163. // obj.empty();
  164. // obj.append('<option value="">全部</option>');
  165. // $(seatlist).each(function (i, n) {
  166. // obj.append('<option value="' + n.F_DeptId + '">' + n.F_DeptName + '</option>');
  167. // })
  168. //}
  169. //导出
  170. $('.export').click(function () {
  171. dcexcel(this);
  172. })
  173. function dcexcel(obj) {
  174. var url = huayi.config.callcenter_url + "WorkOrderReport/GetDeptAssessment?token=" + $.cookie("token");
  175. url += "&start=" + ($('#startTime').val() ? $('#startTime').val().split('~')[0]:"") + "&end=" + ($('#startTime').val() ? $('#startTime').val().split('~')[1]:"") + "&isExport=true";
  176. obj.href = url;
  177. }
  178. //搜索
  179. $(".db").click(function () {
  180. initTable();
  181. })
  182. </script>
  183. </body>
  184. </html>