12345市长热线标准版-前端

Number.html 6.5KB

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/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. </style>
  54. </head>
  55. <body class="gray-bg">
  56. <div class="wrapper wrapper-content animated fadeInRight">
  57. <div class="daoHang clearfix">
  58. <div class="dhLeft">
  59. <sapn>
  60. <i class="syIcon"></i>位置:
  61. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  62. <a href="javaScript:;">业务统计</a>&gt;
  63. <a class="nowPosition">处理数量统计</a>
  64. </sapn>
  65. </div>
  66. <div class="dhRight">
  67. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  68. </div>
  69. </div>
  70. <div class="Content_box">
  71. <!--待处理/-->
  72. <div class="complain Shows">
  73. <div class="th-box">
  74. <div class="th-bar">
  75. <div class="seach-box">
  76. <ul>
  77. <li>
  78. 创建时间:
  79. <input class="photo x-color inputs laydate-icon" type="text" id="startTimes" />-
  80. <input class="photo x-color inputs laydate-icon" type="text" id="endTimes" />
  81. </li>
  82. <li>
  83. <a class="sc_btn btns db">搜索</a>
  84. <a class="sc_btn btns export">导出</a>
  85. </li>
  86. </ul>
  87. </div>
  88. </div>
  89. </div>
  90. <div style="width: 100%;padding: 10px;">
  91. <table id="workorderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  92. <thead>
  93. <tr>
  94. <th data-field="deptname" data-align="center">单位名称</th>
  95. <th data-field="count" data-align="center">数量</th>
  96. </tr>
  97. </thead>
  98. </table>
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. <script>
  104. initTable();
  105. var keys;
  106. $(document).ready(function () {
  107. //返回首页
  108. $('#ReIndex').click(function(){
  109. top.home_index();
  110. })
  111. laydate.skin('blue');
  112. laydate({
  113. elem: '#startTimes',
  114. event: 'focus'
  115. });
  116. laydate({
  117. elem: '#endTimes',
  118. event: 'focus'
  119. });
  120. })
  121. //表格一
  122. function initTable(keys) {
  123. //先销毁表格
  124. $('#workorderlist').bootstrapTable('destroy');
  125. //初始化表格,动态从服务器加载数据
  126. $("#workorderlist").bootstrapTable({
  127. method: "get", //使用get请求到服务器获取数据
  128. url:huayi.config.callcenter_url +"WorkOrderReport/GetDeptCount",
  129. contentType: "application/x-www-form-urlencoded",striped: true, //表格显示条纹
  130. pagination: true, //启动分页
  131. pageSize: 10, //每页显示的记录数
  132. pageNumber: 1, //当前第几页
  133. pageList: [10, 20, 50, 100], //记录数可选列表
  134. search: false, //是否启用查询
  135. showColumns: false, //显示下拉框勾选要显示的列
  136. showRefresh: false, //显示刷新按钮
  137. sidePagination: "server", //表示服务端请求
  138. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  139. //设置为limit可以获取limit, offset, search, sort, order
  140. queryParamsType: "undefined",
  141. queryParams: function queryParams(params) { //设置查询参数
  142. var param = {
  143. pageIndex: params.pageNumber,
  144. pageSize: params.pageSize,
  145. start: $("#startTimes").val(),
  146. end: $("#endTimes").val(),
  147. token: $.cookie("token")
  148. };
  149. return param;
  150. },
  151. onLoadSuccess: function () { //加载成功时执行
  152. //layer.msg("加载成功");
  153. },
  154. onLoadError: function () { //加载失败时执行
  155. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  156. }
  157. });
  158. }
  159. //代办搜索
  160. $(".db").click(function () {
  161. initTable();
  162. })
  163. //导出
  164. $('.export').click(function(){
  165. dcexcel(this);
  166. })
  167. function dcexcel(obj) {
  168. var url = huayi.config.callcenter_url + "WorkOrderReport/GetDeptCount?token=" + $.cookie("token");
  169. url += "&start=" + $("#startTimes").val() + "&end=" + $("#endTimes").val()+ "&isExport=true";
  170. obj.href = url;
  171. }
  172. </script>
  173. </body>
  174. </html>