永城市12345 (县级市)- 来源于虞城县12345 - 所有县级统一API

MY.html 7.4KB

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