Нет описания

XL.html 9.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  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 href="" 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. </li>-->
  91. <li>
  92. 交办时间:
  93. <input class="photo x-color inputs laydate-icon" type="text" id="startTimes" />-
  94. <input class="photo x-color inputs laydate-icon" type="text" id="endTimes" />
  95. </li>
  96. <li>
  97. 来源:
  98. <select class="select_" id="source"></select>
  99. </li>
  100. <li>
  101. <a class="sc_btn btns db">搜索</a>
  102. <a class="sc_btn btns export">导出</a>
  103. </li>
  104. <li><span class="text-danger"
  105. style="padding-left: 10px;line-height: 30px;">默认显示当前月的信息</span></li>
  106. </ul>
  107. </div>
  108. </div>
  109. </div>
  110. <div style="width: 100%;padding: 10px;">
  111. <table id="workorderlist" data-row-style="rowStyle" data-query-params="queryParams"
  112. data-pagination="true">
  113. <thead>
  114. <tr>
  115. <th data-field="" data-formatter="serialNumber" data-align="center">序号</th>
  116. <th data-field="deptname" data-align="center">单位名称</th>
  117. <th data-field="completedcount" data-align="center">已办总量</th>
  118. <th data-field="timelycount" data-align="center">及时量</th>
  119. <th data-field="timeoutcount" data-align="center">超时量</th>
  120. <th data-field="timeouthour" data-align="center">超时时长(小时)</th>
  121. <th data-field="delaycount" data-align="center">延时量</th>
  122. <th data-field="dealhour" data-align="center">处理时长(小时)</th>
  123. <th data-field="avgdealhour" data-align="center">平均处理时长(小时)</th>
  124. <th data-field="maxdealhour" data-align="center">最大处理时长(小时)</th>
  125. <th data-field="visitcount" data-align="center">回访量</th>
  126. <th data-field="satisfiedcount" data-align="center">市民满意</th>
  127. <th data-field="notsatisfiedcount" data-align="center">市民不满意</th>
  128. </tr>
  129. </thead>
  130. </table>
  131. </div>
  132. </div>
  133. </div>
  134. </div>
  135. <script>
  136. var keys;
  137. var start;
  138. var end;
  139. var deptId;
  140. $(document).ready(function () {
  141. laydate.skin('blue');
  142. laydate({
  143. elem: '#startTimes',
  144. event: 'focus'
  145. });
  146. laydate({
  147. elem: '#endTimes',
  148. event: 'focus'
  149. });
  150. //来源
  151. LY($("#source"));
  152. initTable();
  153. })
  154. function initTable() {
  155. $.ajax({
  156. url: huayi.config.callcenter_url + 'WorkOrderReport/GetDeptAssessment',
  157. type: 'get',
  158. data: {
  159. start: $("#startTimes").val(),
  160. end: $("#endTimes").val(),
  161. source: $("#source").val(),
  162. token: $.cookie("token")
  163. },
  164. dataType: "json",
  165. async: true,
  166. success: function (returnValue) {
  167. //异步获取数据
  168. var resultData1 = returnValue.data.DeptAssessmentReport;
  169. $('#workorderlist').bootstrapTable('load', resultData1);
  170. }
  171. });
  172. $('#workorderlist').bootstrapTable('destroy').bootstrapTable({
  173. striped: true
  174. });
  175. }
  176. //$.getJSON(huayi.config.callcenter_url + "Department/GetDeptList", { token: $.cookie("token") }, function (result) {
  177. // if (result.state.toLowerCase() == "success") {
  178. // seatlist = result.data;
  179. // bindseat($("#depar"));
  180. // }
  181. //});
  182. //function bindseat(obj) {
  183. // obj.empty();
  184. // obj.append('<option value="">全部</option>');
  185. // $(seatlist).each(function (i, n) {
  186. // obj.append('<option value="' + n.F_DeptId + '">' + n.F_DeptName + '</option>');
  187. // })
  188. //}
  189. //序号
  190. function serialNumber(val, row, index) {
  191. return index + 1;
  192. }
  193. //来源
  194. function LY(obj) {
  195. obj.empty();
  196. obj.append(
  197. '<option selected="selected" value="">请选择</option>'
  198. );
  199. $.getJSON(
  200. huayi.config.callcenter_url +
  201. "Dictionary/GetDicValueListById", {
  202. token: $.cookie("token"),
  203. id: 1,
  204. },
  205. function (data) {
  206. if (data.state.toLowerCase() == "success") {
  207. var content = data.data;
  208. $(content).each(function (i, n) {
  209. $(
  210. "<option value='" +
  211. n.F_ValueId +
  212. "'>" +
  213. n.F_Value +
  214. "</option>"
  215. ).appendTo(obj);
  216. });
  217. }
  218. }
  219. );
  220. }
  221. //导出
  222. $('.export').click(function () {
  223. dcexcel(this);
  224. })
  225. function dcexcel(obj) {
  226. var source = $("#source").val();
  227. var url = huayi.config.callcenter_url + "WorkOrderReport/GetDeptAssessment?token=" + $.cookie("token");
  228. //url += "&start=" + $("#startTimes").val() + "&end=" + $("#endTimes").val() + "&deptId=" + $("#depar").val() + "&isExport=true";
  229. url += "&start=" + $("#startTimes").val() + "&end=" + $("#endTimes").val() + "&source=" + source + "&isExport=true";
  230. obj.href = url;
  231. }
  232. //搜索
  233. $(".db").click(function () {
  234. initTable();
  235. })
  236. </script>
  237. </body>
  238. </html>