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

TB.html 5.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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. .th-bar{
  54. height: initial;
  55. }
  56. </style>
  57. </head>
  58. <body class="gray-bg">
  59. <div class="daoHang clearfix">
  60. <div class="dhLeft">
  61. <sapn>
  62. <i class="syIcon"></i>位置:
  63. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  64. <a href="javaScript:;">业务统计</a>&gt;
  65. <a class="nowPosition">通报批评统计</a>
  66. </sapn>
  67. </div>
  68. <div class="dhRight">
  69. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  70. </div>
  71. </div>
  72. <div class="wrapper wrapper-content">
  73. <div class="Content_box">
  74. <!--待处理/-->
  75. <div class="complain Shows">
  76. <div class="th-top clearfix">
  77. <div class="form-inline th-bar clearfix">
  78. <div class="time-box form-group" >
  79. <i class="tub fa fa-calendar"></i>
  80. <input class="form-control" type="text" id="startTime" placeholder="请选择创建时间">
  81. </div>
  82. <div class="time-box form-group" >
  83. <span class="text-danger" style="padding-left: 10px;line-height: 30px;">默认显示当前月的信息</span>
  84. </div>
  85. <div class="form-group tool_bars pull-right">
  86. <botton class="btns db">搜索</botton>
  87. <a class="btns export">导出</a>
  88. </div>
  89. </div>
  90. </div>
  91. <div style="width: 100%;">
  92. <table id="workorderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  93. <thead>
  94. <tr>
  95. <th data-field="name" data-align="center">单位名称</th>
  96. <th data-field="zbcount" data-align="center">主办处理总量</th>
  97. <th data-field="zbtgcount" data-align="center">主办通报批评量</th>
  98. <th data-field="zbtgrate" data-align="center">主办通报批评率</th>
  99. <th data-field="xbcount" data-align="center">协办处理总量</th>
  100. <th data-field="xbtgcount" data-align="center">协办通报批评量</th>
  101. <th data-field="xbtgrate" data-align="center">协办通报批评率</th>
  102. </tr>
  103. </thead>
  104. </table>
  105. </div>
  106. </div>
  107. </div>
  108. </div>
  109. <script>
  110. $(document).ready(function () {
  111. laydate.render({
  112. elem: '#startTime',
  113. range: '~',
  114. theme: '#00a1cb',
  115. });
  116. $("#workorderlist").on("click-row.bs.table", function (e, row, ele) {
  117. $('.success').removeClass('success'); //去除之前选中的行的,选中样式
  118. $(ele).addClass('success'); //添加当前选中的 success样式用于区别
  119. });
  120. initTable();
  121. })
  122. //表格一
  123. function initTable() {
  124. $('#workorderlist').bootstrapTable('destroy').bootstrapTable({ striped: true });
  125. $.getJSON(huayi.config.callcenter_url + "WorkOrderReport/GetNotice", { start: ($('#startTime').val() ? $('#startTime').val().split('~')[0]:""), end: ($('#startTime').val() ? $('#startTime').val().split('~')[1]:""), token: $.cookie("token") }, function (data) {
  126. if (data.state == "success") {
  127. $('#workorderlist').bootstrapTable('load', data.data.DeptNoticeReport);
  128. }
  129. })
  130. }
  131. //代办搜索
  132. $(".db").click(function () {
  133. initTable();
  134. })
  135. //导出
  136. $('.export').click(function () {
  137. dcexcel(this);
  138. })
  139. function dcexcel(obj) {
  140. var url = huayi.config.callcenter_url + "WorkOrderReport/GetNotice?token=" + $.cookie("token");
  141. url += "&start=" + ($('#startTime').val() ? $('#startTime').val().split('~')[0]:"") + "&end=" + ($('#startTime').val() ? $('#startTime').val().split('~')[1]:"") + "&isExport=true";
  142. obj.href = url;
  143. }
  144. </script>
  145. </body>
  146. </html>