商丘12345 前端

publicSentimentAnalysis.html 4.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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. <script src="../css/laydate/laydate.js"></script>
  12. <style>
  13. table td {
  14. word-break: break-all;
  15. word-wrap: break-word;
  16. }
  17. .Shows {
  18. display: block !important;
  19. }
  20. .complain {
  21. display: none;
  22. }
  23. .toolLeft input {
  24. width: 200px;
  25. }
  26. th {
  27. padding: 5px;
  28. text-align: center;
  29. }
  30. td {
  31. padding: 5px;
  32. }
  33. .Borders {
  34. border: 1px solid #d7d7d7;
  35. }
  36. .daoHang {
  37. margin-bottom: 15px;
  38. }
  39. </style>
  40. </head>
  41. <body class="gray-bg">
  42. <div class="wrapper wrapper-content animated fadeInRight">
  43. <div class="daoHang clearfix">
  44. <div class="dhLeft">
  45. <sapn>
  46. <i class="syIcon"></i>位置:
  47. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  48. <a href="javaScript:;">业务统计</a>&gt;
  49. <a class="nowPosition">舆情分析</a>
  50. </sapn>
  51. </div>
  52. <div class="dhRight">
  53. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  54. </div>
  55. </div>
  56. <div class="Content_box">
  57. <div class="complain Shows">
  58. <div class="toolBar clearfix">
  59. <div class="toolLeft">
  60. 开始时间:
  61. <input class="photo x-color inputs laydate-icon" type="text" id="squeryTime" />
  62. 结束时间:
  63. <input class="photo x-color inputs laydate-icon" type="text" id="equeryTime" />
  64. <button class="btns search_1">查询</button>
  65. <a class="btns" id="exportPublicSentiments">导出</a>
  66. <span class="text-danger" style="padding-left: 10px;">默认显示当前月的信息</span>
  67. </div>
  68. </div>
  69. <!--table1-->
  70. <div style="width: 100%;padding: 10px;">
  71. <table id="publicSATable" class="tables" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
  72. <thead>
  73. <tr>
  74. <th data-field="TypeName" data-align="center">关键词</th>
  75. <th data-field="Count" data-align="center">统计数量</th>
  76. <th data-field="Sort" data-align="center">排名</th>
  77. </tr>
  78. </thead>
  79. </table>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. <script>
  85. $(document).ready(function () {
  86. laydate.skin('blue');
  87. laydate({
  88. elem: '#squeryTime',
  89. event: 'focus'
  90. });
  91. laydate({
  92. elem: '#equeryTime',
  93. event: 'focus'
  94. });
  95. initTable();
  96. });
  97. //表格
  98. function initTable() {
  99. $.ajax({
  100. url: huayi.config.callcenter_url + 'DataAnalysis/GetKeyCountReport',
  101. type: 'get',
  102. data: {
  103. sdate: $('#squeryTime').val(),
  104. edate: $('#equeryTime').val(),
  105. token: $.cookie("token")
  106. },
  107. dataType: "json",
  108. async: true,
  109. success: function (returnValue) {
  110. //异步获取数据
  111. //debugger;
  112. var resultData = returnValue.data.KeyCountReport;
  113. $('#publicSATable').bootstrapTable('load', resultData);
  114. }
  115. });
  116. $('#publicSATable').bootstrapTable('destroy').bootstrapTable({ striped: true });
  117. }
  118. //搜索
  119. $(".search_1").click(function () {
  120. initTable();
  121. });
  122. //导出
  123. $('#exportPublicSentiments').click(function () {
  124. dcexcelDispath(this);
  125. });
  126. function dcexcelDispath(obj) {
  127. var url = huayi.config.callcenter_url + "DataAnalysis/GetKeyCountReport?token=" + $.cookie("token");
  128. url += "&sdate=" + $('#squeryTime').val() + "&edate=" + $('#equeryTime').val() + "&isdc=1";
  129. obj.href = url;
  130. }
  131. </script>
  132. </body>
  133. </html>