瀏覽代碼

新增来源渠道统计报表接口

zhoufan 6 年之前
父節點
當前提交
2fddfa9f8b
共有 2 個文件被更改,包括 191 次插入0 次删除
  1. 135 0
      CityPlatform_Web/TelCall/appealSourceTotal.html
  2. 56 0
      CityPlatform_Web/js/tellCall/appealSourceTotal.js

+ 135 - 0
CityPlatform_Web/TelCall/appealSourceTotal.html

@@ -0,0 +1,135 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+	<head>
5
+		<meta charset="UTF-8">
6
+		<title>诉求来源统计报表</title>
7
+		<script src="../Script/Common/huayi.load.js"></script>
8
+		<script src="../Script/Common/huayi.config.js"></script>
9
+		<link rel="stylesheet" href="../css/init.css" />
10
+		<style>
11
+			#sqzx th {
12
+				/*padding: 5px 8px 5px 0;*/
13
+				text-align: right;
14
+			}
15
+			
16
+			.select {
17
+				width: 150px;
18
+				background-color: #FFF;
19
+				background-image: none;
20
+				border: 1px solid #ccc;
21
+				border-radius: 1px;
22
+				color: inherit;
23
+				padding: 6px 12px;
24
+			}
25
+			
26
+			input {
27
+				background-color: #FFF;
28
+				background-image: none;
29
+				border: 1px solid #ccc;
30
+				border-radius: 1px;
31
+				color: inherit;
32
+				padding: 6px 12px;
33
+			}
34
+			
35
+			#sqzx td {
36
+				padding: 6px 0 5px 10px;
37
+			}
38
+			
39
+			.clearFix:after {
40
+				content: "";
41
+				display: block;
42
+				clear: both;
43
+			}
44
+			
45
+			.box_content {
46
+				border-bottom: 1px solid #ccc;
47
+			}
48
+			
49
+			.tj_content {
50
+				border: 1px solid #e6e6e6;
51
+				border-radius: 5px;
52
+			}
53
+			
54
+			#sqzx .Seach {
55
+				margin-left: 0;
56
+				width: 60px;
57
+				font-size: 13px;
58
+				display: inline-block;
59
+				text-align: center;
60
+			}
61
+			.super{
62
+				display: none;
63
+			}
64
+		</style>
65
+	</head>
66
+
67
+	<body class="gray-bg">
68
+		<div class="wrapper wrapper-content animated fadeInRight">
69
+			<div class="daoHang clearfix">
70
+				<div class="dhLeft">
71
+					<sapn>
72
+						<i class="syIcon"></i>位置:
73
+						<a href="javaScript:;" id="ReIndex">首页</a>&gt;
74
+						<a href="javaScript:;">网点报表</a>&gt;
75
+						<a href="" class="nowPosition">诉求来源统计报表</a>
76
+					</sapn>
77
+				</div>
78
+				<div class="dhRight">
79
+					<a href="" title="刷新"><i class="fa fa-refresh"></i></a>
80
+				</div>
81
+			</div>
82
+			<div style="padding: 10px;" class="tj_content clearFix">
83
+				<div style="padding: 10px;" class="tj_content clearFix">
84
+					<div>
85
+						<span>【搜索信息】</span>
86
+						<div class="box_content">
87
+							<table id="sqzx" style="width: 100%;" border="0" cellspacing="0" cellpadding="0">
88
+								<tr>
89
+									<!--<th>网点:</th>
90
+									<td>
91
+										<select name="" id="dot" class="select_">
92
+
93
+										</select>
94
+									</td>-->
95
+									<th>日期:</th>
96
+									<td>
97
+										<input type="text" id="startTime" class="laydate-icon Min-width" style="height: 32px;" />&nbsp;——&nbsp;<input type="text" id="endTime" class="laydate-icon Min-width" style="height: 32px;" />
98
+									</td>
99
+									<td>
100
+										<botton class="btns Seach">查询</botton>
101
+										<a href="javaScript:;" class="btns export super">导出</a>
102
+									</td>
103
+								</tr>
104
+							</table>
105
+						</div>
106
+					</div>
107
+					<div>
108
+						<div style="width: 100%;padding: 10px;">
109
+							<table id="orderlist" data-row-style="rowStyle" >
110
+								<thead>
111
+                                    <tr>
112
+                                        <th data-align="center" data-field="县区/渠道">县区/渠道</th>
113
+                                        <th data-align="center" data-field="电话">电话</th>
114
+                                        <th data-align="center" data-field="12345信箱">12345信箱</th>
115
+                                        <th data-align="center" data-field="微博">微博</th>
116
+                                        <th data-align="center" data-field="网站">网站</th>
117
+                                        <th data-align="center" data-field="微信">微信</th>
118
+                                        <th data-align="center" data-field="手机APP">手机APP</th>
119
+                                        <th data-align="center" data-field="政务服务网">政务服务网</th>
120
+                                        <th data-align="center" data-field="合计">合计</th>
121
+                                    </tr>
122
+								</thead>
123
+								<tbody class="list">
124
+								</tbody>
125
+							</table>
126
+						</div>
127
+					</div>
128
+				</div>
129
+			</div>
130
+		</div>
131
+		<script src="../css/laydate/laydate.js"></script>
132
+		<script src="../js/tellCall/appealSourceTotal.js"></script>
133
+	</body>
134
+
135
+</html>

+ 56 - 0
CityPlatform_Web/js/tellCall/appealSourceTotal.js

@@ -0,0 +1,56 @@
1
+$(document).ready(function() {
2
+	laydate.skin('blue');
3
+	laydate({
4
+		elem: '#startTime',
5
+		event: 'focus',
6
+	});
7
+	laydate({
8
+		elem: '#endTime',
9
+		event: 'focus',
10
+	});
11
+
12
+	$('.Seach').click(function() {
13
+		initTable();
14
+	})
15
+	var userscode=$.cookie("userCode");
16
+	if (userscode==8000) {
17
+		$(".super").show();
18
+	}
19
+	//导出
20
+	$('.export').click(function() {
21
+		dcexcel(this);
22
+	})
23
+
24
+
25
+    initTable();
26
+})
27
+
28
+function dcexcel(obj) {
29
+    var url = huayi.config.callcenter_url + "CountyBusiness/GetAreaSourceCount?token=" + $.cookie("token");
30
+    url += "&start=" + $("#startTime").val() + "&end=" + $("#endTime").val() + "&isdc=1";
31
+    obj.href = url;
32
+}
33
+
34
+
35
+function initTable() {
36
+    $.ajax({
37
+        type: "get",
38
+        url: huayi.config.callcenter_url + "CountyBusiness/GetAreaSourceCount",
39
+        async: true,
40
+        dataType: 'json',
41
+        data: {
42
+            token: $.cookie("token"),
43
+            branchcode: $('#dot').val(), //网点编号(必选),
44
+            start: $('#startTime').val(), //(1月2周3天4时)
45
+            end: $('#endTime').val()
46
+        },
47
+        success: function (data) {
48
+            if (data.state.toLowerCase() == 'success') {
49
+                $('#orderlist').bootstrapTable('load', data.data);
50
+            }
51
+        }
52
+    });
53
+    $('#orderlist').bootstrapTable('destroy').bootstrapTable({
54
+        striped: true
55
+    });
56
+}