| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>舆情分析</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <script src="../Script/Common/huayi.load.js"></script>
- <script src="../Script/Common/huayi.config.js"></script>
- <link href="../css/WorkOrder/Search.css" rel="stylesheet">
- <link href="../css/init.css" rel="stylesheet" />
- <script src="../css/laydate/laydate.js"></script>
- <style>
- table td {
- word-break: break-all;
- word-wrap: break-word;
- }
- .Shows {
- display: block !important;
- }
- .complain {
- display: none;
- }
- .toolLeft input {
- width: 200px;
- }
- th {
- padding: 5px;
- text-align: center;
- }
- td {
- padding: 5px;
- }
- .Borders {
- border: 1px solid #d7d7d7;
- }
- .daoHang {
- margin-bottom: 15px;
- }
- </style>
- </head>
- <body class="gray-bg">
- <div class="wrapper wrapper-content animated fadeInRight">
- <div class="daoHang clearfix">
- <div class="dhLeft">
- <sapn>
- <i class="syIcon"></i>位置:
- <a href="javaScript:;" id="ReIndex">首页</a>>
- <a href="javaScript:;">业务统计</a>>
- <a href="" class="nowPosition">舆情分析</a>
- </sapn>
- </div>
- <div class="dhRight">
- <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
- </div>
- </div>
- <div class="Content_box">
- <div class="complain Shows">
- <div class="toolBar clearfix">
- <div class="toolLeft">
- 开始时间:
- <input class="photo x-color inputs laydate-icon" type="text" id="squeryTime" />
- 结束时间:
- <input class="photo x-color inputs laydate-icon" type="text" id="equeryTime" />
- 来源:
- <select class="select_" id="source"></select>
- <button class="btns search_1">查询</button>
- <a class="btns" id="exportPublicSentiments">导出</a>
- <span class="text-danger" style="padding-left: 10px;">默认显示当前月的信息</span>
- </div>
- </div>
- <!--table1-->
- <div style="width: 100%;padding: 10px;">
- <table id="publicSATable" class="tables" data-row-style="rowStyle" data-query-params="queryParams"
- data-pagination="true">
- <thead>
- <tr>
- <th data-field="" data-formatter="serialNumber" data-align="center">序号</th>
- <th data-field="TypeName" data-align="center">关键词</th>
- <th data-field="Count" data-align="center">统计数量</th>
- <th data-field="Sort" data-align="center">排名</th>
- </tr>
- </thead>
- </table>
- </div>
- </div>
- </div>
- </div>
- <script>
- $(document).ready(function () {
- laydate.skin('blue');
- laydate({
- elem: '#squeryTime',
- event: 'focus'
- });
- laydate({
- elem: '#equeryTime',
- event: 'focus'
- });
- //来源
- LY($("#source"));
- initTable();
- });
- //表格
- function initTable() {
- $.ajax({
- url: huayi.config.callcenter_url + 'DataAnalysis/GetKeyCountReport',
- type: 'get',
- data: {
- sdate: $('#squeryTime').val(),
- edate: $('#equeryTime').val(),
- source: $("#source").val(),
- token: $.cookie("token")
- },
- dataType: "json",
- async: true,
- success: function (returnValue) {
- //异步获取数据
- //debugger;
- var resultData = returnValue.data.KeyCountReport;
- $('#publicSATable').bootstrapTable('load', resultData);
- }
- });
- $('#publicSATable').bootstrapTable('destroy').bootstrapTable({
- striped: true
- });
- }
- //序号
- function serialNumber(val, row, index) {
- return index + 1;
- }
- //来源
- function LY(obj) {
- obj.empty();
- obj.append(
- '<option selected="selected" value="">请选择</option>'
- );
- $.getJSON(
- huayi.config.callcenter_url +
- "Dictionary/GetDicValueListById", {
- token: $.cookie("token"),
- id: 1,
- },
- function (data) {
- if (data.state.toLowerCase() == "success") {
- var content = data.data;
- $(content).each(function (i, n) {
- $(
- "<option value='" +
- n.F_ValueId +
- "'>" +
- n.F_Value +
- "</option>"
- ).appendTo(obj);
- });
- }
- }
- );
- }
- //搜索
- $(".search_1").click(function () {
- initTable();
- });
- //导出
- $('#exportPublicSentiments').click(function () {
- dcexcelDispath(this);
- });
- function dcexcelDispath(obj) {
- var source = $("#source").val();
- var url = huayi.config.callcenter_url + "DataAnalysis/GetKeyCountReport?token=" + $.cookie("token");
- url += "&sdate=" + $('#squeryTime').val() + "&edate=" + $('#equeryTime').val() + "&source=" + source + "&isdc=1";
- obj.href = url;
- }
- </script>
- </body>
- </html>
|