No Description

reportEmergency.html 5.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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. <link rel="stylesheet" href="./css/reportCommon.css" />
  13. <script src="../js/laydate/laydate.js"></script>
  14. <script src="../js/zTree/jquery.ztree.core.js"></script>
  15. </head>
  16. <body class="gray-bg">
  17. <div class="wrapper wrapper-content animated fadeInRight">
  18. <div class="daoHang clearfix">
  19. <div class="dhLeft">
  20. <sapn>
  21. <i class="syIcon"></i>位置:
  22. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  23. <a href="javaScript:;">报表管理</a>&gt;
  24. <a href="" class="nowPosition">紧急事项报表</a>
  25. </sapn>
  26. </div>
  27. <div class="dhRight">
  28. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  29. </div>
  30. </div>
  31. <div class="Content_box">
  32. <div class="complain Shows">
  33. <div class="toolBar clearfix">
  34. <div class="toolLeft">
  35. 开始日期:
  36. <input class="photo x-color inputs laydate-icon" type="text" id="squeryTime" autocomplete="off" />
  37. 结束时间:
  38. <input class="photo x-color inputs laydate-icon" type="text" id="equeryTime" autocomplete="off" />
  39. 部门:
  40. <div class="inpBox">
  41. <input class="inps inps1">
  42. <input type="hidden" id="deptid" />
  43. <i class="xl xl_two"></i>
  44. <div class="addTree xlAdd_two">
  45. <ul id="deptTree" class="ztree"></ul>
  46. </div>
  47. </div>
  48. 来源:
  49. <select class="select" id="source"></select>
  50. <button class="btns search_1">查询</button>
  51. <a class="btns" id="exportPublicSentiments">导出</a>
  52. </div>
  53. </div>
  54. <div style="width: 100%;padding: 10px;">
  55. <table id="reportlist" class="tables" data-row-style="rowStyle" data-query-params="queryParams">
  56. </table>
  57. </div>
  58. <div class="footerDataStatistics">统计时段:00:00—23:59:59</div>
  59. </div>
  60. </div>
  61. </div>
  62. <script src="./js/reportCommon.js"></script>
  63. <script>
  64. var exportParams = {}
  65. var tableColumns = [
  66. { title: '序号', align: 'center',
  67. formatter: function(value, row, index) {
  68. return index+1
  69. }
  70. },
  71. { field: 'deptname', title: '联动单位', align: 'center'},
  72. { field: 'Undertakers', title: '承办件', align: 'center'},
  73. { field: 'Undertakersrate', title: '承办率', align: 'center'},
  74. { field: 'Undertakersscore', title: '得分(5分)', align: 'center'},
  75. { field: 'signfor', title: '及时签收件', align: 'center'},
  76. { field: 'signforrate', title: '及时签收率', align: 'center'},
  77. ]
  78. var treeInputParam = {
  79. classInps:'.inps',
  80. classId:'#deptid',
  81. treeApi:'Department/GetDeptList',
  82. classAddTree:'.addTree',
  83. classXl:'.xl',
  84. treeId:'#deptTree',
  85. treeObj:{
  86. name:'F_DeptName',
  87. id:'F_DeptId',
  88. pid:'F_PartentId',
  89. onclick:zTreeOnClick
  90. }
  91. }
  92. var selectParam = {
  93. id:"#source",
  94. apiUrl:"Dictionary/GetDicValueListById",
  95. dataParam:{
  96. id:1
  97. }
  98. }
  99. $(document).ready(function () {
  100. laydate.render({
  101. elem: '#squeryTime',
  102. theme: '#00a1cb',
  103. type: 'datetime',
  104. });
  105. laydate.render({
  106. elem: '#equeryTime',
  107. theme: '#00a1cb',
  108. type: 'datetime',
  109. });
  110. initTable();
  111. bindtree();
  112. selectCommon(selectParam);
  113. });
  114. //搜索
  115. $(".search_1").click(function () {
  116. initTable();
  117. });
  118. //导出
  119. $('#exportPublicSentiments').click(function () {
  120. exportParams.isdc = true
  121. exportFileFun('DataAssessment/GetExamine',exportParams)
  122. });
  123. //表格
  124. function initTable() {
  125. var dataParams = {
  126. stime: $('#squeryTime').val(),
  127. etime: $('#equeryTime').val(),
  128. token: $.cookie("token")
  129. }
  130. exportParams = dataParams
  131. $.ajax({
  132. url: huayi.config.callcenter_url + 'WorkOrderReport/GetAreaLevel',
  133. type: 'get',
  134. data: dataParams,
  135. dataType: "json",
  136. async: true,
  137. success: function (returnValue) {
  138. //异步获取数据
  139. if (returnValue.state == "success") {
  140. var resultData = returnValue.rows;
  141. if (resultData.length>0) {
  142. $('#reportlist').bootstrapTable('load', resultData);
  143. }
  144. }
  145. }
  146. });
  147. $('#reportlist').bootstrapTable('destroy').bootstrapTable({
  148. striped: true,
  149. pagination: false,
  150. columns:tableColumns
  151. });
  152. }
  153. </script>
  154. </body>
  155. </html>