12345市长热线标准版-前端

TSCount.html 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>投诉统计</title>
  7. <!--[if lt IE 9]>
  8. <meta http-equiv="refresh" content="0;ie.html" />
  9. <![endif]-->
  10. <script src="../Script/Common/huayi.load.js"></script>
  11. <script src="../Script/Common/huayi.config.js"></script>
  12. <link rel="stylesheet" href="../css/init.css" />
  13. <style>
  14. .clearfix:after {
  15. content: "";
  16. display: block;
  17. clear: both;
  18. }
  19. .kpi-top {
  20. background: #f3f3f4;
  21. height: 60px;
  22. padding: 10px 20px;
  23. }
  24. .topCon {
  25. float: right;
  26. margin-right: 45px;
  27. }
  28. .kpi-content h2 {
  29. font-size: 18px;
  30. margin-bottom: 20px;
  31. }
  32. .topCon input,select {
  33. width: 128px;
  34. padding: 2px 2PX 2PX 10PX;
  35. height: 28px;
  36. border: 1px solid #ebebeb;
  37. color: #1ab394;
  38. outline: none;
  39. vertical-align: middle;
  40. }
  41. .kpi-content {
  42. width: 90%;
  43. margin: 0 auto;
  44. }
  45. .kpi-table table {
  46. width:100%;
  47. }
  48. .kpi-table table tr td {
  49. border: 1px solid #E0EEFE;
  50. }
  51. .kpi-table table thead tr td {
  52. background: #1ab394;
  53. color: #fff;
  54. font-size: 14px;
  55. }
  56. </style>
  57. </head>
  58. <body class="gray-bg" style="background: #fefefe;">
  59. <div class="hwkpi">
  60. <div class="daoHang clearfix">
  61. <div class="dhLeft">
  62. <sapn><i class="syIcon"></i>位置:<a id="ReIndex" href="javaScript:;">首页</a>&gt;<a href="javaScript:;">报表管理</a>&gt;<a href="" class="nowPosition">投诉统计</a></sapn>
  63. </div>
  64. <div class="dhRight"><i class="fa fa-refresh"></i></div>
  65. </div>
  66. <div class="kpi-top clearfix">
  67. <div class="topCon">
  68. 年:
  69. <input type="text" class="laydate-icon" id="year" />
  70. 月份:
  71. <select id="month" >
  72. <option value="01">1</option>
  73. <option value="02">2</option>
  74. <option value="03">3</option>
  75. <option value="04">4</option>
  76. <option value="05">5</option>
  77. <option value="06">6</option>
  78. <option value="07">7</option>
  79. <option value="08">8</option>
  80. <option value="09">9</option>
  81. <option value="10">10</option>
  82. <option value="11">11</option>
  83. <option value="12">12</option>
  84. </select>
  85. <button class="btns sear">搜索</button>
  86. <a class="btns daochu " onclick="dcexcel(this)">导出</a>
  87. </div>
  88. </div>
  89. <div class="kpi-content">
  90. <div class="kpi-table">
  91. <h2 style="text-align: center;">投诉统计分布</h2>
  92. <div class="tjtable"></div>
  93. <div style="color: red;">
  94. 注:默认显示当月1号0:00:00至当日23:59:59的数据
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. <script src="../css/laydate/laydate.js"></script>
  100. <script src="../js/echarts.common.min.js"></script>
  101. <script src="http://cdn.hcharts.cn/highcharts/highcharts.js"></script>
  102. <script>
  103. $(function () {
  104. laydate.skin('molv');
  105. laydate({
  106. elem: '#year',
  107. event: 'focus',
  108. format: 'YYYY'
  109. });
  110. $('#year').val(laydate.now(0, 'YYYY'));
  111. $('#month').val(laydate.now(0, 'YYYYMM').substr(4, 2));
  112. bind();
  113. $(".sear").click(function () {
  114. bind();
  115. })
  116. })
  117. function bind() {
  118. $(".tjtable").empty();
  119. $.getJSON(huayi.config.callcenter_url + 'Business/GetTSCountList', { year: $("#year").val(), month: $("#month").val(), "token": $.cookie("token") }, function (result) {
  120. if (result.state.toLowerCase() == "success") {
  121. $(result.data).appendTo($(".tjtable"));
  122. }
  123. })
  124. }
  125. function dcexcel(obj) {
  126. var url = huayi.config.callcenter_url + "Business/ExportTSCountList?token=" + $.cookie("token");
  127. url += "&year=" + $("#year").val() + "&month=" + $("#month").val() + "";
  128. obj.href = url;
  129. }
  130. </script>
  131. </body>
  132. </html>