暫無描述

comprehensiveStatisticsInteractionGovernmentPeople.html 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  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 href="../css/WorkOrder/Search.css" rel="stylesheet">
  10. <link href="../css/init.css" rel="stylesheet" />
  11. <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
  12. <script src="../js/laydate/laydate.js"></script>
  13. <script src="../js/zTree/jquery.ztree.core.js"></script>
  14. <style>
  15. table td {
  16. word-break: break-all;
  17. word-wrap: break-word;
  18. }
  19. .Shows {
  20. display: block !important;
  21. }
  22. .complain {
  23. display: none;
  24. }
  25. .toolLeft input {
  26. width: 200px;
  27. }
  28. th {
  29. padding: 5px;
  30. text-align: center;
  31. }
  32. td {
  33. padding: 5px;
  34. }
  35. .Borders {
  36. border: 1px solid #d7d7d7;
  37. }
  38. .daoHang {
  39. margin-bottom: 15px;
  40. }
  41. .inpBox {
  42. border: 1px solid #e5e6e7;
  43. height: 32px;
  44. width: 200px;
  45. display: inline-block;
  46. position: relative;
  47. vertical-align: middle;
  48. }
  49. .inpBox .inps1 {
  50. width: 100%;
  51. height: 30px;
  52. outline: none;
  53. border: 0;
  54. border-image-width: 0;
  55. padding: 0;
  56. padding-left: 3px;
  57. }
  58. .xl {
  59. display: inline-block;
  60. background: url(../img/dropDown.png) no-repeat;
  61. height: 100%;
  62. background-position: center center;
  63. width: 20px;
  64. position: absolute;
  65. right: 0;
  66. top: 0px;
  67. background-color: #f7bc8b;
  68. cursor: pointer;
  69. }
  70. .xl:hover {
  71. background-color: #e6d523;
  72. }
  73. .addTree {
  74. background: #fff;
  75. position: absolute;
  76. width: 100%;
  77. border: 1px solid darkgrey;
  78. right: 0;
  79. top: 30px;
  80. display: none;
  81. height: 350px;
  82. overflow-y: auto;
  83. z-index: 10;
  84. text-align: center;
  85. }
  86. .addTree .list li:hover {
  87. background: #ebebeb;
  88. color: #717171;
  89. }
  90. .select {
  91. width: 200px;
  92. height: 32px;
  93. border: 1px solid rgb(229, 230, 231);
  94. }
  95. .footerDataStatistics {
  96. /* padding: 0 0 0 20px; */
  97. margin: 10px 0 0 10px;
  98. font-size: 18px;
  99. }
  100. .tables .th-inner {
  101. white-space: normal !important;
  102. }
  103. </style>
  104. </head>
  105. <body class="gray-bg">
  106. <div class="wrapper wrapper-content animated fadeInRight">
  107. <div class="daoHang clearfix">
  108. <div class="dhLeft">
  109. <sapn>
  110. <i class="syIcon"></i>位置:
  111. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  112. <a href="javaScript:;">业务统计</a>&gt;
  113. <a href="" class="nowPosition">政民互动综合统计</a>
  114. </sapn>
  115. </div>
  116. <div class="dhRight">
  117. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  118. </div>
  119. </div>
  120. <div class="Content_box">
  121. <div class="complain Shows">
  122. <div class="toolBar clearfix">
  123. <div class="toolLeft">
  124. 开始日期:
  125. <input class="photo x-color inputs laydate-icon" type="text" id="squeryTime" autocomplete="off" />
  126. 结束时间:
  127. <input class="photo x-color inputs laydate-icon" type="text" id="equeryTime" autocomplete="off" />
  128. 部门:
  129. <div class="inpBox">
  130. <input class="inps inps1">
  131. <input type="hidden" id="deptid" />
  132. <i class="xl xl_two"></i>
  133. <div class="addTree xlAdd_two">
  134. <ul id="deptTree" class="ztree"></ul>
  135. </div>
  136. </div>
  137. 来源:
  138. <select class="select" id="source"></select>
  139. <button class="btns search_1">查询</button>
  140. <a class="btns" id="exportPublicSentiments">导出</a>
  141. </div>
  142. </div>
  143. <div style="width: 100%;padding: 10px;">
  144. <table id="workorderlist" class="tables" data-row-style="rowStyle" data-query-params="queryParams"
  145. data-pagination="true">
  146. <thead>
  147. <tr>
  148. <th data-field="" data-formatter="serialNumber" data-align="center">序号</th>
  149. <th data-field="name" data-align="center">工单来源</th>
  150. <th data-field="totalcount" data-align="center">工单总量</th>
  151. <th data-field="zb" data-align="center">转办量</th>
  152. <th data-field="td" data-align="center">退件量</th>
  153. <th data-field="tdrate" data-align="center">退件率</th>
  154. <th data-field="bj" data-align="center">已办结</th>
  155. <th data-field="ybwg" data-align="center">已办未果</th>
  156. <th data-field="cqwg" data-align="center">超期未果</th>
  157. <th data-field="blrate" data-align="center">办理率</th>
  158. <th data-field="py" data-align="center">评议量</th>
  159. <th data-field="my" data-align="center">满意量</th>
  160. <th data-field="bmy" data-align="center">不满意量</th>
  161. <th data-field="myrate" data-align="center">满意率</th>
  162. <th data-field="cxzb" data-align="center">重新转办量</th>
  163. </tr>
  164. </thead>
  165. </table>
  166. </div>
  167. <div class="footerDataStatistics">统计时段:<span class="footerTime"></span></div>
  168. </div>
  169. </div>
  170. </div>
  171. <script>
  172. $(document).ready(function () {
  173. laydate.render({
  174. elem: '#squeryTime',
  175. theme: '#00a1cb',
  176. type: 'datetime',
  177. });
  178. laydate.render({
  179. elem: '#equeryTime',
  180. theme: '#00a1cb',
  181. type: 'datetime',
  182. });
  183. initTable();
  184. bindtree();
  185. LY($("#source"));
  186. // 获取时间段
  187. $(".footerTime").text(getPeriodTime());
  188. });
  189. //表格
  190. function initTable() {
  191. $.ajax({
  192. url: huayi.config.callcenter_url + 'WorkOrderReport/Government',
  193. type: 'get',
  194. data: {
  195. starttime: $('#squeryTime').val(),
  196. endtime: $('#equeryTime').val(),
  197. deptid: $("#deptid").val(),
  198. source: $("#source").val(),
  199. token: $.cookie("token")
  200. },
  201. dataType: "json",
  202. async: true,
  203. success: function (returnValue) {
  204. //异步获取数据
  205. var resultData = returnValue.data.Government;
  206. $('#workorderlist').bootstrapTable('load', resultData);
  207. }
  208. });
  209. $('#workorderlist').bootstrapTable('destroy').bootstrapTable({
  210. striped: true,
  211. pagination: false,
  212. });
  213. }
  214. //搜索
  215. $(".search_1").click(function () {
  216. initTable();
  217. });
  218. $(".inps").focus(function () {
  219. $(this).siblings(".addTree").css("display", "block");
  220. });
  221. $(".xl").click(function () {
  222. var xl = $(this).siblings(".addTree");
  223. if (xl.css("display") == "block") {
  224. xl.css("display", "none");
  225. } else {
  226. xl.css("display", "block");
  227. }
  228. });
  229. $(".addTree").mouseleave(function () {
  230. $(this).css("display", "none");
  231. });
  232. function bindtree() {
  233. $.getJSON(
  234. huayi.config.callcenter_url + "Department/GetDeptList", {
  235. token: $.cookie("token")
  236. },
  237. function (result) {
  238. if (result.state.toLowerCase() == "success") {
  239. $.fn.zTree.init($("#deptTree"), setting, result.data);
  240. }
  241. }
  242. );
  243. }
  244. //获取所属部门
  245. var setting = {
  246. data: {
  247. key: {
  248. name: "F_DeptName",
  249. },
  250. simpleData: {
  251. enable: true,
  252. idKey: "F_DeptId",
  253. pIdKey: "F_PartentId",
  254. rootPId: -1,
  255. },
  256. },
  257. callback: {
  258. onClick: zTreeOnClick,
  259. },
  260. };
  261. function zTreeOnClick(event, treeId, treeNode) {
  262. $(".inps1").val(treeNode.F_DeptName);
  263. $("#deptid").val(treeNode.F_DeptId);
  264. }
  265. //编号
  266. function serialNumber(val, row, index) {
  267. return index + 1;
  268. }
  269. //导出
  270. $('#exportPublicSentiments').click(function () {
  271. dcexcelDispath(this);
  272. });
  273. function dcexcelDispath(obj) {
  274. var starttime = $('#squeryTime').val()
  275. var endtime = $('#equeryTime').val()
  276. var url = huayi.config.callcenter_url + "WorkOrderReport/Government?token=" + $.cookie("token");
  277. url += "&starttime=" + starttime + "&endtime=" + endtime + "&deptid=" + $('#deptid').val() + "&isExport=true";
  278. obj.href = url;
  279. }
  280. //来源
  281. function LY(obj) {
  282. obj.empty();
  283. obj.append(
  284. '<option selected="selected" value="">请选择</option>'
  285. );
  286. $.getJSON(
  287. huayi.config.callcenter_url +
  288. "Dictionary/GetDicValueListById", {
  289. token: $.cookie("token"),
  290. id: 1,
  291. },
  292. function (data) {
  293. if (data.state.toLowerCase() == "success") {
  294. var content = data.data;
  295. $(content).each(function (i, n) {
  296. $(
  297. "<option value='" +
  298. n.F_ValueId +
  299. "'>" +
  300. n.F_Value +
  301. "</option>"
  302. ).appendTo(obj);
  303. });
  304. }
  305. }
  306. );
  307. }
  308. // 获取时间段
  309. function getPeriodTime() {
  310. var date = new Date()
  311. var year = date.getFullYear();
  312. var month = date.getMonth();
  313. month = month + 1;
  314. month = month < 10 ? "0" + month : "" + month;
  315. var day = date.getDate();
  316. day = day < 10 ? "0" + day : "" + day;
  317. var defaultTime = year + "-" + month + "-" + "01" + " —— " + year + "-" + month + "-" + day
  318. return defaultTime
  319. }
  320. </script>
  321. </body>
  322. </html>