|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+<!DOCTYPE html>
|
|
|
2
|
+<html>
|
|
|
3
|
+
|
|
|
4
|
+ <head>
|
|
|
5
|
+ <meta charset="utf-8">
|
|
|
6
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
7
|
+
|
|
|
8
|
+ <title>呼叫明细报表</title>
|
|
|
9
|
+ <script src="../Script/Common/huayi.load.js"></script>
|
|
|
10
|
+ <script src="../Script/Common/huayi.config.js"></script>
|
|
|
11
|
+ <link href="../css/bootstrap.min.css" />
|
|
|
12
|
+ <link href="../css/init.css" rel="stylesheet" />
|
|
|
13
|
+ <link rel="stylesheet" href="../css/boot/bootstrap-table.css" />
|
|
|
14
|
+ <style>
|
|
|
15
|
+ .kpi-top {
|
|
|
16
|
+ background: #f3f3f4;
|
|
|
17
|
+ padding: 10px 20px;
|
|
|
18
|
+ margin: 30px 0;
|
|
|
19
|
+ }
|
|
|
20
|
+
|
|
|
21
|
+ .topCon {
|
|
|
22
|
+ float: left;
|
|
|
23
|
+ margin-left: 70px;
|
|
|
24
|
+ }
|
|
|
25
|
+
|
|
|
26
|
+ .kpi-content h2 {
|
|
|
27
|
+ font-size: 18px;
|
|
|
28
|
+ margin-bottom: 20px;
|
|
|
29
|
+ }
|
|
|
30
|
+
|
|
|
31
|
+ .kpi-content {
|
|
|
32
|
+ width: 90%;
|
|
|
33
|
+ margin: 0 auto;
|
|
|
34
|
+ }
|
|
|
35
|
+
|
|
|
36
|
+ .kpi-table table {
|
|
|
37
|
+ font-size: 12px;
|
|
|
38
|
+ }
|
|
|
39
|
+
|
|
|
40
|
+ .kpi-table table thead tr td {
|
|
|
41
|
+ background: #1ab394;
|
|
|
42
|
+ color: #fff;
|
|
|
43
|
+ font-size: 14px;
|
|
|
44
|
+ }
|
|
|
45
|
+ #table1 thead tr{
|
|
|
46
|
+ background-color: rgb(26,179,148);
|
|
|
47
|
+ color: #fff;
|
|
|
48
|
+ }
|
|
|
49
|
+ </style>
|
|
|
50
|
+ </head>
|
|
|
51
|
+
|
|
|
52
|
+ <body class="gray-bg">
|
|
|
53
|
+ <div class="hwkpi">
|
|
|
54
|
+ <div class="daoHang clearfix">
|
|
|
55
|
+ <div class="dhLeft">
|
|
|
56
|
+ <sapn><i class="syIcon"></i>位置:
|
|
|
57
|
+ <a id="ReIndex" href="javaScript:;">首页</a>>
|
|
|
58
|
+ <a href="javaScript:;">报表分析</a>>
|
|
|
59
|
+ <a href="javaScript:;">业务数据分析</a>>
|
|
|
60
|
+ <a href="" class="nowPosition">回访报表</a>
|
|
|
61
|
+ </sapn>
|
|
|
62
|
+ </div>
|
|
|
63
|
+ </div>
|
|
|
64
|
+ <div class="kpi-top clearfix form-inline">
|
|
|
65
|
+ <div class="topCon">
|
|
|
66
|
+ 查询日期:
|
|
|
67
|
+ <input type="text" class="form-control" id="startTime" style="margin-right: 20px;"/>
|
|
|
68
|
+ 工单类型:
|
|
|
69
|
+ <select class="form-control" id="gdlx">
|
|
|
70
|
+ <option value="0">请选择</option>
|
|
|
71
|
+ <option value="1">咨询</option>
|
|
|
72
|
+ <option value="2">投诉</option>
|
|
|
73
|
+ <option value="3">抽检</option>
|
|
|
74
|
+ <option value="4">建议及其他</option>
|
|
|
75
|
+ </select>
|
|
|
76
|
+ <button class="btns sear">搜索</button>
|
|
|
77
|
+ </div>
|
|
|
78
|
+ </div>
|
|
|
79
|
+
|
|
|
80
|
+ <div class="kpi-content">
|
|
|
81
|
+ <div class="kpi-table">
|
|
|
82
|
+ <table id="table1" data-row-style="rowStyle" data-query-params="queryParams">
|
|
|
83
|
+ <thead>
|
|
|
84
|
+ <tr>
|
|
|
85
|
+ <th data-field="评分维度" data-align="center">评分维度</th>
|
|
|
86
|
+ <th data-field="非常满意(9-10)" data-align="center">非常满意(9-10)</th>
|
|
|
87
|
+ <th data-field="满意(7-8)" data-align="center">满意(7-8)</th>
|
|
|
88
|
+ <th data-field="一般(5-6)" data-align="center">一般(5-6)</th>
|
|
|
89
|
+ <th data-field="不满意(5分以下)" data-align="center">不满意(5分以下)</th>
|
|
|
90
|
+ </tr>
|
|
|
91
|
+ </thead>
|
|
|
92
|
+ </table>
|
|
|
93
|
+ </div>
|
|
|
94
|
+
|
|
|
95
|
+ </div>
|
|
|
96
|
+ </div>
|
|
|
97
|
+
|
|
|
98
|
+ <script src="../js/laydate/laydate.js"></script>
|
|
|
99
|
+
|
|
|
100
|
+ <script>
|
|
|
101
|
+ var token = $.cookie("token"),
|
|
|
102
|
+ endtime='' , //结束时间
|
|
|
103
|
+ stime='' ; //开始时间
|
|
|
104
|
+ var $tableLeft1 = $('#table1');
|
|
|
105
|
+ $(function() {
|
|
|
106
|
+ laydate.render({
|
|
|
107
|
+ elem: '#startTime',
|
|
|
108
|
+ range: '~',
|
|
|
109
|
+ theme: '#1ab394'
|
|
|
110
|
+ });
|
|
|
111
|
+ Ajax();
|
|
|
112
|
+ //搜索事件
|
|
|
113
|
+ $(".sear").click(function() {
|
|
|
114
|
+ $('.thTable tbody').html('');
|
|
|
115
|
+ Ajax();
|
|
|
116
|
+ });
|
|
|
117
|
+ });
|
|
|
118
|
+
|
|
|
119
|
+ function Ajax() {
|
|
|
120
|
+ //销毁表格
|
|
|
121
|
+ $tableLeft1.bootstrapTable('destroy');
|
|
|
122
|
+ //初始化表格,动态从服务器加载数据
|
|
|
123
|
+ $tableLeft1.bootstrapTable({
|
|
|
124
|
+ method: "get", //使用get请求到服务器获取数据
|
|
|
125
|
+ url: huayi.config.callcenter_url + "WOReport/GetVisiteSatisfiedReport",
|
|
|
126
|
+ contentType: 'application/x-www-form-urlencoded',
|
|
|
127
|
+ striped: true, //表格显示条纹
|
|
|
128
|
+ pagination: false, //启动分页
|
|
|
129
|
+ pageSize: 10, //每页显示的记录数
|
|
|
130
|
+ pageNumber: 1, //当前第几页
|
|
|
131
|
+ pageList: [5, 30, 50, 100], //记录数可选列表
|
|
|
132
|
+ search: false, //是否启用查询
|
|
|
133
|
+ showColumns: false, //显示下拉框勾选要显示的列
|
|
|
134
|
+ showRefresh: false, //显示刷新按钮
|
|
|
135
|
+ sidePagination: "server", //表示服务端请求
|
|
|
136
|
+ //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
|
|
|
137
|
+ //设置为limit可以获取limit, offset, search, sort, order
|
|
|
138
|
+ queryParamsType: "undefined",
|
|
|
139
|
+ responseHandler: function(res) {
|
|
|
140
|
+ //格式化数据
|
|
|
141
|
+ return {
|
|
|
142
|
+// "total": res.total, //总页数
|
|
|
143
|
+ "rows": res//数据
|
|
|
144
|
+ };
|
|
|
145
|
+ },
|
|
|
146
|
+ queryParams: function queryParams(params) { //设置查询参数
|
|
|
147
|
+ var param = {
|
|
|
148
|
+// export:0,
|
|
|
149
|
+ stime:$('#startTime').val() && $('#startTime').val().split(' ~ ')[0],
|
|
|
150
|
+ endtime:$('#startTime').val() && $('#startTime').val().split(' ~ ')[1],
|
|
|
151
|
+ type:$('#gdlx').val(),
|
|
|
152
|
+ token: token
|
|
|
153
|
+ };
|
|
|
154
|
+ return param;
|
|
|
155
|
+ },
|
|
|
156
|
+ onLoadSuccess: function() { //加载成功时执行
|
|
|
157
|
+ // layer.msg("加载成功");
|
|
|
158
|
+ },
|
|
|
159
|
+ onLoadError: function() { //加载失败时执行
|
|
|
160
|
+ //layer.msg("加载数据失败", { time: 1500, icon: 2 });
|
|
|
161
|
+ }
|
|
|
162
|
+ });
|
|
|
163
|
+ }
|
|
|
164
|
+ </script>
|
|
|
165
|
+ </body>
|
|
|
166
|
+
|
|
|
167
|
+</html>
|