No Description

reportDropCall.html 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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. <button class="btns search_1">查询</button>
  40. <a class="btns" id="exportPublicSentiments">导出</a>
  41. </div>
  42. </div>
  43. <div style="width: 100%;padding: 10px;">
  44. <table id="reportlist" class="tables" data-row-style="rowStyle" data-query-params="queryParams">
  45. </table>
  46. </div>
  47. <div class="footerDataStatistics">统计时段:00:00—23:59:59</div>
  48. </div>
  49. </div>
  50. </div>
  51. <script src="./js/reportCommon.js"></script>
  52. <script>
  53. var exportParams = {}
  54. var tableColumns = [
  55. { field: '日期', title: '日期', align: 'center'},
  56. { field: '0秒内', title: '0秒内', align: 'center'},
  57. { field: '1秒内', title: '1秒内', align: 'center'},
  58. { field: '2秒内', title: '2秒内', align: 'center'},
  59. { field: '3秒内', title: '3秒内', align: 'center'},
  60. { field: '4秒内', title: '4秒内', align: 'center'},
  61. { field: '5秒内', title: '5秒内', align: 'center'},
  62. { field: '6秒内', title: '6秒内', align: 'center'},
  63. { field: '7秒内', title: '7秒内', align: 'center'},
  64. { field: '8秒内', title: '8秒内', align: 'center'},
  65. { field: '9秒内', title: '9秒内', align: 'center'},
  66. { field: '10秒内', title: '10秒内', align: 'center'},
  67. { field: '11秒内', title: '11秒内', align: 'center'},
  68. { field: '12秒内', title: '12秒内', align: 'center'},
  69. { field: '13秒内', title: '13秒内', align: 'center'},
  70. { field: '14秒内', title: '14秒内', align: 'center'},
  71. { field: '15秒内', title: '15秒内', align: 'center'},
  72. ]
  73. $(document).ready(function () {
  74. laydate.render({
  75. elem: '#squeryTime',
  76. theme: '#00a1cb',
  77. type: 'datetime',
  78. });
  79. laydate.render({
  80. elem: '#equeryTime',
  81. theme: '#00a1cb',
  82. type: 'datetime',
  83. });
  84. initTable();
  85. });
  86. //搜索
  87. $(".search_1").click(function () {
  88. initTable();
  89. });
  90. //导出
  91. $('#exportPublicSentiments').click(function () {
  92. exportParams.isdc = 1
  93. exportFileFun('WorkOrderReport/NOEffective',exportParams)
  94. });
  95. //表格
  96. function initTable() {
  97. var dataParams = {
  98. stime: $('#squeryTime').val(),
  99. etime: $('#equeryTime').val(),
  100. token: $.cookie("token")
  101. }
  102. exportParams = dataParams
  103. $.ajax({
  104. url: huayi.config.callcenter_url + 'WorkOrderReport/NOEffective',
  105. type: 'get',
  106. data: dataParams,
  107. dataType: "json",
  108. async: true,
  109. success: function (returnValue) {
  110. //异步获取数据
  111. //debugger;
  112. var resultData = returnValue.data;
  113. $('#reportlist').bootstrapTable('load', resultData);
  114. }
  115. });
  116. $('#reportlist').bootstrapTable('destroy').bootstrapTable({
  117. striped: true,
  118. pagination: false,
  119. columns:tableColumns
  120. });
  121. }
  122. </script>
  123. </body>
  124. </html>