zhangshuangnan преди 8 години
родител
ревизия
57ec1cd6f0

+ 1 - 1
WebChart/Script/Common/huayi.config.js

@@ -10,6 +10,6 @@ huayi.config = {
10 10
     socket_ip: "192.168.4.3",//ip
11 11
     socket_port: "8081",//端口
12 12
     menuworktime: 30000,//菜单工单数量刷新间隔
13
-    indextime: 60000//首页报表刷新间隔
13
+    indextime: 300000//首页报表刷新间隔
14 14
 
15 15
 };

+ 2 - 1
WebChart/Script/Common/huayi.load.js

@@ -32,7 +32,7 @@ document.write(" <link href=\"" + hostPath + "/css/bootstrap.min.css\" rel=\"sty
32 32
 document.write(" <link href=\"" + hostPath + "/css/index.css\" rel=\"stylesheet\" type=\"text/css\" />");
33 33
 //document.write(" <link href=\"" + hostPath + "/css/bootstrap.min14ed.css?v=3.3.6\" rel=\"stylesheet\" type=\"text/css\" />");
34 34
 //document.write(" <link href=\"" + hostPath + "/css/boot/bootstrap-table.css\" rel=\"stylesheet\" type=\"text/css\" />");
35
-//document.write(" <link href=\"" + hostPath + "/css/font-awesome.min93e3.css?v=4.4.0\" rel=\"stylesheet\" type=\"text/css\" />");
35
+document.write(" <link href=\"" + hostPath + "/font/iconfont.css\" rel=\"stylesheet\" type=\"text/css\" />");
36 36
 //document.write(" <link href=\"" + hostPath + "/css/animate.min.css\" rel=\"stylesheet\" type=\"text/css\" />");
37 37
 //document.write(" <link href=\"" + hostPath + "/css/style.min862f.css?v=4.1.0\" rel=\"stylesheet\" type=\"text/css\" />");
38 38
 //
@@ -42,6 +42,7 @@ document.write(" <script language=\"javascript\" type=\"text/javascript\" src=\"
42 42
 //document.write(" <script language=\"javascript\" type=\"text/javascript\" src=\"" + hostPath + "/js/highcharts.js\"></script>");
43 43
 document.write(" <script language=\"javascript\" type=\"text/javascript\" src=\"" + hostPath + "/js/gray.js\"></script>");
44 44
 document.write(" <script language=\"javascript\" type=\"text/javascript\" src=\"" + hostPath + "/js/radialIndicator.js\"></script>");
45
+document.write(" <script language=\"javascript\" type=\"text/javascript\" src=\"" + hostPath + "/js/laydate/laydate.js\"></script>");
45 46
 //document.write(" <script language=\"javascript\" type=\"text/javascript\" src=\"" + hostPath + "/js/bootstrap.min.js?v=3.3.6\"></script>");
46 47
 //document.write(" <script language=\"javascript\" type=\"text/javascript\" src=\"" + hostPath + "/js/bootstrap-table.js\"></script>");
47 48
 //document.write(" <script language=\"javascript\" type=\"text/javascript\" src=\"" + hostPath + "/js/bootstrap-table-zh-CN.js\"></script>");

+ 131 - 44
WebChart/css/index.css

@@ -2,7 +2,7 @@ body {
2 2
 	margin: 0;
3 3
 	padding: 0;
4 4
 	font-size: 16px;
5
-	background-color: #030303;
5
+	background-color: #030917!important;
6 6
 	-webkit-text-size-adjust: none;
7 7
 	overflow-x: hidden;
8 8
 }
@@ -38,6 +38,96 @@ p{
38 38
 a {
39 39
 	text-decoration: none;
40 40
 }
41
+.btns {
42
+    background: #00a1cb;
43
+    color: #fff;
44
+    padding: 5px 10px;
45
+    outline: none;
46
+    font-size: 12px;
47
+    margin:0 15px;
48
+    border: 0;
49
+    border-radius: 3px;
50
+    box-sizing: border-box;
51
+    cursor: pointer;
52
+    vertical-align: middle;
53
+    }
54
+    
55
+    .tool_count{
56
+    		position: relative;
57
+    	}
58
+    	.tooltips{
59
+    		position: absolute;
60
+		    top: -100%;
61
+		      right: -50%;
62
+		    background: rgba(50, 50, 50, 0.7);
63
+		    border-radius: 6px;
64
+		    font-size: 15px;
65
+		    color: #fff;
66
+		    z-index: 999;
67
+		    width: 100%;
68
+		    text-align: left;
69
+		    padding: 5px;
70
+		    display: none;
71
+		    transition: left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1);
72
+    	}
73
+    		.tooltips p{
74
+    			float: left;
75
+			    width: 45%;
76
+			    padding-left: 5%;
77
+    		}
78
+    		.toolsTitle{
79
+    			text-align: center;
80
+    			color: #8fc6ad;
81
+    		}
82
+    	.list{
83
+    		padding-left: 45px;
84
+    	}
85
+    	.list li{
86
+    		float: left;
87
+		    width: 33%;
88
+		    color: #ccc;
89
+		    cursor: pointer;
90
+		        margin-bottom: 5px;
91
+    	}
92
+    	.color0,.color20,.color10,.color30,.color40,.color50,.color60,.color70{
93
+    		color: #61a0a9;
94
+    	}
95
+    	.color1,.color21,.color31,.color41,.color51,.color61,.color71{
96
+    		color: #cb885d;
97
+    	}
98
+    	.color2,.color12,.color22,.color32,.color42,.color52,.color62,.color72{
99
+    		color: #c4352d;
100
+    	}
101
+    	.color3,.color13,.color23,.color33,.color43,.color53,.color63,.color73{
102
+    		color: #314452;
103
+    	}
104
+    	.color4,.color14,.color24,.color34,.color44,.color54,.color64,.color74{
105
+    		color: #a88c1e;
106
+    	}
107
+    	.color5,.color15,.color25,.color35,.color45,.color55,.color65,.color75{
108
+    		color: #2f5675;
109
+    	}
110
+    	.color6,.color16,.color26,.color36,.color46,.color56,.color66,.color76{
111
+    		color: #94c8b1;
112
+    	}
113
+    	.color7,.color17,.color27,.color37,.color47,.color57,.color67,.color77{
114
+    		color: #babc2f;
115
+    	}
116
+    	.color8,.color18,.color28,.color38,.color48,.color58,.color68,.color78{
117
+    		color: #e86617;
118
+    	}
119
+    	.color9,.color19,.color29,.color39,.color49,.color59,.color69,.color79{
120
+    		color: #afe817;
121
+    	}
122
+    	.color10{
123
+    		color: #e8178d;
124
+    	}
125
+    	.color11{
126
+    		color: #0edccc;
127
+    	}
128
+    	.tbr{
129
+    		margin-right: 3px;
130
+    	}
41 131
 /*[ui-view]{
42 132
 	background:#030303 ;
43 133
 }*/
@@ -106,39 +196,11 @@ a {
106 196
 
107 197
  .qunzhong{
108 198
     width: 100%;
109
-    background: #030303;
199
+    background: #030917;
110 200
     margin: 0 auto;
111 201
     padding-bottom: 40px;
112 202
  	
113 203
  }
114
- .huanxing{
115
- 	float: right;
116
- 	width: 40%;
117
- 	color: #fff;
118
- 	text-align: center;
119
- }
120
-  .huanxing ul li{
121
-  	float: left;
122
-  	width: 25%;
123
-  	margin-top: 10px;
124
-  	font-size: 14px;
125
-  	
126
-  }
127
-  .huanxing ul li div{
128
-  	width: 6em;
129
-    height: 6em;
130
-    margin: 0 auto;
131
-    /*background: url(../img/circle_03.png) no-repeat;
132
-    background-size: contain;*/
133
-   border: 10px solid #ff585b;
134
-    -moz-border-radius: 50%; /* Firefox */
135
-  -webkit-border-radius: 50%; /* Safari 和 Chrome */
136
-   border-radius: 50%;/* Opera 10.5+, 以及使用了IE-CSS3的IE浏览器 */
137
-    color: #fff;
138
-    text-align: center;
139
-    line-height: 6em;
140
-   
141
-  }
142 204
     .slqd{
143 205
     	float: left;
144 206
     	width: 100%;
@@ -154,20 +216,44 @@ a {
154 216
 /*接单部门处理情况开始*/
155 217
 .jiedan-left{
156 218
 	float: left;
157
-	width: 60%;
219
+	width: 48%;
220
+	/*margin-left: 1%;*/
221
+	    border: 1px solid #151924;
158 222
 	
159 223
 }
160 224
 .jiedan-right{
161 225
 	float: right;
162
-	width: 40%;
226
+	width: 48%;
227
+	/*margin-right: 1%;*/
228
+	    border: 1px solid #151924;
163 229
 	
164 230
 }
165 231
 .biao-title{
166
-	text-align: center;
167
-	color: #fff;
232
+	text-align: left;
233
+	color: #0961a0;
168 234
 	font-size: 18px;
169
-	margin: 10px 0;
235
+	padding-left: 20px;
170 236
 	font-weight: bold;
237
+	border: 1px solid #1f2b39;
238
+	background: #010917;
239
+    /*background: -moz-linear-gradient(top, red, rgba(0, 0, 255, 0.5));*/
240
+    background: -webkit-gradient(linear, 0 0, 0 bottom, from(#1f2b39), to(#010917));
241
+    height: 35px;
242
+}
243
+.biao-title .biao-title-l{
244
+	float: left;
245
+	line-height: 35px;
246
+}
247
+.biao-title .biao-title-r{
248
+	float: right;
249
+}
250
+.biao-title .biao-title-r input{
251
+	border: 1px solid #151924;
252
+	width: 127px;
253
+    outline: none;
254
+    padding-left: 5px;
255
+    background: #2f4158;
256
+        margin-top: 3px;
171 257
 }
172 258
 .bumen ul.txbox li{
173 259
 	width: 20%;
@@ -184,7 +270,6 @@ a {
184 270
 .tousujb{
185 271
 	width: 95%;
186 272
 	margin: 35px auto 0 auto;
187
-	margin-top: 35px;
188 273
 }
189 274
 
190 275
 .tousujb>div>div{
@@ -193,20 +278,22 @@ a {
193 278
 .tousujb>div>div ul{
194 279
 	margin-top: 30px;
195 280
 }
196
-.tsjb-top .tsjb-tl{
197
-	width: 35%;
281
+.tsjb-top .tsjb-tl,.tsjb-trr,.tsjb-tr{
282
+	width: 32%;
283
+	border: 1px solid #151924;
198 284
 }
199
-.tsjb-top .tsjb-tr{
200
-	width: 65%;
285
+.tsjb-trr,.tsjb-tr{
286
+	margin-left: 1%;
201 287
 }
202 288
 .tsjb-bot .tsjb-bl{
203
-	/*margin: 0 5%;*/
204
-	margin-top: 30px;
289
+    padding-bottom: 20px;
290
+	  
205 291
 }
206 292
 .tsjb-bot>div{
207
-	width: 50%;
293
+	width: 100%;
208 294
 	margin-top: 20px;
209 295
 	box-sizing: border-box;
296
+	 border: 1px solid #151924;
210 297
     /*margin-left: 3%;*/
211 298
 	
212 299
 }
@@ -421,7 +508,7 @@ a {
421 508
 /*话务数量情况结束*/
422 509
 /*中心大数据开始*/
423 510
 			.containers{
424
-				margin-top: 35px;
511
+				margin-bottom: 20px;
425 512
 			}
426 513
 			.z_num {
427 514
 				color: #FFFFFF;

+ 370 - 0
WebChart/font/demo.css

@@ -0,0 +1,370 @@
1
+*{margin: 0;padding: 0;list-style: none;}
2
+/*
3
+KISSY CSS Reset
4
+理念:1. reset 的目的不是清除浏览器的默认样式,这仅是部分工作。清除和重置是紧密不可分的。
5
+2. reset 的目的不是让默认样式在所有浏览器下一致,而是减少默认样式有可能带来的问题。
6
+3. reset 期望提供一套普适通用的基础样式。但没有银弹,推荐根据具体需求,裁剪和修改后再使用。
7
+特色:1. 适应中文;2. 基于最新主流浏览器。
8
+维护:玉伯<lifesinger@gmail.com>, 正淳<ragecarrier@gmail.com>
9
+ */
10
+
11
+/** 清除内外边距 **/
12
+body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, /* structural elements 结构元素 */
13
+dl, dt, dd, ul, ol, li, /* list elements 列表元素 */
14
+pre, /* text formatting elements 文本格式元素 */
15
+form, fieldset, legend, button, input, textarea, /* form elements 表单元素 */
16
+th, td /* table elements 表格元素 */ {
17
+  margin: 0;
18
+  padding: 0;
19
+}
20
+
21
+/** 设置默认字体 **/
22
+body,
23
+button, input, select, textarea /* for ie */ {
24
+  font: 12px/1.5 tahoma, arial, \5b8b\4f53, sans-serif;
25
+}
26
+h1, h2, h3, h4, h5, h6 { font-size: 100%; }
27
+address, cite, dfn, em, var { font-style: normal; } /* 将斜体扶正 */
28
+code, kbd, pre, samp { font-family: courier new, courier, monospace; } /* 统一等宽字体 */
29
+small { font-size: 12px; } /* 小于 12px 的中文很难阅读,让 small 正常化 */
30
+
31
+/** 重置列表元素 **/
32
+ul, ol { list-style: none; }
33
+
34
+/** 重置文本格式元素 **/
35
+a { text-decoration: none; }
36
+a:hover { text-decoration: underline; }
37
+
38
+
39
+/** 重置表单元素 **/
40
+legend { color: #000; } /* for ie6 */
41
+fieldset, img { border: 0; } /* img 搭车:让链接里的 img 无边框 */
42
+button, input, select, textarea { font-size: 100%; } /* 使得表单元素在 ie 下能继承字体大小 */
43
+/* 注:optgroup 无法扶正 */
44
+
45
+/** 重置表格元素 **/
46
+table { border-collapse: collapse; border-spacing: 0; }
47
+
48
+/* 清除浮动 */
49
+.ks-clear:after, .clear:after {
50
+  content: '\20';
51
+  display: block;
52
+  height: 0;
53
+  clear: both;
54
+}
55
+.ks-clear, .clear {
56
+  *zoom: 1;
57
+}
58
+
59
+.main {
60
+  padding: 30px 100px;
61
+width: 960px;
62
+margin: 0 auto;
63
+}
64
+.main h1{font-size:36px; color:#333; text-align:left;margin-bottom:30px; border-bottom: 1px solid #eee;}
65
+
66
+.helps{margin-top:40px;}
67
+.helps pre{
68
+  padding:20px;
69
+  margin:10px 0;
70
+  border:solid 1px #e7e1cd;
71
+  background-color: #fffdef;
72
+  overflow: auto;
73
+}
74
+
75
+.icon_lists{
76
+  width: 100% !important;
77
+
78
+}
79
+
80
+.icon_lists li{
81
+  float:left;
82
+  width: 100px;
83
+  height:180px;
84
+  text-align: center;
85
+  list-style: none !important;
86
+}
87
+.icon_lists .icon{
88
+  font-size: 42px;
89
+  line-height: 100px;
90
+  margin: 10px 0;
91
+  color:#333;
92
+  -webkit-transition: font-size 0.25s ease-out 0s;
93
+  -moz-transition: font-size 0.25s ease-out 0s;
94
+  transition: font-size 0.25s ease-out 0s;
95
+
96
+}
97
+.icon_lists .icon:hover{
98
+  font-size: 100px;
99
+}
100
+
101
+
102
+
103
+.markdown {
104
+  color: #666;
105
+  font-size: 14px;
106
+  line-height: 1.8;
107
+}
108
+
109
+.highlight {
110
+  line-height: 1.5;
111
+}
112
+
113
+.markdown img {
114
+  vertical-align: middle;
115
+  max-width: 100%;
116
+}
117
+
118
+.markdown h1 {
119
+  color: #404040;
120
+  font-weight: 500;
121
+  line-height: 40px;
122
+  margin-bottom: 24px;
123
+}
124
+
125
+.markdown h2,
126
+.markdown h3,
127
+.markdown h4,
128
+.markdown h5,
129
+.markdown h6 {
130
+  color: #404040;
131
+  margin: 1.6em 0 0.6em 0;
132
+  font-weight: 500;
133
+  clear: both;
134
+}
135
+
136
+.markdown h1 {
137
+  font-size: 28px;
138
+}
139
+
140
+.markdown h2 {
141
+  font-size: 22px;
142
+}
143
+
144
+.markdown h3 {
145
+  font-size: 16px;
146
+}
147
+
148
+.markdown h4 {
149
+  font-size: 14px;
150
+}
151
+
152
+.markdown h5 {
153
+  font-size: 12px;
154
+}
155
+
156
+.markdown h6 {
157
+  font-size: 12px;
158
+}
159
+
160
+.markdown hr {
161
+  height: 1px;
162
+  border: 0;
163
+  background: #e9e9e9;
164
+  margin: 16px 0;
165
+  clear: both;
166
+}
167
+
168
+.markdown p,
169
+.markdown pre {
170
+  margin: 1em 0;
171
+}
172
+
173
+.markdown > p,
174
+.markdown > blockquote,
175
+.markdown > .highlight,
176
+.markdown > ol,
177
+.markdown > ul {
178
+  width: 80%;
179
+}
180
+
181
+.markdown ul > li {
182
+  list-style: circle;
183
+}
184
+
185
+.markdown > ul li,
186
+.markdown blockquote ul > li {
187
+  margin-left: 20px;
188
+  padding-left: 4px;
189
+}
190
+
191
+.markdown > ul li p,
192
+.markdown > ol li p {
193
+  margin: 0.6em 0;
194
+}
195
+
196
+.markdown ol > li {
197
+  list-style: decimal;
198
+}
199
+
200
+.markdown > ol li,
201
+.markdown blockquote ol > li {
202
+  margin-left: 20px;
203
+  padding-left: 4px;
204
+}
205
+
206
+.markdown code {
207
+  margin: 0 3px;
208
+  padding: 0 5px;
209
+  background: #eee;
210
+  border-radius: 3px;
211
+}
212
+
213
+.markdown pre {
214
+  border-radius: 6px;
215
+  background: #f7f7f7;
216
+  padding: 20px;
217
+}
218
+
219
+.markdown pre code {
220
+  border: none;
221
+  background: #f7f7f7;
222
+  margin: 0;
223
+}
224
+
225
+.markdown strong,
226
+.markdown b {
227
+  font-weight: 600;
228
+}
229
+
230
+.markdown > table {
231
+  border-collapse: collapse;
232
+  border-spacing: 0px;
233
+  empty-cells: show;
234
+  border: 1px solid #e9e9e9;
235
+  width: 95%;
236
+  margin-bottom: 24px;
237
+}
238
+
239
+.markdown > table th {
240
+  white-space: nowrap;
241
+  color: #333;
242
+  font-weight: 600;
243
+
244
+}
245
+
246
+.markdown > table th,
247
+.markdown > table td {
248
+  border: 1px solid #e9e9e9;
249
+  padding: 8px 16px;
250
+  text-align: left;
251
+}
252
+
253
+.markdown > table th {
254
+  background: #F7F7F7;
255
+}
256
+
257
+.markdown blockquote {
258
+  font-size: 90%;
259
+  color: #999;
260
+  border-left: 4px solid #e9e9e9;
261
+  padding-left: 0.8em;
262
+  margin: 1em 0;
263
+  font-style: italic;
264
+}
265
+
266
+.markdown blockquote p {
267
+  margin: 0;
268
+}
269
+
270
+.markdown .anchor {
271
+  opacity: 0;
272
+  transition: opacity 0.3s ease;
273
+  margin-left: 8px;
274
+}
275
+
276
+.markdown .waiting {
277
+  color: #ccc;
278
+}
279
+
280
+.markdown h1:hover .anchor,
281
+.markdown h2:hover .anchor,
282
+.markdown h3:hover .anchor,
283
+.markdown h4:hover .anchor,
284
+.markdown h5:hover .anchor,
285
+.markdown h6:hover .anchor {
286
+  opacity: 1;
287
+  display: inline-block;
288
+}
289
+
290
+.markdown > br,
291
+.markdown > p > br {
292
+  clear: both;
293
+}
294
+
295
+
296
+.hljs {
297
+  display: block;
298
+  background: white;
299
+  padding: 0.5em;
300
+  color: #333333;
301
+  overflow-x: auto;
302
+}
303
+
304
+.hljs-comment,
305
+.hljs-meta {
306
+  color: #969896;
307
+}
308
+
309
+.hljs-string,
310
+.hljs-variable,
311
+.hljs-template-variable,
312
+.hljs-strong,
313
+.hljs-emphasis,
314
+.hljs-quote {
315
+  color: #df5000;
316
+}
317
+
318
+.hljs-keyword,
319
+.hljs-selector-tag,
320
+.hljs-type {
321
+  color: #a71d5d;
322
+}
323
+
324
+.hljs-literal,
325
+.hljs-symbol,
326
+.hljs-bullet,
327
+.hljs-attribute {
328
+  color: #0086b3;
329
+}
330
+
331
+.hljs-section,
332
+.hljs-name {
333
+  color: #63a35c;
334
+}
335
+
336
+.hljs-tag {
337
+  color: #333333;
338
+}
339
+
340
+.hljs-title,
341
+.hljs-attr,
342
+.hljs-selector-id,
343
+.hljs-selector-class,
344
+.hljs-selector-attr,
345
+.hljs-selector-pseudo {
346
+  color: #795da3;
347
+}
348
+
349
+.hljs-addition {
350
+  color: #55a532;
351
+  background-color: #eaffea;
352
+}
353
+
354
+.hljs-deletion {
355
+  color: #bd2c00;
356
+  background-color: #ffecec;
357
+}
358
+
359
+.hljs-link {
360
+  text-decoration: underline;
361
+}
362
+
363
+pre{
364
+  background: #fff;
365
+}
366
+
367
+
368
+
369
+
370
+

+ 178 - 0
WebChart/font/demo_fontclass.html

@@ -0,0 +1,178 @@
1
+
2
+<!DOCTYPE html>
3
+<html>
4
+<head>
5
+    <meta charset="utf-8"/>
6
+    <title>IconFont</title>
7
+    <link rel="stylesheet" href="demo.css">
8
+    <link rel="stylesheet" href="iconfont.css">
9
+</head>
10
+<body>
11
+    <div class="main markdown">
12
+        <h1>IconFont 图标</h1>
13
+        <ul class="icon_lists clear">
14
+            
15
+                <li>
16
+                <i class="icon iconfont icon-tubiao"></i>
17
+                    <div class="name">图表</div>
18
+                    <div class="fontclass">.icon-tubiao</div>
19
+                </li>
20
+            
21
+                <li>
22
+                <i class="icon iconfont icon-iconfont02"></i>
23
+                    <div class="name">star-10-g</div>
24
+                    <div class="fontclass">.icon-iconfont02</div>
25
+                </li>
26
+            
27
+                <li>
28
+                <i class="icon iconfont icon-tubiao1"></i>
29
+                    <div class="name">图表</div>
30
+                    <div class="fontclass">.icon-tubiao1</div>
31
+                </li>
32
+            
33
+                <li>
34
+                <i class="icon iconfont icon-tubiaoxian"></i>
35
+                    <div class="name">图表_线</div>
36
+                    <div class="fontclass">.icon-tubiaoxian</div>
37
+                </li>
38
+            
39
+                <li>
40
+                <i class="icon iconfont icon-baobiaoguanli"></i>
41
+                    <div class="name">报表管理图标</div>
42
+                    <div class="fontclass">.icon-baobiaoguanli</div>
43
+                </li>
44
+            
45
+                <li>
46
+                <i class="icon iconfont icon-tubiaozhexiantu"></i>
47
+                    <div class="name">图表-折线图</div>
48
+                    <div class="fontclass">.icon-tubiaozhexiantu</div>
49
+                </li>
50
+            
51
+                <li>
52
+                <i class="icon iconfont icon-tubiaozhuzhuangtu"></i>
53
+                    <div class="name">图表-柱状图</div>
54
+                    <div class="fontclass">.icon-tubiaozhuzhuangtu</div>
55
+                </li>
56
+            
57
+                <li>
58
+                <i class="icon iconfont icon-tubiao_zhexiantu"></i>
59
+                    <div class="name">图表_折线图</div>
60
+                    <div class="fontclass">.icon-tubiao_zhexiantu</div>
61
+                </li>
62
+            
63
+                <li>
64
+                <i class="icon iconfont icon-zhuzhuangtutubiao"></i>
65
+                    <div class="name">柱状图 图表</div>
66
+                    <div class="fontclass">.icon-zhuzhuangtutubiao</div>
67
+                </li>
68
+            
69
+                <li>
70
+                <i class="icon iconfont icon-tubiao_keshihuatubiao"></i>
71
+                    <div class="name">图标_可视化图表</div>
72
+                    <div class="fontclass">.icon-tubiao_keshihuatubiao</div>
73
+                </li>
74
+            
75
+                <li>
76
+                <i class="icon iconfont icon-tubiao-zhuzhuangtu"></i>
77
+                    <div class="name">图表-柱状图</div>
78
+                    <div class="fontclass">.icon-tubiao-zhuzhuangtu</div>
79
+                </li>
80
+            
81
+                <li>
82
+                <i class="icon iconfont icon-liebiaotu"></i>
83
+                    <div class="name">列表图</div>
84
+                    <div class="fontclass">.icon-liebiaotu</div>
85
+                </li>
86
+            
87
+                <li>
88
+                <i class="icon iconfont icon-tubiaozhanshi"></i>
89
+                    <div class="name">图表展示</div>
90
+                    <div class="fontclass">.icon-tubiaozhanshi</div>
91
+                </li>
92
+            
93
+                <li>
94
+                <i class="icon iconfont icon-quanbu"></i>
95
+                    <div class="name">全部</div>
96
+                    <div class="fontclass">.icon-quanbu</div>
97
+                </li>
98
+            
99
+                <li>
100
+                <i class="icon iconfont icon-chart2"></i>
101
+                    <div class="name">图表2</div>
102
+                    <div class="fontclass">.icon-chart2</div>
103
+                </li>
104
+            
105
+                <li>
106
+                <i class="icon iconfont icon-tubiao2"></i>
107
+                    <div class="name">图表</div>
108
+                    <div class="fontclass">.icon-tubiao2</div>
109
+                </li>
110
+            
111
+                <li>
112
+                <i class="icon iconfont icon-tabulation"></i>
113
+                    <div class="name">表格图表图标</div>
114
+                    <div class="fontclass">.icon-tabulation</div>
115
+                </li>
116
+            
117
+                <li>
118
+                <i class="icon iconfont icon-zhexiantubiao"></i>
119
+                    <div class="name">折线图表</div>
120
+                    <div class="fontclass">.icon-zhexiantubiao</div>
121
+                </li>
122
+            
123
+                <li>
124
+                <i class="icon iconfont icon-tubiao3"></i>
125
+                    <div class="name">图表</div>
126
+                    <div class="fontclass">.icon-tubiao3</div>
127
+                </li>
128
+            
129
+                <li>
130
+                <i class="icon iconfont icon-meter-diagram"></i>
131
+                    <div class="name">仪表图</div>
132
+                    <div class="fontclass">.icon-meter-diagram</div>
133
+                </li>
134
+            
135
+                <li>
136
+                <i class="icon iconfont icon-tubiao4"></i>
137
+                    <div class="name">图表</div>
138
+                    <div class="fontclass">.icon-tubiao4</div>
139
+                </li>
140
+            
141
+                <li>
142
+                <i class="icon iconfont icon-tubiaoshangshengqushi"></i>
143
+                    <div class="name">图表 上升趋势</div>
144
+                    <div class="fontclass">.icon-tubiaoshangshengqushi</div>
145
+                </li>
146
+            
147
+                <li>
148
+                <i class="icon iconfont icon-tubiaoxiajiangqushi"></i>
149
+                    <div class="name">图表 下降趋势</div>
150
+                    <div class="fontclass">.icon-tubiaoxiajiangqushi</div>
151
+                </li>
152
+            
153
+        </ul>
154
+
155
+        <h2 id="font-class-">font-class引用</h2>
156
+        <hr>
157
+
158
+        <p>font-class是unicode使用方式的一种变种,主要是解决unicode书写不直观,语意不明确的问题。</p>
159
+        <p>与unicode使用方式相比,具有如下特点:</p>
160
+        <ul>
161
+        <li>兼容性良好,支持ie8+,及所有现代浏览器。</li>
162
+        <li>相比于unicode语意明确,书写更直观。可以很容易分辨这个icon是什么。</li>
163
+        <li>因为使用class来定义图标,所以当要替换图标时,只需要修改class里面的unicode引用。</li>
164
+        <li>不过因为本质上还是使用的字体,所以多色图标还是不支持的。</li>
165
+        </ul>
166
+        <p>使用步骤如下:</p>
167
+        <h3 id="-fontclass-">第一步:引入项目下面生成的fontclass代码:</h3>
168
+
169
+
170
+        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;link rel="stylesheet" type="text/css" href="./iconfont.css"&gt;</span></code></pre>
171
+        <h3 id="-">第二步:挑选相应图标并获取类名,应用于页面:</h3>
172
+        <pre><code class="lang-css hljs">&lt;<span class="hljs-selector-tag">i</span> <span class="hljs-selector-tag">class</span>="<span class="hljs-selector-tag">iconfont</span> <span class="hljs-selector-tag">icon-xxx</span>"&gt;&lt;/<span class="hljs-selector-tag">i</span>&gt;</code></pre>
173
+        <blockquote>
174
+        <p>"iconfont"是你项目下的font-family。可以通过编辑项目查看,默认是"iconfont"。</p>
175
+        </blockquote>
176
+    </div>
177
+</body>
178
+</html>

+ 247 - 0
WebChart/font/demo_symbol.html

@@ -0,0 +1,247 @@
1
+
2
+<!DOCTYPE html>
3
+<html>
4
+<head>
5
+    <meta charset="utf-8"/>
6
+    <title>IconFont</title>
7
+    <link rel="stylesheet" href="demo.css">
8
+    <script src="iconfont.js"></script>
9
+
10
+    <style type="text/css">
11
+        .icon {
12
+          /* 通过设置 font-size 来改变图标大小 */
13
+          width: 1em; height: 1em;
14
+          /* 图标和文字相邻时,垂直对齐 */
15
+          vertical-align: -0.15em;
16
+          /* 通过设置 color 来改变 SVG 的颜色/fill */
17
+          fill: currentColor;
18
+          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
19
+             normalize.css 中也包含这行 */
20
+          overflow: hidden;
21
+        }
22
+
23
+    </style>
24
+</head>
25
+<body>
26
+    <div class="main markdown">
27
+        <h1>IconFont 图标</h1>
28
+        <ul class="icon_lists clear">
29
+            
30
+                <li>
31
+                    <svg class="icon" aria-hidden="true">
32
+                        <use xlink:href="#icon-tubiao"></use>
33
+                    </svg>
34
+                    <div class="name">图表</div>
35
+                    <div class="fontclass">#icon-tubiao</div>
36
+                </li>
37
+            
38
+                <li>
39
+                    <svg class="icon" aria-hidden="true">
40
+                        <use xlink:href="#icon-iconfont02"></use>
41
+                    </svg>
42
+                    <div class="name">star-10-g</div>
43
+                    <div class="fontclass">#icon-iconfont02</div>
44
+                </li>
45
+            
46
+                <li>
47
+                    <svg class="icon" aria-hidden="true">
48
+                        <use xlink:href="#icon-tubiao1"></use>
49
+                    </svg>
50
+                    <div class="name">图表</div>
51
+                    <div class="fontclass">#icon-tubiao1</div>
52
+                </li>
53
+            
54
+                <li>
55
+                    <svg class="icon" aria-hidden="true">
56
+                        <use xlink:href="#icon-tubiaoxian"></use>
57
+                    </svg>
58
+                    <div class="name">图表_线</div>
59
+                    <div class="fontclass">#icon-tubiaoxian</div>
60
+                </li>
61
+            
62
+                <li>
63
+                    <svg class="icon" aria-hidden="true">
64
+                        <use xlink:href="#icon-baobiaoguanli"></use>
65
+                    </svg>
66
+                    <div class="name">报表管理图标</div>
67
+                    <div class="fontclass">#icon-baobiaoguanli</div>
68
+                </li>
69
+            
70
+                <li>
71
+                    <svg class="icon" aria-hidden="true">
72
+                        <use xlink:href="#icon-tubiaozhexiantu"></use>
73
+                    </svg>
74
+                    <div class="name">图表-折线图</div>
75
+                    <div class="fontclass">#icon-tubiaozhexiantu</div>
76
+                </li>
77
+            
78
+                <li>
79
+                    <svg class="icon" aria-hidden="true">
80
+                        <use xlink:href="#icon-tubiaozhuzhuangtu"></use>
81
+                    </svg>
82
+                    <div class="name">图表-柱状图</div>
83
+                    <div class="fontclass">#icon-tubiaozhuzhuangtu</div>
84
+                </li>
85
+            
86
+                <li>
87
+                    <svg class="icon" aria-hidden="true">
88
+                        <use xlink:href="#icon-tubiao_zhexiantu"></use>
89
+                    </svg>
90
+                    <div class="name">图表_折线图</div>
91
+                    <div class="fontclass">#icon-tubiao_zhexiantu</div>
92
+                </li>
93
+            
94
+                <li>
95
+                    <svg class="icon" aria-hidden="true">
96
+                        <use xlink:href="#icon-zhuzhuangtutubiao"></use>
97
+                    </svg>
98
+                    <div class="name">柱状图 图表</div>
99
+                    <div class="fontclass">#icon-zhuzhuangtutubiao</div>
100
+                </li>
101
+            
102
+                <li>
103
+                    <svg class="icon" aria-hidden="true">
104
+                        <use xlink:href="#icon-tubiao_keshihuatubiao"></use>
105
+                    </svg>
106
+                    <div class="name">图标_可视化图表</div>
107
+                    <div class="fontclass">#icon-tubiao_keshihuatubiao</div>
108
+                </li>
109
+            
110
+                <li>
111
+                    <svg class="icon" aria-hidden="true">
112
+                        <use xlink:href="#icon-tubiao-zhuzhuangtu"></use>
113
+                    </svg>
114
+                    <div class="name">图表-柱状图</div>
115
+                    <div class="fontclass">#icon-tubiao-zhuzhuangtu</div>
116
+                </li>
117
+            
118
+                <li>
119
+                    <svg class="icon" aria-hidden="true">
120
+                        <use xlink:href="#icon-liebiaotu"></use>
121
+                    </svg>
122
+                    <div class="name">列表图</div>
123
+                    <div class="fontclass">#icon-liebiaotu</div>
124
+                </li>
125
+            
126
+                <li>
127
+                    <svg class="icon" aria-hidden="true">
128
+                        <use xlink:href="#icon-tubiaozhanshi"></use>
129
+                    </svg>
130
+                    <div class="name">图表展示</div>
131
+                    <div class="fontclass">#icon-tubiaozhanshi</div>
132
+                </li>
133
+            
134
+                <li>
135
+                    <svg class="icon" aria-hidden="true">
136
+                        <use xlink:href="#icon-quanbu"></use>
137
+                    </svg>
138
+                    <div class="name">全部</div>
139
+                    <div class="fontclass">#icon-quanbu</div>
140
+                </li>
141
+            
142
+                <li>
143
+                    <svg class="icon" aria-hidden="true">
144
+                        <use xlink:href="#icon-chart2"></use>
145
+                    </svg>
146
+                    <div class="name">图表2</div>
147
+                    <div class="fontclass">#icon-chart2</div>
148
+                </li>
149
+            
150
+                <li>
151
+                    <svg class="icon" aria-hidden="true">
152
+                        <use xlink:href="#icon-tubiao2"></use>
153
+                    </svg>
154
+                    <div class="name">图表</div>
155
+                    <div class="fontclass">#icon-tubiao2</div>
156
+                </li>
157
+            
158
+                <li>
159
+                    <svg class="icon" aria-hidden="true">
160
+                        <use xlink:href="#icon-tabulation"></use>
161
+                    </svg>
162
+                    <div class="name">表格图表图标</div>
163
+                    <div class="fontclass">#icon-tabulation</div>
164
+                </li>
165
+            
166
+                <li>
167
+                    <svg class="icon" aria-hidden="true">
168
+                        <use xlink:href="#icon-zhexiantubiao"></use>
169
+                    </svg>
170
+                    <div class="name">折线图表</div>
171
+                    <div class="fontclass">#icon-zhexiantubiao</div>
172
+                </li>
173
+            
174
+                <li>
175
+                    <svg class="icon" aria-hidden="true">
176
+                        <use xlink:href="#icon-tubiao3"></use>
177
+                    </svg>
178
+                    <div class="name">图表</div>
179
+                    <div class="fontclass">#icon-tubiao3</div>
180
+                </li>
181
+            
182
+                <li>
183
+                    <svg class="icon" aria-hidden="true">
184
+                        <use xlink:href="#icon-meter-diagram"></use>
185
+                    </svg>
186
+                    <div class="name">仪表图</div>
187
+                    <div class="fontclass">#icon-meter-diagram</div>
188
+                </li>
189
+            
190
+                <li>
191
+                    <svg class="icon" aria-hidden="true">
192
+                        <use xlink:href="#icon-tubiao4"></use>
193
+                    </svg>
194
+                    <div class="name">图表</div>
195
+                    <div class="fontclass">#icon-tubiao4</div>
196
+                </li>
197
+            
198
+                <li>
199
+                    <svg class="icon" aria-hidden="true">
200
+                        <use xlink:href="#icon-tubiaoshangshengqushi"></use>
201
+                    </svg>
202
+                    <div class="name">图表 上升趋势</div>
203
+                    <div class="fontclass">#icon-tubiaoshangshengqushi</div>
204
+                </li>
205
+            
206
+                <li>
207
+                    <svg class="icon" aria-hidden="true">
208
+                        <use xlink:href="#icon-tubiaoxiajiangqushi"></use>
209
+                    </svg>
210
+                    <div class="name">图表 下降趋势</div>
211
+                    <div class="fontclass">#icon-tubiaoxiajiangqushi</div>
212
+                </li>
213
+            
214
+        </ul>
215
+
216
+
217
+        <h2 id="symbol-">symbol引用</h2>
218
+        <hr>
219
+
220
+        <p>这是一种全新的使用方式,应该说这才是未来的主流,也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
221
+        这种用法其实是做了一个svg的集合,与另外两种相比具有如下特点:</p>
222
+        <ul>
223
+          <li>支持多色图标了,不再受单色限制。</li>
224
+          <li>通过一些技巧,支持像字体那样,通过<code>font-size</code>,<code>color</code>来调整样式。</li>
225
+          <li>兼容性较差,支持 ie9+,及现代浏览器。</li>
226
+          <li>浏览器渲染svg的性能一般,还不如png。</li>
227
+        </ul>
228
+        <p>使用步骤如下:</p>
229
+        <h3 id="-symbol-">第一步:引入项目下面生成的symbol代码:</h3>
230
+        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
231
+        <h3 id="-css-">第二步:加入通用css代码(引入一次就行):</h3>
232
+        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
233
+.icon {
234
+   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
235
+   vertical-align: <span class="hljs-number">-0.15</span>em;
236
+   fill: currentColor;
237
+   overflow: hidden;
238
+}
239
+&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
240
+        <h3 id="-">第三步:挑选相应图标并获取类名,应用于页面:</h3>
241
+        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
242
+  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#icon-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
243
+</span>&lt;<span class="hljs-regexp">/svg&gt;
244
+        </span></code></pre>
245
+    </div>
246
+</body>
247
+</html>

+ 216 - 0
WebChart/font/demo_unicode.html

@@ -0,0 +1,216 @@
1
+
2
+<!DOCTYPE html>
3
+<html>
4
+<head>
5
+    <meta charset="utf-8"/>
6
+    <title>IconFont</title>
7
+    <link rel="stylesheet" href="demo.css">
8
+
9
+    <style type="text/css">
10
+
11
+        @font-face {font-family: "iconfont";
12
+          src: url('iconfont.eot'); /* IE9*/
13
+          src: url('iconfont.eot#iefix') format('embedded-opentype'), /* IE6-IE8 */
14
+          url('iconfont.woff') format('woff'), /* chrome, firefox */
15
+          url('iconfont.ttf') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
16
+          url('iconfont.svg#iconfont') format('svg'); /* iOS 4.1- */
17
+        }
18
+
19
+        .iconfont {
20
+          font-family:"iconfont" !important;
21
+          font-size:16px;
22
+          font-style:normal;
23
+          -webkit-font-smoothing: antialiased;
24
+          -webkit-text-stroke-width: 0.2px;
25
+          -moz-osx-font-smoothing: grayscale;
26
+        }
27
+
28
+    </style>
29
+</head>
30
+<body>
31
+    <div class="main markdown">
32
+        <h1>IconFont 图标</h1>
33
+        <ul class="icon_lists clear">
34
+            
35
+                <li>
36
+                <i class="icon iconfont">&#xe62a;</i>
37
+                    <div class="name">图表</div>
38
+                    <div class="code">&amp;#xe62a;</div>
39
+                </li>
40
+            
41
+                <li>
42
+                <i class="icon iconfont">&#xe601;</i>
43
+                    <div class="name">star-10-g</div>
44
+                    <div class="code">&amp;#xe601;</div>
45
+                </li>
46
+            
47
+                <li>
48
+                <i class="icon iconfont">&#xe62d;</i>
49
+                    <div class="name">图表</div>
50
+                    <div class="code">&amp;#xe62d;</div>
51
+                </li>
52
+            
53
+                <li>
54
+                <i class="icon iconfont">&#xe690;</i>
55
+                    <div class="name">图表_线</div>
56
+                    <div class="code">&amp;#xe690;</div>
57
+                </li>
58
+            
59
+                <li>
60
+                <i class="icon iconfont">&#xe612;</i>
61
+                    <div class="name">报表管理图标</div>
62
+                    <div class="code">&amp;#xe612;</div>
63
+                </li>
64
+            
65
+                <li>
66
+                <i class="icon iconfont">&#xe645;</i>
67
+                    <div class="name">图表-折线图</div>
68
+                    <div class="code">&amp;#xe645;</div>
69
+                </li>
70
+            
71
+                <li>
72
+                <i class="icon iconfont">&#xe646;</i>
73
+                    <div class="name">图表-柱状图</div>
74
+                    <div class="code">&amp;#xe646;</div>
75
+                </li>
76
+            
77
+                <li>
78
+                <i class="icon iconfont">&#xe72d;</i>
79
+                    <div class="name">图表_折线图</div>
80
+                    <div class="code">&amp;#xe72d;</div>
81
+                </li>
82
+            
83
+                <li>
84
+                <i class="icon iconfont">&#xe611;</i>
85
+                    <div class="name">柱状图 图表</div>
86
+                    <div class="code">&amp;#xe611;</div>
87
+                </li>
88
+            
89
+                <li>
90
+                <i class="icon iconfont">&#xe633;</i>
91
+                    <div class="name">图标_可视化图表</div>
92
+                    <div class="code">&amp;#xe633;</div>
93
+                </li>
94
+            
95
+                <li>
96
+                <i class="icon iconfont">&#xe6db;</i>
97
+                    <div class="name">图表-柱状图</div>
98
+                    <div class="code">&amp;#xe6db;</div>
99
+                </li>
100
+            
101
+                <li>
102
+                <i class="icon iconfont">&#xe6b5;</i>
103
+                    <div class="name">列表图</div>
104
+                    <div class="code">&amp;#xe6b5;</div>
105
+                </li>
106
+            
107
+                <li>
108
+                <i class="icon iconfont">&#xe63d;</i>
109
+                    <div class="name">图表展示</div>
110
+                    <div class="code">&amp;#xe63d;</div>
111
+                </li>
112
+            
113
+                <li>
114
+                <i class="icon iconfont">&#xe620;</i>
115
+                    <div class="name">全部</div>
116
+                    <div class="code">&amp;#xe620;</div>
117
+                </li>
118
+            
119
+                <li>
120
+                <i class="icon iconfont">&#xe659;</i>
121
+                    <div class="name">图表2</div>
122
+                    <div class="code">&amp;#xe659;</div>
123
+                </li>
124
+            
125
+                <li>
126
+                <i class="icon iconfont">&#xe64a;</i>
127
+                    <div class="name">图表</div>
128
+                    <div class="code">&amp;#xe64a;</div>
129
+                </li>
130
+            
131
+                <li>
132
+                <i class="icon iconfont">&#xe61a;</i>
133
+                    <div class="name">表格图表图标</div>
134
+                    <div class="code">&amp;#xe61a;</div>
135
+                </li>
136
+            
137
+                <li>
138
+                <i class="icon iconfont">&#xe65d;</i>
139
+                    <div class="name">折线图表</div>
140
+                    <div class="code">&amp;#xe65d;</div>
141
+                </li>
142
+            
143
+                <li>
144
+                <i class="icon iconfont">&#xe62f;</i>
145
+                    <div class="name">图表</div>
146
+                    <div class="code">&amp;#xe62f;</div>
147
+                </li>
148
+            
149
+                <li>
150
+                <i class="icon iconfont">&#xe660;</i>
151
+                    <div class="name">仪表图</div>
152
+                    <div class="code">&amp;#xe660;</div>
153
+                </li>
154
+            
155
+                <li>
156
+                <i class="icon iconfont">&#xe928;</i>
157
+                    <div class="name">图表</div>
158
+                    <div class="code">&amp;#xe928;</div>
159
+                </li>
160
+            
161
+                <li>
162
+                <i class="icon iconfont">&#xe790;</i>
163
+                    <div class="name">图表 上升趋势</div>
164
+                    <div class="code">&amp;#xe790;</div>
165
+                </li>
166
+            
167
+                <li>
168
+                <i class="icon iconfont">&#xe791;</i>
169
+                    <div class="name">图表 下降趋势</div>
170
+                    <div class="code">&amp;#xe791;</div>
171
+                </li>
172
+            
173
+        </ul>
174
+        <h2 id="unicode-">unicode引用</h2>
175
+        <hr>
176
+
177
+        <p>unicode是字体在网页端最原始的应用方式,特点是:</p>
178
+        <ul>
179
+        <li>兼容性最好,支持ie6+,及所有现代浏览器。</li>
180
+        <li>支持按字体的方式去动态调整图标大小,颜色等等。</li>
181
+        <li>但是因为是字体,所以不支持多色。只能使用平台里单色的图标,就算项目里有多色图标也会自动去色。</li>
182
+        </ul>
183
+        <blockquote>
184
+        <p>注意:新版iconfont支持多色图标,这些多色图标在unicode模式下将不能使用,如果有需求建议使用symbol的引用方式</p>
185
+        </blockquote>
186
+        <p>unicode使用步骤如下:</p>
187
+        <h3 id="-font-face">第一步:拷贝项目下面生成的font-face</h3>
188
+        <pre><code class="lang-js hljs javascript">@font-face {
189
+  font-family: <span class="hljs-string">'iconfont'</span>;
190
+  src: url(<span class="hljs-string">'iconfont.eot'</span>);
191
+  src: url(<span class="hljs-string">'iconfont.eot?#iefix'</span>) format(<span class="hljs-string">'embedded-opentype'</span>),
192
+  url(<span class="hljs-string">'iconfont.woff'</span>) format(<span class="hljs-string">'woff'</span>),
193
+  url(<span class="hljs-string">'iconfont.ttf'</span>) format(<span class="hljs-string">'truetype'</span>),
194
+  url(<span class="hljs-string">'iconfont.svg#iconfont'</span>) format(<span class="hljs-string">'svg'</span>);
195
+}
196
+</code></pre>
197
+        <h3 id="-iconfont-">第二步:定义使用iconfont的样式</h3>
198
+        <pre><code class="lang-js hljs javascript">.iconfont{
199
+  font-family:<span class="hljs-string">"iconfont"</span> !important;
200
+  font-size:<span class="hljs-number">16</span>px;font-style:normal;
201
+  -webkit-font-smoothing: antialiased;
202
+  -webkit-text-stroke-width: <span class="hljs-number">0.2</span>px;
203
+  -moz-osx-font-smoothing: grayscale;
204
+}
205
+</code></pre>
206
+        <h3 id="-">第三步:挑选相应图标并获取字体编码,应用于页面</h3>
207
+        <pre><code class="lang-js hljs javascript">&lt;i <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"iconfont"</span>&gt;&amp;#x33;<span class="xml"><span class="hljs-tag">&lt;/<span class="hljs-name">i</span>&gt;</span></span></code></pre>
208
+
209
+        <blockquote>
210
+        <p>"iconfont"是你项目下的font-family。可以通过编辑项目查看,默认是"iconfont"。</p>
211
+        </blockquote>
212
+    </div>
213
+
214
+
215
+</body>
216
+</html>

Файловите разлики са ограничени, защото са твърде много
+ 63 - 0
WebChart/font/iconfont.css


BIN
WebChart/font/iconfont.eot


Файловите разлики са ограничени, защото са твърде много
+ 1 - 0
WebChart/font/iconfont.js


Файловите разлики са ограничени, защото са твърде много
+ 102 - 0
WebChart/font/iconfont.svg


BIN
WebChart/font/iconfont.ttf


BIN
WebChart/font/iconfont.woff


+ 44 - 8
WebChart/huaWuLiang.html

@@ -7,6 +7,17 @@
7 7
     <script src="Script/Common/huayi.config.js"></script>
8 8
     <link rel="stylesheet" href="css/bootstrap.min.css" />
9 9
     <link rel="stylesheet" href="css/index.css"/>
10
+    <style>
11
+    	.huawu{
12
+    		width: 97%;
13
+   			 margin: 0 auto;
14
+    	}
15
+    	.tu_box{
16
+    		width:48%;
17
+    		float: left;
18
+    		border: 1px solid #151924;
19
+    	}
20
+    </style>
10 21
 </head>
11 22
 <body>
12 23
 <div class="navcon ">
@@ -25,12 +36,28 @@
25 36
 
26 37
 <div class="huawu">
27 38
 	<div class="containers clearfix">
28
-		<div style="width:50%; float: left;">
29
-			<div class="biao-title">话务量实时数据统计</div>
39
+		<div class="tu_box">
40
+			<div class="biao-title">
41
+					<div class="biao-title-l">
42
+				话务量实时数据统计
43
+			</div>
44
+			<div class="biao-title-r">
45
+				<input type="text" id="time1" />
46
+				<button class="btns part1Btn">搜索</button>
47
+			</div>
48
+			</div>
30 49
 			<div id="main1" style="width: 100%;height: 400px;"></div>
31 50
 		</div>
32
-		<div style="width: 50%; float: right;">
33
-				<div class="biao-title"  style="width: 100%;">当日话务量总体统计</div>
51
+		<div class="tu_box" style="margin-left: 2%;">
52
+				<div class="biao-title">
53
+						<div class="biao-title-l">
54
+				当日话务量总体统计
55
+			</div>
56
+			<div class="biao-title-r">
57
+				<input type="text" id="time2" />
58
+				<button class="btns part2Btn">搜索</button>
59
+			</div>
60
+				</div>
34 61
 					<div id="phone_num" style="width: 100%;height: 400px;"></div>
35 62
 			<!--<div class="Map">
36 63
 				<div class="biao-title">
@@ -109,15 +136,24 @@
109 136
 		</div>
110 137
 	</div>
111 138
 	<div class="row2 clearfix">
112
-		<div  style="width: 50%; float: left;">
113
-		<div class="biao-title"  style="width: 100%;">坐席闲忙比例</div>
139
+		<div class="tu_box">
140
+		<div class="biao-title">
141
+			
142
+			<div class="biao-title-l">
143
+				坐席闲忙比例
144
+			</div>
145
+			<div class="biao-title-r">
146
+				<input type="text" id="time3" />至<input type="text" id="time4" />
147
+				<button class="btns part3Btn">搜索</button>
148
+			</div>
149
+		</div>
114 150
 			<div id="main" style="width: 100%; height: 400px;"></div>
115 151
 		</div>
116
-		<div class='hwzt' style="width: 50%; float: right;">
152
+		<!--<div class='hwzt' style="width: 50%; float: right;">-->
117 153
 				<!--<span class="z_num">话务量总体统计</span>-->
118 154
 				<!--<div class="biao-title"  style="width: 100%;">话务量总体统计</div>
119 155
 					<div id="phone_num" style="width: 100%;height: 400px;"></div>-->
120
-		</div>
156
+		<!--</div>-->
121 157
 	
122 158
 	</div>
123 159
 </div>

+ 168 - 10
WebChart/index.html

@@ -7,6 +7,97 @@
7 7
     <script src="Script/Common/huayi.config.js"></script>
8 8
     <link rel="stylesheet" href="css/bootstrap.min.css" />
9 9
     <link rel="stylesheet" href="css/index.css"/>
10
+    <style>
11
+    	.qunzhong>div{
12
+    	    width: 32%;
13
+		    float: left;
14
+		    margin-left: 1%;
15
+		    border: 1px solid #151924;
16
+    	}
17
+    	.table1 thead tr td{
18
+    		background: #16385e;
19
+   			color: #aba5a5;
20
+    	}
21
+    	.table1 tbody tr td{
22
+    		border: 1px solid #151924;
23
+    		color: #aba5a5;
24
+    	}
25
+    	.tool_count{
26
+    		position: relative;
27
+    	}
28
+    	.tooltips{
29
+    		position: absolute;
30
+		    top: -100%;
31
+		      right: -50%;
32
+		    background: rgba(50, 50, 50, 0.7);
33
+		    border-radius: 6px;
34
+		    font-size: 15px;
35
+		    color: #fff;
36
+		    z-index: 999;
37
+		    width: 100%;
38
+		    text-align: left;
39
+		    padding: 5px;
40
+		    display: none;
41
+		    transition: left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1);
42
+    	}
43
+    		.tooltips p{
44
+    			float: left;
45
+    			width: 50%;
46
+    			text-align: center;
47
+    		}
48
+    	.list{
49
+    		padding-left: 45px;
50
+    	}
51
+    	.list li{
52
+    		float: left;
53
+		    width: 33%;
54
+		    color: #ccc;
55
+		    cursor: pointer;
56
+		        margin-bottom: 5px;
57
+    	}
58
+    	/*.list li:hover .tooltips{
59
+    		display: block;
60
+    	}*/
61
+    	.color0{
62
+    		color: #61a0a9;
63
+    	}
64
+    	.color1{
65
+    		color: #cb885d;
66
+    	}
67
+    	.color2{
68
+    		color: #c4352d;
69
+    	}
70
+    	.color3{
71
+    		color: #314452;
72
+    	}
73
+    	.color4{
74
+    		color: #a88c1e;
75
+    	}
76
+    	.color5{
77
+    		color: #2f5675;
78
+    	}
79
+    	.color6{
80
+    		color: #94c8b1;
81
+    	}
82
+    	.color7{
83
+    		color: #babc2f;
84
+    	}
85
+    	.color8{
86
+    		color: #e86617;
87
+    	}
88
+    	.color9{
89
+    		color: #afe817;
90
+    	}
91
+    	.color10{
92
+    		color: #e8178d;
93
+    	}
94
+    	.color11{
95
+    		color: #0edccc;
96
+    	}
97
+    	.tbr{
98
+    		margin-right: 3px;
99
+    	}
100
+    </style>
10 101
 </head>
11 102
 <body>
12 103
 <div class="navcon ">
@@ -23,23 +114,90 @@
23 114
    </div>
24 115
 </div>
25 116
 <div class="qunzhong clearfix">
26
-	<div style="width: 50%;float: left;">
27
-		<div class="biao-title">受理群众区域统计</div>
117
+	<div >
118
+		<div class="biao-title clearfix">
119
+			
120
+			<div class="biao-title-l">
121
+				受理群众区域统计
122
+			</div>
123
+			<div class="biao-title-r">
124
+				<input type="text" id="time1" />
125
+				<button class="btns part1Btn">搜索</button>
126
+			</div>
127
+		</div>
128
+		<div class="clearfix">
28 129
 		<div id="container1" style="width: 100%; height:500px;float: left;"></div>
130
+		</div>
131
+	<ul class="list list_one clearfix">
132
+		</ul>
29 133
 	</div>
30 134
 	
31
-	<div class="huanxing">
32
-		<div class="biao-title">受理区域统计</div>
33
-		<div id="shouLiArea" style="width: 100%; height:500px;">
34
-			
135
+	<div class="part2">
136
+		<div class="biao-title">
137
+			<div class="biao-title-l">
138
+				受理区域统计
139
+			</div>
140
+			<div class="biao-title-r">
141
+				<input type="text" id="time2" />至<input type="text" id="time3" />
142
+				<button class="btns part2Btn">搜索</button>
143
+			</div>
35 144
 		</div>
145
+		<div id="shouLiArea" style="width: 100%; height:500px;"></div>
146
+		<ul class="list list_two clearfix"></ul>
36 147
 	</div>
37 148
 	<div class="slqd">
38
-		<div class="biao-title" style="margin-top: 29px;">受理渠道24小时实时统计</div>
39
-		<div id="qd_box" style="width: 100%;height: 400px;"></div>
40
-		<ul class="txbox">
41
-		</ul>
149
+		<div class="biao-title">
150
+			<div class="biao-title-l">
151
+				受理渠道24小时实时统计
152
+			</div>
153
+			<div class="biao-title-r">
154
+				<input type="text" id="time4" />至<input type="text" id="time5" />
155
+				<button class="btns part3Btn">搜索</button>
156
+			</div>
157
+		</div>
158
+		<div id="qd_box" style="width: 100%;height: 500px;"></div>
159
+		<ul class="list list_three clearfix"></ul>
42 160
 	</div>
161
+	<!--<div>-->
162
+		<!--<table class="table1 table">
163
+			<thead>
164
+				<tr>
165
+					<td>单位</td>
166
+					<td>受理数量</td>
167
+				</tr>
168
+			</thead>
169
+			<tbody>
170
+				<tr>
171
+					<td>市直单位</td>
172
+					<td><div class="tool_count">20 <div class="tooltips"><p>建议:0</p></div></div></td>
173
+				</tr>
174
+				<tr>
175
+					<td>睢阳区</td>
176
+					<td><a href="">20</a></td>
177
+				</tr>
178
+				<tr>
179
+					<td>市直单位</td>
180
+					<td><a href="">20</a></td>
181
+				</tr>
182
+				<tr>
183
+					<td>市直单位</td>
184
+					<td><a href="">20</a></td>
185
+				</tr>
186
+				<tr>
187
+					<td>市直单位</td>
188
+					<td><a href="">20</a></td>
189
+				</tr>
190
+				<tr>
191
+					<td>市直单位</td>
192
+					<td><a href="">20</a></td>
193
+				</tr>
194
+				
195
+			</tbody>
196
+		</table>-->
197
+		
198
+	
199
+	
200
+	<!--</div>-->
43 201
 	
44 202
 </div>
45 203
 <script src="js/jquery.min.js"></script>

+ 65 - 10
WebChart/jieDanBuMen.html

@@ -8,6 +8,26 @@
8 8
 		<script src="Script/Common/huayi.config.js"></script>
9 9
 		<link rel="stylesheet" href="css/bootstrap.min.css" />
10 10
 		<link rel="stylesheet" href="css/index.css" />
11
+		<style>
12
+			.jiedan{
13
+				margin: 0 20px;
14
+			}
15
+			.part3 {
16
+				border: 1px solid #151924;
17
+				margin-top: 20px;
18
+			}
19
+			.table1 thead tr td{
20
+    		background: #16385e;
21
+   			color: #aba5a5;
22
+    	}
23
+    	.table1 tbody tr td{
24
+    		border: 1px solid #151924;
25
+    		color: #aba5a5;
26
+    	}
27
+    	    	.tool_count {
28
+		    cursor: pointer;
29
+		    }
30
+		</style>
11 31
 	</head>
12 32
 
13 33
 	<body>
@@ -40,20 +60,56 @@
40 60
 		<div class="jiedan">
41 61
 			<div class="clearfix">
42 62
 				<div class="jiedan-left" style="100%">
43
-					<div class="biao-title">工单状态</div>
44
-					<div id="jiedan1" style="width: 100%; height: 400px;"></div>
63
+					<div class="biao-title">
64
+						<div class="biao-title-l">
65
+							工单状态
66
+						</div>
67
+
68
+					</div>
69
+					<div id="jiedan1" style="width: 100%; height: 500px;"></div>
45 70
 
46 71
 				</div>
47 72
 				<div class="jiedan-right">
48
-					<div class="biao-title">工单处理时间分布情况</div>
49
-					<div id="timefb" style="400px"></div>
73
+					<div class="biao-title">
74
+
75
+						<div class="biao-title-l">
76
+							工单处理时间分布情况
77
+						</div>
78
+						<div class="biao-title-r">
79
+							<input type="text" id="time1" />
80
+							<button class="btns part1Btn">搜索</button>
81
+						</div>
82
+					</div>
83
+					<div id="timefb" style="width: 100%; height: 500px;"></div>
50 84
 				</div>
51 85
 			</div>
52
-			<div class="biao-title">各部门受理工单情况</div>
53
-			<div class="bumen" id="bumen" style="width: 100%; height: 500px;">
54
-				<!--<ul class="txbox clearfix">
55
-
56
-				</ul>-->
86
+			<div class="part3">
87
+				<div class="biao-title">
88
+					<div class="biao-title-l">
89
+						各部门受理工单情况
90
+					</div>
91
+					<div class="biao-title-r">
92
+						<input type="text" id="time2" />至<input type="text" id="time3" />
93
+						<button class="btns part3Btn">搜索</button>
94
+					</div>
95
+				</div>
96
+				<!--<div class="bumen" id="bumen" style="width: 100%; height: 500px;">-->
97
+				<!--</div>-->
98
+				<div style="height: 400px;overflow-y: scroll;overflow-x: hidden;">
99
+				<table class="table1 table">
100
+					<thead>
101
+						<tr>
102
+							<!--<td>排名</td>-->
103
+							<td>部门名称</td>
104
+							<td>受理工单量</td>
105
+						</tr>
106
+					</thead>
107
+					<tbody >
108
+						
109
+					</tbody>
110
+				</table>
111
+				<!--<ul class="list list_one clearfix"></ul>-->
112
+				</div>
57 113
 			</div>
58 114
 		</div>
59 115
 
@@ -65,5 +121,4 @@
65 121
 	<script src="js/radialIndicator.js"></script>
66 122
 	<script src="js/coment.js"></script>
67 123
 	<script src="js/jiedanbumen.js"></script>
68
-
69 124
 </html>

+ 309 - 234
WebChart/js/huawu.js

@@ -1,260 +1,335 @@
1
-//part 1
2
-var main1 = echarts.init(document.getElementById('main1'));
3
-main1.setOption({
4
-	tooltip: {
5
-		trigger: 'axis',
6
-		axisPointer: {
7
-			type: 'cross',
8
-			label: {
9
-				show: true,
10
-				backgroundColor: '#333'
11
-			}
12
-		}
13
-	},
14
-	legend: {
15
-		data: ["来电数量", "接通数量", "留言数量", "放弃数量", "骚扰数量"],
16
-		textStyle: {
17
-			color: '#fff'
18
-		}
19
-	},
20
-	xAxis: {
21
-		name: '时',
22
-		data: [],
23
-		axisLine: {
24
-			lineStyle: {
25
-				color: '#ccc'
1
+$(document).ready(function() {
2
+	laydate.render({
3
+		elem: '#time1',
4
+		theme: '#00a1cb'
5
+	});
6
+	laydate.render({
7
+		elem: '#time2',
8
+		theme: '#00a1cb'
9
+	});
10
+	laydate.render({
11
+		elem: '#time3',
12
+		theme: '#00a1cb'
13
+	});
14
+
15
+	laydate.render({
16
+		elem: '#time4',
17
+		theme: '#00a1cb'
18
+	});
19
+	//part 1
20
+	var main1 = echarts.init(document.getElementById('main1'));
21
+	main1.setOption({
22
+		tooltip: {
23
+			trigger: 'axis',
24
+			axisPointer: {
25
+				type: 'cross',
26
+				label: {
27
+					show: true,
28
+					backgroundColor: '#333'
29
+				}
26 30
 			}
27
-		}
28
-	},
29
-	yAxis: {
30
-		name: '数量',
31
-		splitLine: {
32
-			show: false
33 31
 		},
34
-		axisLine: {
35
-			lineStyle: {
36
-				color: '#ccc'
37
-			}
38
-		}
39
-	},
40
-	series: []
41
-});
42
-
43
-//pasrt 3
44
-var main = echarts.init(document.getElementById('main'));
45
-main.setOption({
46
-
47
-	tooltip: {
48
-		trigger: 'axis',
49
-		axisPointer: {
50
-			type: 'cross',
51
-			label: {
52
-				show: true,
53
-				backgroundColor: '#333'
32
+		legend: {
33
+			bottom:'bottom',
34
+			data: ["来电数量", "接通数量", "留言数量", "放弃数量", "骚扰数量"],
35
+			textStyle: {
36
+				color: '#fff'
54 37
 			}
55 38
 		},
56
-		formatter: function(datas) {
57
-			var res = datas[0].name + '<br/>',
58
-				val;
59
-			for(var i = 0, length = datas.length; i < length; i++) {
60
-				val = (datas[i].value) + '%';
61
-				res += datas[i].seriesName + ':' + val + '<br/>';
39
+		xAxis: {
40
+			name: '时',
41
+			data: [],
42
+			axisLine: {
43
+				lineStyle: {
44
+					color: '#ccc'
45
+				}
62 46
 			}
63
-			return res;
64
-		}
65
-	},
66
-	legend: {
67
-		data: ["空闲", "通话", "置忙"],
68
-		textStyle: {
69
-			color: '#fff'
70
-		}
71
-	},
72
-	xAxis: {
73
-		name: '时',
74
-		data: [],
75
-		axisLine: {
76
-			lineStyle: {
77
-				color: '#ccc'
47
+		},
48
+		yAxis: {
49
+			name: '数量',
50
+			splitLine: {
51
+				show: false
52
+			},
53
+			axisLine: {
54
+				lineStyle: {
55
+					color: '#ccc'
56
+				}
78 57
 			}
79
-		}
80
-	},
81
-	yAxis: {
82
-		name: '数量',
83
-		splitLine: {
84
-			show: false
85 58
 		},
86
-		axisLine: {
87
-			lineStyle: {
88
-				color: '#ccc'
59
+		series: []
60
+	});
61
+	partOne();
62
+
63
+	function partOne() {
64
+		var index = layer.load(1, {
65
+			shade: [0.5, '#030303'] //0.1透明度的白色背景
66
+		});
67
+		$('.list_one').html('');
68
+		$.ajax({
69
+			type: "get",
70
+			url: huayi.config.callcenter_url + "info/GetTelCount24ByDate",
71
+			async: true,
72
+			dataType: "json",
73
+			data: {
74
+				date: $('#time1').val()
75
+			},
76
+			success: function(data) {
77
+				if(data.state.toLowerCase() == "success") {
78
+					layer.close(index);
79
+					var con = data.data;
80
+					main1.setOption({
81
+						xAxis: {
82
+							data: con.hours
83
+						},
84
+						series: [{
85
+							name: "来电数量",
86
+							type: "line",
87
+							smooth: true,
88
+							showAllSymbol: true,
89
+							symbol: "emptyCircle",
90
+							symbolSize: 10,
91
+							data: con.rcounts
92
+						}, {
93
+							name: "接通数量",
94
+							type: "line",
95
+							smooth: true,
96
+							showAllSymbol: true,
97
+							symbol: "emptyCircle",
98
+							symbolSize: 10,
99
+							data: con.ccounts
100
+						}, {
101
+							name: "留言数量",
102
+							type: "line",
103
+							smooth: true,
104
+							showAllSymbol: true,
105
+							symbol: "emptyCircle",
106
+							symbolSize: 10,
107
+							data: con.lcounts
108
+						}, {
109
+							name: "骚扰数量",
110
+							type: "line",
111
+							smooth: true,
112
+							showAllSymbol: true,
113
+							symbol: "emptyCircle",
114
+							symbolSize: 10,
115
+							data: con.scounts
116
+						}]
117
+
118
+					})
119
+
120
+				}
89 121
 			}
90
-		}
91
-	},
92
-	series: []
93
-});
94 122
 
95
-//part 2
96
-var phone_num = echarts.init(document.getElementById('phone_num'));
97
-phone_num.setOption({
98
-	title: {
99
-//		text: '投诉/举报汇总',
100
-		x: 'center',
101
-		textStyle: {
102
-			color: '#fff',
103
-			fontSize: 16
123
+		});
124
+
125
+	}
126
+
127
+$('.part1Btn').click(function() {
128
+				partOne();
129
+			})
130
+	
131
+	//part 2
132
+	var phone_num = echarts.init(document.getElementById('phone_num'));
133
+	phone_num.setOption({
134
+		title: {
135
+			//		text: '投诉/举报汇总',
136
+			x: 'center',
137
+			textStyle: {
138
+				color: '#fff',
139
+				fontSize: 16
140
+			},
104 141
 		},
105
-	},
106
-	tooltip: {
107
-		trigger: 'axis',
108
-		axisPointer: { // 坐标轴指示器,坐标轴触发有效
109
-			type: 'line' // 默认为直线,可选为:'line' | 'shadow'
110
-		}
111
-	},
112
-	toolbox: {
113
-		show: true,
114
-	},
115
-	calculable: true,
116
-	xAxis: [{
117
-		type: 'category',
118
-//		name: '月份',
119
-		splitLine: {
120
-			show: false
121
-		}, //去除网格线
122
-		data: ["话务量(通)", "来电(通)", "接通量(通)", "平均通话时长(秒)"],
123
-//		axisTick: {
124
-//			alignWithLabel: true
125
-//		},
126
-		axisLine: {show: false,
127
-			lineStyle: {
128
-				color: '#fff'
142
+		tooltip: {
143
+			trigger: 'axis',
144
+			axisPointer: { // 坐标轴指示器,坐标轴触发有效
145
+				type: 'line' // 默认为直线,可选为:'line' | 'shadow'
129 146
 			}
130 147
 		},
131
-//		axisLine: {},
132
-		axisTick: {
133
-			show: false
148
+		toolbox: {
149
+			show: true,
150
+		},
151
+		calculable: true,
152
+		xAxis: [{
153
+			type: 'category',
154
+			//		name: '月份',
155
+			splitLine: {
156
+				show: false
157
+			}, //去除网格线
158
+			data: ["话务量(通)", "来电(通)", "接通量(通)", "平均通话时长(秒)"],
159
+			//		axisTick: {
160
+			//			alignWithLabel: true
161
+			//		},
162
+			axisLine: {
163
+				show: false,
164
+				lineStyle: {
165
+					color: '#fff'
166
+				}
167
+			},
168
+			//		axisLine: {},
169
+			axisTick: {
170
+				show: false
134 171
 			}
135
-		
136
-	}],
137
-	yAxis: [{
138
-		show:false
139
-	}],
140
-	series: [{
141
-			name: '数量',
142
-			type: 'bar',
143
-			barWidth: '30%', //图形宽度
144
-			data: [],
145
-			itemStyle: {
146
-				normal: {
147
-					label: {
148
-						show: true,
149
-						textStyle: {
150
-							color: '#fff' //顶部数据颜色
172
+
173
+		}],
174
+		yAxis: [{
175
+			show: false
176
+		}],
177
+		series: [{
178
+				name: '数量',
179
+				type: 'bar',
180
+				barWidth: '30%', //图形宽度
181
+				data: [],
182
+				itemStyle: {
183
+					normal: {
184
+						label: {
185
+							show: true,
186
+							textStyle: {
187
+								color: '#fff' //顶部数据颜色
188
+							}
151 189
 						}
152 190
 					}
153
-				}
154
-			},
155
-			label: {
156
-				normal: {
157
-					show: true,
158
-					position: 'top' //顶部数据显示位置
159
-				}
191
+				},
192
+				label: {
193
+					normal: {
194
+						show: true,
195
+						position: 'top' //顶部数据显示位置
196
+					}
160 197
 
198
+				}
161 199
 			}
162
-		}
163 200
 
164
-	]
165
-//  color: ['#ff9800','#61a0a8','#1ab394']
166
-});
167
-Ajax();
168
-
169
-function Ajax() {
170
-	var index = layer.load(1, {
171
-		shade: [0.5, '#030303'] //0.1透明度的白色背景
201
+		]
202
+		//  color: ['#ff9800','#61a0a8','#1ab394']
172 203
 	});
173
-	$.ajax({
174
-		type: "get",
175
-		url: huayi.config.callcenter_url + "Info/GetTelInfo",
176
-		async: true,
177
-		dataType: 'json',
178
-		//				data:{
179
-		//					token:token
180
-		//				},
181
-		success: function(result) {
182
-			if(result.state.toLowerCase() == 'success') {
183
-				layer.close(index);
184
-				var part1 = result.data.a;
204
+	 partTwo() 
205
+	function partTwo() {
206
+		var index = layer.load(1, {
207
+			shade: [0.5, '#030303'] //0.1透明度的白色背景
208
+		});
209
+		$.ajax({
210
+			type: "get",
211
+			url: huayi.config.callcenter_url + "info/GetTelCountByDate",
212
+			async: true,
213
+			dataType: "json",
214
+			data: {
215
+				date: $('#time2').val()
216
+			},
217
+			success: function(data) {
218
+				if(data.state.toLowerCase() == "success") {
219
+					layer.close(index);
220
+					var con = data.data;
221
+					phone_num.setOption({
222
+						series: [{
223
+							data: [con.hwcon, con.lhcon, con.jtcon, con.pjthtimes]
224
+							//						data: [20, 100, 5, 80]
225
+						}]
185 226
 
186
-				main1.setOption({
187
-					xAxis: {
188
-						data: part1.hours
189
-					},
190
-					series: [{
191
-						name: "来电数量",
192
-						type: "line",
193
-						smooth: true,
194
-						showAllSymbol: true,
195
-						symbol: "emptyCircle",
196
-						symbolSize: 10,
197
-						data: part1.rcounts
198
-					}, {
199
-						name: "接通数量",
200
-						type: "line",
201
-						smooth: true,
202
-						showAllSymbol: true,
203
-						symbol: "emptyCircle",
204
-						symbolSize: 10,
205
-						data: part1.ccounts
206
-					}, {
207
-						name: "留言数量",
208
-						type: "line",
209
-						smooth: true,
210
-						showAllSymbol: true,
211
-						symbol: "emptyCircle",
212
-						symbolSize: 10,
213
-						data: part1.lcounts
214
-					}, {
215
-						name: "骚扰数量",
216
-						type: "line",
217
-						smooth: true,
218
-						showAllSymbol: true,
219
-						symbol: "emptyCircle",
220
-						symbolSize: 10,
221
-						data: part1.scounts
222
-					}]
227
+					})
223 228
 
224
-				})
225
-				//part 3
226
-				var part3 = result.data.b;
227
-				main.setOption({
228
-					xAxis: {
229
-						data: part3.hours
230
-					},
231
-					series: [{
232
-						name: "空闲",
233
-						type: "bar",
234
-						data: part3.kxpercents
235
-					}, {
236
-						name: "通话",
237
-						type: "bar",
238
-						data: part3.thpercents
239
-					}, {
240
-						name: "置忙",
241
-						type: "bar",
242
-						data: part3.zmpercents
243
-					}]
229
+				}
230
+			}
244 231
 
245
-				})
246
-				//part4
247
-				var part4 = result.data.c;
248
-				phone_num.setOption({
249
-					series: [{
250
-						data: [part4.hwcon, part4.lhcon, part4.jtcon, part4.pjthtimes]
251
-//						data: [20, 100, 5, 80]
252
-					}]
232
+		});
253 233
 
254
-				})
234
+	}
255 235
 
236
+$('.part2Btn').click(function() {
237
+				partTwo();
238
+			})
239
+//pasrt 3
240
+	var main = echarts.init(document.getElementById('main'));
241
+	main.setOption({
242
+
243
+		tooltip: {
244
+			trigger: 'axis',
245
+			axisPointer: {
246
+				type: 'cross',
247
+				label: {
248
+					show: true,
249
+					backgroundColor: '#333'
250
+				}
251
+			},
252
+			formatter: function(datas) {
253
+				var res = datas[0].name + '<br/>',
254
+					val;
255
+				for(var i = 0, length = datas.length; i < length; i++) {
256
+					val = (datas[i].value) + '%';
257
+					res += datas[i].seriesName + ':' + val + '<br/>';
258
+				}
259
+				return res;
260
+			}
261
+		},
262
+		legend: {
263
+			data: ["空闲", "通话", "置忙"],
264
+			textStyle: {
265
+				color: '#fff'
266
+			},
267
+			bottom:'bottom'
268
+		},
269
+		xAxis: {
270
+			name: '时',
271
+			data: [],
272
+			axisLine: {
273
+				lineStyle: {
274
+					color: '#ccc'
275
+				}
256 276
 			}
257
-		}
277
+		},
278
+		yAxis: {
279
+			name: '比率',
280
+			splitLine: {
281
+				show: false
282
+			},
283
+			axisLine: {
284
+				lineStyle: {
285
+					color: '#ccc'
286
+				}
287
+			}
288
+		},
289
+		series: []
258 290
 	});
259
-}
260
-setInterval(Ajax, huayi.config.indextime); //Ajax调用函数
291
+ 	partThree();
292
+    function partThree(){ 
293
+    	$.ajax({
294
+			type: "get",
295
+			url: huayi.config.callcenter_url + "info/GetUserStateCount24ByDate",
296
+			async: true,
297
+			dataType: "json",
298
+			data: {
299
+				start: $('#time3').val(),
300
+				end: $('#time4').val()
301
+			},
302
+			success: function(data) {
303
+				if(data.state.toLowerCase() == "success") {
304
+					var con = data.data;
305
+//					var part3 = result.data.b;
306
+					main.setOption({
307
+						xAxis: {
308
+							data: con.hours
309
+						},
310
+						series: [{
311
+							name: "空闲",
312
+							type: "bar",
313
+							data: con.kxpercents
314
+						}, {
315
+							name: "通话",
316
+							type: "bar",
317
+							data: con.thpercents
318
+						}, {
319
+							name: "置忙",
320
+							type: "bar",
321
+							data: con.zmpercents
322
+						}]
323
+
324
+					})
325
+
326
+				}
327
+			}
328
+
329
+		});
330
+    }
331
+$('.part3Btn').click(function() {
332
+				partThree();
333
+			})
334
+	//setInterval(Ajax, huayi.config.indextime); //Ajax调用函数
335
+})

+ 295 - 174
WebChart/js/jiedanbumen.js

@@ -1,5 +1,28 @@
1
-		//=================echarts====================
2
-		// 基于准备好的dom,初始化echarts实例
1
+		 function showTools(a){
2
+	 	if($(a).find(".tooltips").css("display") == 'none') {
3
+	 		$(a).find(".tooltips").show();
4
+		   	$(a).parents('tr').siblings().find(".tooltips").hide();
5
+	 	}else{
6
+	 		$(a).find(".tooltips").hide();
7
+	 	}
8
+		   	
9
+		   }
10
+		$(document).ready(function(){
11
+			
12
+	
13
+		laydate.render({
14
+				elem: '#time1',
15
+				theme: '#00a1cb'
16
+			});
17
+		laydate.render({
18
+				elem: '#time2',
19
+				theme: '#00a1cb'
20
+			});
21
+		laydate.render({
22
+				elem: '#time3',
23
+				theme: '#00a1cb'
24
+			});
25
+		// 工单状态part1
3 26
 		var jiedan = echarts.init(document.getElementById('jiedan1'));
4 27
 		jiedan.setOption({
5 28
 			tooltip: {
@@ -13,6 +36,7 @@
13 36
 				}
14 37
 			},
15 38
 			legend: {
39
+				bottom:'bottom',
16 40
 				data: [],
17 41
 				textStyle: {
18 42
 					color: '#ccc'
@@ -43,185 +67,282 @@
43 67
 			},
44 68
 			series: []
45 69
 		});
46
-		
47
-		//part 3
48
-		var bumen = echarts.init(document.getElementById('bumen'));
49
-		bumen.setOption({
50
-//title: {
51
-//          text: 'Beijing AQI'
52
-//      },
53
-        tooltip: {
54
-            trigger: 'axis'
55
-        },
56
-        xAxis: {
57
-        	name:'部门名称',
58
-        	    axisLine: {
59
-					lineStyle: {
60
-						color: '#fff'
61
-					}
62
-				},
63
-            data:[]
64
-        },
65
-        yAxis: {
66
-        	name:'数量',
67
-            splitLine: {
68
-                show: false
69
-            },
70
-            axisLine: {
71
-					lineStyle: {
72
-						color: '#fff'
70
+			
71
+			function partOne(){
72
+				$.ajax({
73
+					type:"get",
74
+					url: huayi.config.callcenter_url + "info/GetStateCountMonthByDate",
75
+					async:true,
76
+					dataType:'json',
77
+					success:function(data){
78
+					if(data.state.toLowerCase()=='success'){
79
+						var con=data.data;
80
+//						var jieDans = result.data.a;
81
+						var counts = con.counts;
82
+						var sers = [];
83
+						$(counts).each(function(i, n) {
84
+							var obj = {};
85
+							obj.name = con.cols[i];
86
+							obj.type = "line";
87
+							obj.smooth = true;
88
+							obj.showAllSymbol = true;
89
+							obj.symbol = "emptyCircle";
90
+							obj.symbolSize = 10;
91
+							obj.data = n;
92
+							sers.push(obj)
93
+						});
94
+						jiedan.setOption({
95
+							xAxis: {
96
+								data: con.months
97
+							},
98
+							legend: {
99
+								data: con.cols
100
+							},
101
+							series: sers
102
+						});
103
+							
104
+						
105
+						
73 106
 					}
74 107
 				}
75
-        },
76
-      
77
-        dataZoom: [{
78
-            startValue: '2014-06-01'
79
-        }, {
80
-            type: 'inside'
81
-        }],
108
+				});
109
+			}
110
+		//受理渠道24小时统计 part2
111
+		var part2 = echarts.init(document.getElementById('timefb'));
112
+			part2.setOption({
113
+	tooltip: {
114
+		trigger: 'axis',
115
+		axisPointer: {
116
+			type: 'shadow',
117
+			label: {
118
+				show: true,
119
+				backgroundColor: '#333'
120
+			}
121
+		},
122
+		formatter: function(datas) 
123
+              {
124
+              var res = datas[0].name + '<br/>', val;
125
+                  for(var i = 0, length = datas.length; i < length; i++) {
126
+                        val = (datas[i].value);
127
+                        res += datas[i].seriesName + ':' + val + '<br/>';
128
+                    }
129
+                    return res;
130
+               }
131
+	},
132
+	legend: {
133
+//		top: 30,
134
+//		orient: 'vertical',
135
+		bottom:'bottom',
136
+		data: ['受理工单数','处理工单数'],
137
+		textStyle: {
138
+			color: '#fff'
139
+		}
140
+	},
141
+	xAxis: {
142
+		name: '时',
143
+		data: [],
144
+		axisLine: {
145
+			lineStyle: {
146
+				color: '#ccc'
147
+			}
148
+		},
82 149
 
83
-        series: {
84
-            name: '部门受理工单',
85
-            type: 'line',
86
-//          type: 'bar',
87
-            data:[]
88
-        },
89
-        color:["#4caf50"]
90
-		});
150
+	},
151
+	yAxis: {
152
+		name: '数量',
153
+		splitLine: {
154
+			show: false
155
+		},
156
+		axisLine: {
157
+			lineStyle: {
158
+				color: '#ccc'
159
+			}
160
+		}
161
+	},
162
+	series: [{
163
+		name: '受理工单数',
164
+		type: 'bar',
165
+		barWidth: '20%',
166
+		itemStyle: {
167
+			normal: {
168
+				color: new echarts.graphic.LinearGradient(
169
+					0, 0, 0, 1, [{offset: 0, color: '#83bff6'},
170
+                            {offset: 0.5, color: '#188df0'},
171
+                            {offset: 1, color: '#188df0'}
172
+					]
173
+				)
174
+			}
175
+		},
176
+		label: {
177
+						normal: {
178
+							show: true,
179
+							position: 'top', //顶部数据显示位置
180
+							formatter: '{c}' // 这里是数据展示的时候显示的数据
181
+						}
182
+					},
183
+		data: []
184
+	},{
185
+		name: '处理工单数',
186
+		type: 'bar',
187
+		barWidth: '20%',
188
+		itemStyle: {
189
+			normal: {
190
+				color: new echarts.graphic.LinearGradient(
191
+					0, 0, 0, 1, [{
192
+							offset: 0,
193
+							color: '#14c8d4'
194
+						},
195
+						{
196
+							offset: 1,
197
+							color: '#43eec6'
198
+						}
199
+					]
200
+				)
201
+			}
202
+		},
203
+		label: {
204
+						normal: {
205
+							show: true,
206
+							position: 'top', //顶部数据显示位置
207
+							formatter: '{c}' // 这里是数据展示的时候显示的数据
208
+						}
209
+					},
210
+		data: []
211
+	}]
91 212
 
92
-		Ajax();
93
-		function Ajax(){
94
-				 var index = layer.load(1, { shade: [0.5,'#030303'] //0.1透明度的白色背景
213
+});
214
+		   function partTwo(){
215
+		   		$.ajax({
216
+   					type:"get",
217
+   					url: huayi.config.callcenter_url + "info/GetDealCount24ByDate",
218
+					dataType: 'json',
219
+					async: true,
220
+					data:{
221
+						date:$('#time1').val(),
222
+					},
223
+					success:function(data){
224
+						if(data.state.toLowerCase()=='success'){
225
+							var con=data.data;
226
+//							var qd_legend = [];
227
+//							var qd_sers = [];
228
+//							var ser_data = [];
229
+//							var qd_label = {
230
+//								normal: {
231
+//									show: true,
232
+//									position: 'inside',
233
+//									formatter: '{c}%'
234
+//								}
235
+//							};
236
+							part2.setOption({
237
+								xAxis: {
238
+									data:con.hours
239
+								},
240
+								series: [{
241
+									data: con.acounts
242
+								},{
243
+									data:con.fcounts
244
+								}]
245
+							});
246
+						}
247
+					}
248
+   				});
249
+		   }
250
+		$('.part1Btn').click(function(){
251
+			partTwo();
252
+		})
253
+		//part 3
254
+//		var bumen = echarts.init(document.getElementById('bumen'));
255
+//		bumen.setOption({
256
+//      tooltip: {
257
+//          trigger: 'axis'
258
+//      },
259
+//      xAxis: {
260
+//      	name:'部门名称',
261
+//      	    axisLine: {
262
+//					lineStyle: {
263
+//						color: '#fff'
264
+//					}
265
+//				},
266
+//          data:[]
267
+//      },
268
+//      yAxis: {
269
+//      	name:'数量',
270
+//          splitLine: {
271
+//              show: false
272
+//          },
273
+//          axisLine: {
274
+//					lineStyle: {
275
+//						color: '#fff'
276
+//					}
277
+//				}
278
+//      },
279
+//    
280
+//      dataZoom: [{
281
+//          startValue: '2014-06-01'
282
+//      }, {
283
+//          type: 'inside'
284
+//      }],
285
+//
286
+//      series: {
287
+//          name: '部门受理工单',
288
+//          type: 'line',
289
+////          type: 'bar',
290
+//          data:[]
291
+//      },
292
+//      color:["#4caf50"]
293
+//		});
294
+		partThree();
295
+		function partThree(){
296
+			 var index = layer.load(1, { shade: [0.5,'#030303'] //0.1透明度的白色背景
95 297
 							});
96
-			$('.txbox').html('');
298
+			$('.table1 tbody').html('');
97 299
 			$.ajax({
98
-			type: "get",
99
-			url: huayi.config.callcenter_url + "Info/GetDeptInfo",
100
-			async: true,
101
-			dataType: 'json',
102
-			success: function(result) {
103
-				if(result.state.toLowerCase() == 'success') {
104
-					layer.close(index);
105
-					var jieDans = result.data.a;
106
-					var counts = jieDans.counts;
107
-					var sers = [];
108
-					$(counts).each(function(i, n) {
109
-						console.log(n[i]);
110
-						var obj = {};
111
-						obj.name = jieDans.cols[i];
112
-						//						obj.type = "bar";
113
-						obj.type = "line";
114
-						obj.smooth = true;
115
-						obj.showAllSymbol = true;
116
-						obj.symbol = "emptyCircle";
117
-						obj.symbolSize = 10;
118
-						obj.data = n;
119
-						sers.push(obj)
120
-					});
121
-					jiedan.setOption({
122
-						xAxis: {
123
-							data: jieDans.months
124
-						},
125
-						legend: {
126
-							data: jieDans.cols
127
-						},
128
-						series: sers
129
-					});
130
-						var department = result.data.b;
131
-						var part3_ser = [];
132
-						var part3_xAxis = [];
133
-						$(department).each(function(i, n) {
134
-							var part3_obj = {};
135
-							part3_obj.value = n.count;
136
-							part3_obj.name = n.deptname;
137
-
138
-							part3_ser.push(part3_obj);
139
-							part3_xAxis.push(n.deptname)
140
-							//						$('<li title="' + n.deptname + '"><div id="dep' + i + '"></div>' + n.deptname + '</li>').appendTo('.txbox');
141
-							//						$('#dep' + i).radialIndicator({
142
-							//							barColor: getColor(),
143
-							//							barWidth: 10,
144
-							//							initValue: n.percent,
145
-							//							roundCorner: true,
146
-							//							percentage: true
147
-							//						});
300
+				type:"get",
301
+				url:huayi.config.callcenter_url + "info/GetDeptCountByDate",
302
+				async:true,
303
+				dataType:'json',
304
+				data:{
305
+					start:$('#time2').val(),
306
+					end:$('#time3').val()
307
+				},
308
+				success:function(data){
309
+					if(data.state.toLowerCase()=='success'){
310
+						layer.close(index);
311
+						var con=data.data;
312
+						$(con).each(function(i,n){
313
+							var html="";
314
+//							$('<tr>'+
315
+//							'<td>1</td>'+
316
+//							'<td>' + n.AreaName + '</td>'+
317
+//							'<td>' + n.Count + '</td>'+
318
+//						'</tr>').appendTo('.table1 tbody');
319
+							html = '<tr><td>' +
320
+									'<div class="tool_count" onClick="showTools(this)">' + n.AreaName + '<div class="tooltips clearfix">'+
321
+									'<div class="toolsTitle">'+ n.AreaName +'</div>'
322
+								$(n.Item).each(function(j, m) {
323
+									html += '<p>' + m.TypeName + ':' + m.Count + '</p>'
324
+								})
325
+								html += '</div>' +
326
+									'</div>' +
327
+									'</td>' +
328
+									'<td>' + n.Count + '</td>' +
329
+									'</tr>';
330
+								$('.table1 tbody').append(html);
148 331
 						})
149
-						bumen.setOption({
150
-							xAxis: {
151
-								data: part3_xAxis
152
-							},
153
-							series: {
154
-								data: part3_ser
155
-							}
156
-						});
157
-					var orderDealTime = result.data.c;
158
-					$('#timefb').highcharts({
159
-						chart: {
160
-							type: 'area',
161
-							backgroundColor: '#030303',
162
-							color: '#fff'
163
-						},
164
-						title: {
165
-							text: false
166
-						},
167
-						legend: {
168
-
169
-							align: 'center',
170
-							verticalAlign: 'top',
171
-							y: 10,
172
-							// 				backgroundColor: '#FCFFC5',
173
-							style: {
174
-								color: '#fff'
175
-
176
-							}
177
-
178
-						},
179
-						//X轴属性
180
-						xAxis: {
181
-							categories: orderDealTime.hours,
182
-							//x轴坐标值
183
-							labels: {
184
-								style: {
185
-									color: '#fff'
186
-								}
187
-							}
188
-						},
189
-						//Y轴属性
190
-						yAxis: {
191
-							title: {
192
-								text: false
193
-							},
194
-							//y轴坐标值
195
-							labels: {
196
-//								style: {
197
-//									color: '#fff'
198
-//								}
199
-								  formatter: function () {
200
-								                    return this.value;
201
-								                }
202
-							},
203
-							gridLineColor: '#100e11'
204
-
205
-						},
206
-
207
-						credits: {
208
-							enabled: false
209
-						},
210
-						series: [{
211
-							name: '受理工单数',
212
-							data: orderDealTime.acounts,
213
-							color: '#da2d28'
214
-						}, {
215
-							name: '处理工单数',
216
-							data: orderDealTime.fcounts,
217
-							color: '#ffeb3b'
218
-						}]
219
-
220
-					})
221
-
332
+					}
222 333
 				}
223
-			}
224
-		});
334
+			});
335
+		}
225 336
 
337
+		$('.part3Btn').click(function(){
338
+			partThree();
339
+		})
340
+
341
+		Ajax();
342
+		function Ajax(){
343
+			partOne()	
344
+			partTwo();	
345
+			partThree();
226 346
 		}
227
-	setInterval(Ajax, huayi.config.indextime);//Ajax调用函数
347
+			})
348
+//	setInterval(Ajax, huayi.config.indextime);//Ajax调用函数

+ 391 - 308
WebChart/js/laiyuanqudao.js

@@ -1,332 +1,415 @@
1
-		var container1 = echarts.init(document.getElementById('container1'));
2
-		container1.setOption({
3
-			tooltip: {
4
-				trigger: 'axis',
5
-				axisPointer: {
6
-					type: 'cross',
7
-					label: {
8
-						show: true,
9
-						backgroundColor: '#333'
1
+		$(document).ready(function() {
2
+
3
+			laydate.render({
4
+				elem: '#time1',
5
+				theme: '#00a1cb'
6
+			});
7
+			laydate.render({
8
+				elem: '#time2',
9
+				theme: '#00a1cb'
10
+			});
11
+			laydate.render({
12
+				elem: '#time3',
13
+				theme: '#00a1cb'
14
+			});
15
+
16
+			laydate.render({
17
+				elem: '#time4',
18
+				theme: '#00a1cb'
19
+			});
20
+			laydate.render({
21
+				elem: '#time5',
22
+				theme: '#00a1cb'
23
+			});
24
+
25
+			var container1 = echarts.init(document.getElementById('container1'));
26
+			container1.setOption({
27
+				tooltip: {
28
+					trigger: 'axis',
29
+					axisPointer: {
30
+						type: 'cross',
31
+						label: {
32
+							show: true,
33
+							backgroundColor: '#030917'
34
+						}
10 35
 					}
11
-				}
12
-			},
13
-			//			title: {
14
-			//				text: '受理群众区域统计',
15
-			//				x: 'center',
16
-			//				top: 'top',
17
-			//				textStyle: {
18
-			//					color: '#fff',
19
-			//					fontSize: 18,
20
-			//
21
-			//				},
22
-			//
23
-			//			},
24
-			legend: {
25
-				x : '20%',
26
-//			    y : '25%',
27
-				data: [],
28
-				textStyle: {
29
-					color: '#fff'
30 36
 				},
31
-				top: 30,
32
-			},
33
-			xAxis: {
34
-				name: '时间',
35
-				data: [],
36
-				axisLine: {
37
-					lineStyle: {
38
-						color: '#fff'
39
-					}
40
-				}
41
-			},
42
-			yAxis: {
43
-				name: '数量',
44
-				//				min: 0,
45
-				//				max: 100,
46
-				//				interval: 20,
47
-				splitLine: {
37
+				legend: {
38
+					//				x : '20%',
39
+					//			    y : '25%',
40
+					//				width:"90%",
41
+					//				bottom:0,
42
+					//				data: [],
43
+					//				textStyle: {
44
+					//					color: '#ccc'
45
+					//				},
48 46
 					show: false
47
+
49 48
 				},
50
-				axisLine: {
51
-					lineStyle: {
52
-						color: '#fff'
49
+				xAxis: {
50
+					name: '时间',
51
+					data: [],
52
+					axisLine: {
53
+						lineStyle: {
54
+							color: '#ccc'
55
+						}
53 56
 					}
54
-				}
55
-			},
56
-			series: []
57
-		});
58
-		//受理区域统计
59
-		var shouLiArea = echarts.init(document.getElementById('shouLiArea'));
60
-		shouLiArea.setOption({
61
-			//					title: {
62
-			//						text: '受理区域统计',
63
-			//						x: 'center',
64
-			//						textStyle: {
65
-			//							color: '#fff',
66
-			//							fontSize: 18
67
-			//						}
68
-			//					},
69
-			tooltip: {
70
-				trigger: 'item',
71
-				formatter: "{a} <br/>{b} : {c} ({d}%)"
72
-			},
73
-			legend: {
74
-				x: 'center',
75
-				y: 'bottom',
76
-			    orient: 'horizontal',
77
-			     align: 'left',
78
-				textStyle: {
79
-					color: '#fff'
80 57
 				},
81
-				formatter: '{name}',
82
-				data: []
83
-			},
84
-			calculable: true,
85
-			series: [{
86
-				name: '数量统计',
87
-				type: 'pie',
88
-				radius: [50, 150],
89
-				center: ['45%', '40%'],
90
-				roseType: 'radius',
91
-				avoidLabelOverlap: false,
92
-//				label: {
93
-//					normal: {
94
-//						show: false,
95
-//						textStyle: {
96
-//							color: '#fff'
97
-//						}
98
-//					},
99
-//					emphasis: {
100
-//						show: true
101
-//					}
102
-//				},
103
-
104
-				data: [],
105
-				itemStyle: {
106
-					emphasis: {
107
-						shadowBlur: 10,
108
-						shadowOffsetX: 0,
109
-						shadowColor: 'rgba(0, 0, 0, 0.5)'
58
+				yAxis: {
59
+					name: '数量',
60
+					//				min: 0,
61
+					//				max: 100,
62
+					//				interval: 20,
63
+					splitLine: {
64
+						show: false
110 65
 					},
111
-					normal: {
112
-						label: {
113
-							show: true,
114
-							formatter: '{b} :\n {c} ({d}%)'
115
-//							formatter: function(val){   //让series 中的文字进行换行  
116
-//					                 return val.name.split(":").join("\n");}  
117
-//					             }
118
-						},
119
-						labelLine: {
120
-							show: true
66
+					axisLine: {
67
+						lineStyle: {
68
+							color: '#fff'
121 69
 						}
122 70
 					}
123 71
 				},
124
-				label: {
125
-                normal: {
126
-                    textStyle: {
127
-                        color: '#fff'
128
-                    }
129
-                }
130
-            }
131
-			}]
132
-		});
133
-		//受理渠道24小时统计
134
-		var qd_box = echarts.init(document.getElementById('qd_box'));
135
-		qd_box.setOption({
72
+				series: [],
73
+				color: ['#61a0a9', '#cb885d', '#c4352d', '#314452', '#a88c1e', '#2f5675', '#94c8b1', '#babc2f', '#e86617', '#afe817', '#e8178d']
74
+			});
75
+			partOne();
76
+
77
+			function partOne() {
78
+				var index = layer.load(1, {
79
+					shade: [0.5, '#030303'] //0.1透明度的白色背景
80
+				});
81
+				$('.list_one').html('');
82
+				$.ajax({
83
+					type: "get",
84
+					url: huayi.config.callcenter_url + "info/GetAreaCount24ByDate",
85
+					async: true,
86
+					dataType: "json",
87
+					data: {
88
+						date: $('#time1').val()
89
+					},
90
+					success: function(data) {
91
+						if(data.state.toLowerCase() == "success") {
92
+							layer.close(index);
93
+							var con = data.data;
94
+							var part1Axis = con.hours;
95
+							var sers = []
96
+							$(con.cols).each(function(i, n) {
97
+								var html = "";
98
+								var obj = {};
99
+								obj.name = n;
100
+								obj.type = "line";
101
+								obj.smooth = true;
102
+								obj.showAllSymbol = true;
103
+								obj.symbol = "emptyCircle";
104
+								obj.symbolSize = 10;
105
+								obj.data = con.counts[i];
106
+								sers.push(obj);
107
+								//							qunZhongArea.push(n.AreaName);
108
+								//							$('<tr>'+
109
+								//								'<td>'+ n.AreaName +'</td>'+
110
+								//								'<td><a>'+ n.Count +'</a></td>'+
111
+								//							'</tr>').appendTo('.table1 tbody');
112
+								html = '<li>' +
113
+									'<div class="tool_count">' +
114
+									'<span class="iconfont icon-tubiao4 color' + i + ' tbr"></span>' + con.cols[i] + '<div class="tooltips clearfix">'
115
+								$(con.items[i]).each(function(i, n) {
116
+									html += '<p>' + n.TypeName + ':' + n.Count + '</p>'
117
+								})
118
+								html += '</div>' +
119
+									'</div>' +
120
+									'</li>';
121
+								$('.list_one').append(html);
122
+							})
123
+							container1.setOption({
124
+								xAxis: {
125
+									data: part1Axis
126
+								},
127
+								//							legend: {
128
+								//								data: qunZhongArea.cols
129
+								//							},
130
+								series: sers
131
+							});
132
+
133
+						}
134
+					}
135
+
136
+				});
136 137
 
137
-		tooltip: {
138
-			trigger: 'axis',
139
-			axisPointer: {
140
-				type: false,
141
-				label: {
142
-					show: true,
143
-					backgroundColor: '#333'
144
-				}
145
-			},
146
-//			formatter: function(datas) 
147
-//	              {
148
-//	              var res = datas[0].name + '<br/>', val;
149
-//	                  for(var i = 0, length = datas.length; i < length; i++) {
150
-//	                        val = (datas[i].value) + '%';
151
-//	                        res += datas[i].seriesName + ':' + val + '<br/>';
152
-//	                    }
153
-//	                    return res;
154
-//	               }
155
-		},
156
-		legend: {
157
-			top: 30,
158
-			data: [],
159
-			textStyle: {
160
-				color: '#fff'
161
-			}
162
-		},
163
-		xAxis: {
164
-//			name: '时',
165
-			data: [],
166
-			axisLine: {
167
-				lineStyle: {
168
-					color: '#ccc'
169
-				}
170
-			},
171
-	
172
-		},
173
-		yAxis: {
174
-			name: '比率',
175
-			splitLine: {
176
-				show: false
177
-			},
178
-			axisLine: {
179
-				lineStyle: {
180
-					color: '#ccc'
181
-				}
182 138
 			}
183
-		},
184
-		series: [{
185
-			name: '渠道占比',
186
-			type: 'bar',
187
-			barWidth: 18,
188
-			itemStyle: {
189
-				normal: {
190
-					color: new echarts.graphic.LinearGradient(
191
-						0, 0, 0, 1, [{
192
-								offset: 0,
193
-								color: '#14c8d4'
194
-							},
195
-							{
196
-								offset: 1,
197
-								color: '#43eec6'
198
-							}
199
-						]
200
-					)
201
-				}
202
-			},
203
-			label: {
204
-				normal: {
205
-					show: true,
206
-					position: 'top', //顶部数据显示位置
207
-					formatter: '{c}%' // 这里是数据展示的时候显示的数据
208
-				}
209
-			},
210
-		data: []
211
-	}]
212 139
 
213
-		});
140
+			$('.list').on('click', 'li', function() {
141
+				if($(this).find(".tooltips").css("display") == 'none') {
142
+					$(this).find(".tooltips").show();
143
+					$(this).siblings().find(".tooltips").hide();
144
+				} else {
145
+					$(this).find(".tooltips").hide()
146
+				}
214 147
 
215
-		Ajax();
148
+			})
149
+			$('.part1Btn').click(function() {
150
+				partOne();
151
+			})
216 152
 
217
-		function Ajax() {
218
-			var index = layer.load(1, {
219
-				shade: [0.5, '#030303'] //0.1透明度的白色背景
220
-			});
221
-			$(".txbox").html('');
222
-			$.ajax({
223
-				type: "get",
224
-				url: huayi.config.callcenter_url + "Info/GetSourceInfo",
225
-				dataType: 'json',
226
-				async: true,
227
-				data: {
228
-					//				token:token
229
-				},
230
-				success: function(result) {
231
-					if(result.state.toLowerCase() == 'success') {
232
-						layer.close(index);
233
-						var qunZhongArea = result.data.c;
234
-						var sers = []
235
-						for(var i = 0; i < qunZhongArea.counts.length; i++) {
236
-							var obj = {};
237
-							obj.name = qunZhongArea.cols[i];
238
-							obj.type = "line";
239
-							obj.smooth = true;
240
-							obj.showAllSymbol = true;
241
-							obj.symbol = "emptyCircle";
242
-							obj.symbolSize = 10;
243
-							obj.data = qunZhongArea.counts[i];
244
-							sers.push(obj)
153
+			//受理区域统计 part2
154
+			var shouLiArea = echarts.init(document.getElementById('shouLiArea'));
155
+			shouLiArea.setOption({
156
+//				title: {
157
+//					text: '投诉/举报汇总',
158
+//					x: 'center',
159
+//					textStyle: {
160
+//						color: '#fff',
161
+//						fontSize: 18
162
+//					},
163
+//				},
164
+				tooltip: {
165
+					trigger: 'item',
166
+					formatter: "{a} <br/>{b} : {c} ({d}%)",
167
+					axisPointer: {
168
+						crossStyle: {
169
+							color: '#fff'
245 170
 						}
246
-						container1.setOption({
247
-							xAxis: {
248
-								data: qunZhongArea.hours
249
-							},
250
-							legend: {
251
-								data: qunZhongArea.cols
252
-							},
253
-							series: sers
254
-						});
255
-
256
-						var shouLiQuDao = result.data.a;
257
-						var qd_legend = [];
258
-						var qd_sers = [];
259
-						var ser_data = [];
260
-						var qd_label = {
261
-							normal: {
171
+					}
172
+				},
173
+				legend: {
174
+					orient: 'vertical',
175
+					bottom: '20%',
176
+					right:'right',
177
+					data: [],
178
+					textStyle: {
179
+						color: '#fff'
180
+					}
181
+				},
182
+				series: [{
183
+					name: '数量统计',
184
+					type: 'pie',
185
+					radius: '45%',
186
+					center: ['35%', '50%'],
187
+					data: [],
188
+					itemStyle: {
189
+						emphasis: {
190
+							shadowBlur: 10,
191
+							shadowOffsetX: 0,
192
+							shadowColor: 'rgba(0, 0, 0, 0.5)'
193
+						},
194
+						normal: {
195
+							label: {
262 196
 								show: true,
263
-								position: 'inside',
264
-								formatter: '{c}%'
265
-							}
266
-						};
267
-						$(shouLiQuDao).each(function(i, n) {
268
-//							var qd_obj = {};
269
-							
270
-							ser_data.push(n.percent)
271
-							//								$('<li><div id="qd' + i + '"></div>' + n.Source + '</li>').appendTo('.txbox');
272
-							qd_legend.push(n.source);
273
-//							qd_obj.name = n.source;
274
-//							qd_obj.type = 'bar';
275
-//							qd_obj.stack = '总量';
276
-//							qd_obj.label = qd_label;
277
-//							qd_obj.data = ser_data;
278
-//							qd_sers.push(qd_obj);
279
-
280
-							//								$('#qd' + i).radialIndicator({
281
-							//									barColor: getColor(),
282
-							//									barWidth: 10,
283
-							//									initValue: n.Count,
284
-							//									roundCorner: true,
285
-							//									percentage: true
286
-							//								});
287
-						})
288
-						qd_box.setOption({
289
-							legend: {
290
-								data: qd_legend
291
-							},
292
-							
293
-							xAxis:{
294
-								data:qd_legend
197
+//								formatter: '{b} : {c} ({d}%)'
198
+								formatter: '{c} ({d}%)'
295 199
 							},
296
-							series: {
297
-								data:ser_data
200
+							labelLine: {
201
+								show: true
298 202
 							}
299
-							
300
-						});
301
-
302
-						var hsouLiArea = result.data.b;
303
-						var hsouLiArea_lengend = [];
304
-						var hsouLiArea_ser = [];
305
-						$(hsouLiArea).each(function(i, n) {
306
-							var hsouLiArea_obj = {};
307
-							if(n.AreaName.indexOf('商丘')!=-1){
308
-								n.AreaName="市直单位"
203
+						}
204
+					},
205
+					label: {
206
+						normal: {
207
+							textStyle: {
208
+								color: '#fff'
309 209
 							}
310
-							hsouLiArea_lengend.push(n.AreaName);
311
-							hsouLiArea_obj.value = n.Count;
312
-							hsouLiArea_obj.name = n.AreaName;
313
-							hsouLiArea_ser.push(hsouLiArea_obj);
210
+						}
211
+					}
212
+				}]
213
+			});
214
+			partTwo()
215
+			function partTwo(){
216
+				$('.list_two').html(''); 
217
+				$.ajax({
218
+					type:"get",
219
+					url:huayi.config.callcenter_url + "info/GetAreaCountByDate",
220
+					async:true,
221
+					dataType:'json',
222
+					data:{
223
+						start:$('#time2').val(),
224
+						end:$('#time3').val()
225
+					},
226
+					success:function(data){
227
+						if(data.state.toLowerCase()=='success'){
228
+							var con=data.data;
229
+							var hsouLiArea_lengend = [];
230
+							var hsouLiArea_ser = [];
231
+							$(con).each(function(i, n) {
232
+								var html = "";
233
+								var hsouLiArea_obj = {};
234
+								if(n.AreaName.indexOf('商丘') != -1) {
235
+									n.AreaName = "市直单位"
236
+								}
237
+								hsouLiArea_lengend.push(n.AreaName);
238
+								hsouLiArea_obj.value = n.Count;
239
+								hsouLiArea_obj.name = n.AreaName;
240
+								hsouLiArea_ser.push(hsouLiArea_obj);
241
+								 
242
+								html = '<li>' +
243
+									'<div class="tool_count">' +
244
+									'<span class="iconfont icon-tubiao3 color' + i + ' tbr"></span>' + n.AreaName + ':' + n.Count + '<div class="tooltips clearfix">'
245
+								$(n.Item).each(function(j, m) {
246
+									html += '<p>' + m.TypeName + ':' + m.Count + '</p>'
247
+								})
248
+								html += '</div>' +
249
+									'</div>' +
250
+									'</li>';
251
+								$('.list_two').append(html); 
252
+							})
253
+							shouLiArea.setOption({
254
+								legend: {
255
+									data: hsouLiArea_lengend,
256
+									selected: {
257
+										'当即办理': false
258
+									}
259
+								},
260
+								series: [{
261
+									data: hsouLiArea_ser
262
+								}]
263
+							});
264
+						}
265
+					}
266
+				});
267
+			}
268
+			$('.part2Btn').click(function() {
269
+				partTwo();
270
+			})
271
+			
272
+			//受理渠道24小时统计 part3
273
+			var qd_box = echarts.init(document.getElementById('qd_box'));
274
+			qd_box.setOption({
314 275
 
315
-						})
316
-						shouLiArea.setOption({
317
-							legend: {
318
-								data: hsouLiArea_lengend,
319
-								selected: {  
320
-			                    '当即办理': false 
321
-			                }  
322
-							},
323
-							series: [{
324
-								data: hsouLiArea_ser
325
-							}]
326
-						});
276
+				tooltip: {
277
+					trigger: 'axis',
278
+					axisPointer: {
279
+						type: false,
280
+						label: {
281
+							show: true,
282
+							backgroundColor: '#030917'
283
+						}
284
+					},
285
+					//			formatter: function(datas) 
286
+					//	              {
287
+					//	              var res = datas[0].name + '<br/>', val;
288
+					//	                  for(var i = 0, length = datas.length; i < length; i++) {
289
+					//	                        val = (datas[i].value) + '%';
290
+					//	                        res += datas[i].seriesName + ':' + val + '<br/>';
291
+					//	                    }
292
+					//	                    return res;
293
+					//	               }
294
+				},
295
+				legend: {
296
+					top: 30,
297
+					data: [],
298
+					textStyle: {
299
+						color: '#fff'
327 300
 					}
328
-				}
301
+				},
302
+				xAxis: {
303
+					//			name: '时',
304
+					data: [],
305
+					axisLine: {
306
+						lineStyle: {
307
+							color: '#ccc'
308
+						}
309
+					},
310
+
311
+				},
312
+				yAxis: {
313
+					name: '比率',
314
+					splitLine: {
315
+						show: false
316
+					},
317
+					axisLine: {
318
+						lineStyle: {
319
+							color: '#ccc'
320
+						}
321
+					}
322
+				},
323
+				series: [{
324
+					name: '渠道占比',
325
+					type: 'bar',
326
+					barWidth: 18,
327
+					itemStyle: {
328
+						normal: {
329
+							color: new echarts.graphic.LinearGradient(
330
+								0, 0, 0, 1, [{
331
+										offset: 0,
332
+										color: '#14c8d4'
333
+									},
334
+									{
335
+										offset: 1,
336
+										color: '#43eec6'
337
+									}
338
+								]
339
+							)
340
+						}
341
+					},
342
+					label: {
343
+						normal: {
344
+							show: true,
345
+							position: 'top', //顶部数据显示位置
346
+							formatter: '{c}%' // 这里是数据展示的时候显示的数据
347
+						}
348
+					},
349
+					data: []
350
+				}]
351
+
329 352
 			});
330
-		}
353
+   			part_three();
354
+   			function part_three(){
355
+   				$('.list_three').html(''); 
356
+   				$.ajax({
357
+   					type:"get",
358
+   					url: huayi.config.callcenter_url + "info/GetSourcePercentByDate",
359
+					dataType: 'json',
360
+					async: true,
361
+					data:{
362
+						start:$('#time4').val(),
363
+						end:$('#time5').val()
364
+					},
365
+					success:function(data){
366
+						if(data.state.toLowerCase()=='success'){
367
+							var con=data.data;
368
+							var qd_legend = [];
369
+							var qd_sers = [];
370
+							var ser_data = [];
371
+							var qd_label = {
372
+								normal: {
373
+									show: true,
374
+									position: 'inside',
375
+									formatter: '{c}%'
376
+								}
377
+							};
378
+							$(con).each(function(i, n) {
379
+								var htmls="";
380
+								ser_data.push(n.Count)
381
+								qd_legend.push(n.Source);
382
+								htmls = '<li>' +
383
+									'<div class="tool_count">' +
384
+									'<span class="iconfont icon-tubiaozhuzhuangtu color11 tbr"></span>' + n.Source + ':' + n.Count + '<div class="tooltips clearfix">'
385
+								$(n.Item).each(function(j, m) {
386
+									htmls += '<p>' + m.TypeName + ':' + m.Count + '</p>'
387
+								})
388
+								htmls += '</div>' +
389
+									'</div>' +
390
+									'</li>';
391
+								$('.list_three').append(htmls); 
392
+							})
393
+							qd_box.setOption({
394
+								legend: {
395
+									data: qd_legend
396
+								},
331 397
 
332
-		setInterval(Ajax, huayi.config.indextime); //Ajax调用函数
398
+								xAxis: {
399
+									data: qd_legend
400
+								},
401
+								series: {
402
+									data: ser_data
403
+								}
404
+
405
+							});
406
+						}
407
+					}
408
+   				});
409
+   			}
410
+$('.part3Btn').click(function() {
411
+				part_three();
412
+			})
413
+//			function Ajax() {
414
+//				
415
+})

Файловите разлики са ограничени, защото са твърде много
+ 2 - 0
WebChart/js/laydate/laydate.js


BIN
WebChart/js/laydate/theme/default/font/iconfont.eot


Файловите разлики са ограничени, защото са твърде много
+ 45 - 0
WebChart/js/laydate/theme/default/font/iconfont.svg


BIN
WebChart/js/laydate/theme/default/font/iconfont.ttf


BIN
WebChart/js/laydate/theme/default/font/iconfont.woff


Файловите разлики са ограничени, защото са твърде много
+ 2 - 0
WebChart/js/laydate/theme/default/laydate.css


+ 317 - 122
WebChart/js/tousujubao.js

@@ -1,14 +1,52 @@
1
-		//投诉举报汇总
1
+	
2
+	 function showTools(a){
3
+	 	if($(a).find(".tooltips").css("display") == 'none') {
4
+	 		$(a).find(".tooltips").show();
5
+		   	$(a).parents('tr').siblings().find(".tooltips").hide();
6
+	 	}else{
7
+	 		$(a).find(".tooltips").hide();
8
+	 	}
9
+		   	
10
+		   }
11
+	$(document).ready(function(){
12
+		
13
+		laydate.render({
14
+				elem: '#time1',
15
+				theme: '#00a1cb'
16
+			});
17
+		laydate.render({
18
+				elem: '#time2',
19
+				theme: '#00a1cb'
20
+			});
21
+		laydate.render({
22
+				elem: '#time3',
23
+				theme: '#00a1cb'
24
+			});
25
+		laydate.render({
26
+				elem: '#time4',
27
+				theme: '#00a1cb'
28
+			});
29
+		laydate.render({
30
+				elem: '#time5',
31
+				theme: '#00a1cb'
32
+			});
33
+	
34
+		laydate.render({
35
+				elem: '#time6',
36
+				theme: '#00a1cb'
37
+			});
38
+	
39
+	//投诉举报汇总 part1
2 40
 		var quantity = echarts.init(document.getElementById('quantity'));
3 41
 		quantity.setOption({
4
-			title: {
5
-				text: '投诉/举报汇总',
6
-				x: 'center',
7
-				textStyle: {
8
-					color: '#fff',
9
-					fontSize: 18
10
-				},
11
-			},
42
+//			title: {
43
+//				text: '投诉/举报汇总',
44
+//				x: 'center',
45
+//				textStyle: {
46
+//					color: '#fff',
47
+//					fontSize: 18
48
+//				},
49
+//			},
12 50
 			tooltip: {
13 51
 				trigger: 'item',
14 52
 				formatter: "{a} <br/>{b} : {c} ({d}%)",
@@ -55,8 +93,47 @@
55 93
             }
56 94
 			}]
57 95
 		});
96
+		partOne();
97
+		function partOne(){
98
+			$.ajax({
99
+				type:"get",
100
+				url:huayi.config.callcenter_url + "info/GetTypeCountByDate",
101
+				async:true,
102
+				dataType:'json',
103
+				data:{
104
+					start:$('#time1').val(),
105
+					end:$('#time2').val()
106
+				},
107
+				success:function(data){
108
+					if(data.state.toLowerCase()=='success'){
109
+						var con=data.data;
110
+						var part_1_legend =[];
111
+						var part_1_ser = [];
112
+						$(con).each(function(i, n) {
113
+							part_1_legend.push(n.TypeName)
114
+							var part_1_obj = {};
115
+							part_1_obj.value = n.Count;
116
+							part_1_obj.name = n.TypeName;
117
+							part_1_ser.push(part_1_obj)
118
+						})
119
+						quantity.setOption({
120
+							legend: {
121
+								data: part_1_legend
122
+							},
123
+							series: [{
124
+								data: part_1_ser
125
+							}]
126
+						})
127
+						
128
+					}
129
+				}
130
+			});
131
+		}
132
+		$('.part1Btn').click(function(){
133
+			partOne()
134
+		})
58 135
 		
59
-		//举报单位/个人统计 
136
+		//举报单位/个人统计 part2
60 137
 		var tsdwgr = echarts.init(document.getElementById('tsdwgr'));
61 138
 		tsdwgr.setOption({
62 139
 			tooltip: {
@@ -71,6 +148,7 @@
71 148
 			},
72 149
 			legend: {
73 150
 				data: [],
151
+				bottom:'bottom',
74 152
 				textStyle: {
75 153
 					color: '#ccc'
76 154
 				}
@@ -97,38 +175,129 @@
97 175
 			},
98 176
 			series: []
99 177
 		});
100
-		//投诉单位统计 part4
178
+		 	partTwo();
179
+			function partTwo(){
180
+				$.ajax({
181
+					type:"get",
182
+					url:huayi.config.callcenter_url + "info/GetTypeCountMonthByDate",
183
+					async:true,
184
+					dataType:'json',
185
+					success:function(data){
186
+						if(data.state.toLowerCase()=='success'){
187
+							var con=data.data;
188
+							var counts = con.counts;
189
+							var sers = [];
190
+							$(counts).each(function(i, n) {
191
+								var obj = {};
192
+								obj.name = con.cols[i];
193
+								obj.type = "line";
194
+								obj.smooth = true;
195
+								obj.showAllSymbol = true;
196
+								obj.symbol = "emptyCircle";
197
+								obj.symbolSize = 10;
198
+								obj.data = n;
199
+								sers.push(obj)
200
+							});
201
+							tsdwgr.setOption({
202
+								xAxis: {
203
+									data: con.months
204
+								},
205
+								legend: {
206
+									data: con.cols
207
+								},
208
+								series: sers
209
+							});
210
+							
211
+							
212
+							
213
+						}
214
+					}
215
+				});
216
+		}
217
+		//投诉关键字 part3
218
+		partThree()
219
+			function partThree(){
220
+				$('.table1 tbody').html('');
221
+				$.ajax({
222
+					type:"get",
223
+					url:huayi.config.callcenter_url + "info/GetKeyCountByDate",
224
+					async:true,
225
+					dataType:'json',
226
+					data:{
227
+						start:$('#time3').val(),
228
+						end:$('#time4').val()
229
+					},
230
+					success:function(data){
231
+						if(data.state.toLowerCase()=='success'){
232
+							var con=data.data;
233
+							$(con).each(function(i,n){
234
+								if(i<10){
235
+									
236
+								
237
+							var html="";
238
+//							$('<tr>'+
239
+//							'<td>1</td>'+
240
+//							'<td>' + n.AreaName + '</td>'+
241
+//							'<td>' + n.Count + '</td>'+
242
+//						'</tr>').appendTo('.table1 tbody');
243
+							html = '<tr>'+
244
+									'<td>'+ parseInt(i+1)+'</td>'+
245
+								'<td>' +
246
+									'<div class="tool_count" onClick="showTools(this)">' + n.TypeName + '<div class="tooltips clearfix">'+
247
+									'<div class="toolsTitle">'+ n.TypeName +'</div>'
248
+								$(n.Item).each(function(j, m) {
249
+									html += '<p>' + m.TypeName + ':' + m.Count + '</p>'
250
+								})
251
+								html += '</div>' +
252
+									'</div>' +
253
+									'</td>' +
254
+									'<td>' + n.Count + '</td>' +
255
+									'</tr>';
256
+								$('.table1 tbody').append(html);
257
+								}
258
+						})
259
+						}
260
+					}
261
+				});
262
+		}
263
+		  
264
+			$('.part3Btn').click(function() {
265
+				partThree();
266
+			})
267
+		
268
+		//承办单位统计 part4
101 269
 		var tsdw_dw = echarts.init(document.getElementById('tsdw_dw'));
102 270
 		tsdw_dw.setOption({
103
-			title: {
104
-				text: '投诉单位统计',
105
-				x: 'center',
106
-				textStyle: {
107
-					color: '#fff',
108
-					fontSize: 18
109
-				}
110
-			},
271
+//			title: {
272
+//				text: '投诉单位统计',
273
+//				x: 'center',
274
+//				textStyle: {
275
+//					color: '#fff',
276
+//					fontSize: 18
277
+//				}
278
+//			},
111 279
 		  tooltip : {
112 280
 		        trigger: 'item',
113 281
 		        formatter: "{a} <br/>{b} : {c} ({d}%)"
114 282
 		    },
115 283
 			legend: {
116
-				type:"scroll",
117
-				orient: 'vertical',
118
-				right: 10,
119
-		        top: 20,
120
-		        bottom: 20,
284
+//				show: true,
285
+//				type:true,
286
+//				orient: 'vertical',
287
+				right:'15%',
288
+				top:'10%',
289
+   				orient: 'vertical',
121 290
 				data: [],
122 291
 				textStyle: {
123
-					color: '#fff'
292
+					color: '#ccc'
124 293
 				}
125 294
 			},
126 295
 			series: [{
127 296
 				name: '部门',
128 297
 				type: 'pie',
129
-				left: 0,
298
+//				left: 0,
130 299
 				radius: ['40%', '70%'],
131
-				center: ['50%', '58%'],
300
+				center: ['20%', '50%'],
132 301
 				avoidLabelOverlap: false,
133 302
 				label: {
134 303
 					normal: {
@@ -138,8 +307,8 @@
138 307
 					emphasis: {
139 308
 						show: true,
140 309
 						textStyle: {
141
-							fontSize: '30',
142
-							fontWeight: 'bold'
310
+							fontSize: '18',
311
+//							fontWeight: 'bold'
143 312
 						}
144 313
 					}
145 314
 				},
@@ -151,117 +320,143 @@
151 320
 				data: [],
152 321
 				 
153 322
 			}]
154
-		});		Ajax();
155
-		function Ajax(){
156
-				 var index = layer.load(1, { shade: [0.5,'#030303'] //0.1透明度的白色背景
157
-							});
158
-			$('.tsjb-bm ul').html('');
323
+		});		
324
+//		
325
+		partFour();
326
+			function partFour(){
327
+				$('.part4_list').html('');
159 328
 				$.ajax({
160 329
 					type: "get",
161
-					url: huayi.config.callcenter_url + "Info/GetTypeInfo",
330
+					url: huayi.config.callcenter_url + "info/GetDeptCountByDate",
162 331
 					async: true,
163 332
 					dataType: 'json',
164 333
 					data:{
334
+						start:$('#time5').val(),
335
+						end:$('#time6').val()
165 336
 					},
166 337
 				
167
-					success: function(result) {
168
-						if(result.state.toLowerCase() == 'success') {
169
-								layer.close(index);
170
-							//举报单位/个人统计 part2
171
-							var juBao = result.data.a;
172
-							var counts = juBao.counts;
173
-							var sers = [];
174
-							$(counts).each(function(i, n) {
175
-								console.log(n[i]);
176
-								var obj = {};
177
-								obj.name = juBao.cols[i];
178
-								obj.type = "line";
179
-								obj.smooth = true;
180
-								obj.showAllSymbol = true;
181
-								obj.symbol = "emptyCircle";
182
-								obj.symbolSize = 10;
183
-								obj.data = n;
184
-								sers.push(obj)
185
-							});
186
-							tsdwgr.setOption({
187
-								xAxis: {
188
-									data: juBao.months
189
-								},
190
-								legend: {
191
-									data: juBao.cols
192
-								},
193
-								series: sers
194
-							});
195
-							//part 1
196
-							var part1 = result.data.b;
197
-							var part_1_legend = part1.cols;
198
-							var part_1_ser = [];
199
-							$(part1.cols).each(function(i, n) {
200
-//								part_1_legend.push(n.teptname);
201
-								var part_1_obj = {};
202
-								part_1_obj.value = part1.counts[i];
203
-								part_1_obj.name = n;
204
-								part_1_ser.push(part_1_obj)
205
-							})
206
-							quantity.setOption({
207
-								legend: {
208
-									data: part_1_legend
209
-								},
210
-								series: [{
211
-									data: part_1_ser
212
-								}]
213
-							})
214
-							//part 3
215
-							var part3 = result.data.c;
216
-							var colorArr = [];
217
-							$(part3).each(function(i, n) {
218
-								if(i<10){
219
-									$('<li class="clearfix">' +
220
-									'<div class="tsgjz-left">' +
221
-									'<div class="progress" title="' + n.Count+ '个">' +
222
-									'<div class="progress-bar bar' + i + '" title="' + n.Count + '" style="width: ' + n.Count + 'px;background:' + getColor() + '">' +
223
-									'</div>' +
224
-									'</div>' +
225
-									'</div>' +
226
-									'<div class="tsgjz-right">' + n.TypeName + '<span class="count' + i + '" style="color:' + $('.bar' + i).css("background-color") + '">' + n.Count + '</span></div>' +
227
-									'</li>').appendTo('.tsjb-bm ul');
228
-								colorArr.push($('.bar' + i).css("background-color"));
229
-								}
230
-								
231
-							})
232
-		
233
-							$(colorArr).each(function(i, n) {
234
-								$('.count' + i).css("color", n)
235
-		
236
-							})
237
-		
238
-							//part 4
239
-							var part4 = result.data.d;
338
+					success: function(data) {
339
+						if(data.state.toLowerCase()=='success'){
340
+							var con=data.data;
240 341
 							var part_4_legend = [];
241 342
 							var part_4_ser = [];
242
-							$(part4).each(function(i, n) {
243
-								part_4_legend.push(n.deptname);
343
+							$(con).each(function(i, n) {
344
+								var html="";
345
+								part_4_legend.push(n.AreaName);
244 346
 								var part_4_obj = {};
245
-								part_4_obj.value = n.count;
246
-								part_4_obj.name = n.deptname;
247
-								part_4_ser.push(part_4_obj)
347
+								part_4_obj.value = n.Count;
348
+								part_4_obj.name = n.AreaName;
349
+								part_4_ser.push(part_4_obj);
350
+								htmls = '<li>' +
351
+								'<span class="iconfont icon-tubiao2 color'+ i+'"></span>'+
352
+								'<div class="depName" title="'+ n.AreaName +'">'+ n.AreaName + '</div>'+
353
+								'<div class="tool_count"><div class="tooltips clearfix">'+
354
+								'<div class="toolsTitle">'+ n.AreaName +':'+ n.Count +'</div>'
355
+								
356
+								$(n.Item).each(function(j, m) {
357
+									htmls += '<p>' + m.TypeName + ':' + m.Count + '</p>'
358
+								})
359
+								htmls += '</div>' +
360
+									'</div>' +
361
+									'</li>';
362
+								$('.part4_list').append(htmls); 
248 363
 							})
249 364
 							tsdw_dw.setOption({
250
-		//						legend: {
251
-		//							data: part_4_legend
252
-		//						},
365
+								legend: {
366
+									data: part_4_legend
367
+								},
253 368
 								series: [{
254 369
 									data: part_4_ser
255 370
 								}]
256 371
 							})
257
-							
258
-							
259
-							
372
+//							
373
+							}
260 374
 						}
261
-		
262
-					}
263 375
 				})
264 376
 		
377
+			 }
378
+			
379
+	$('.part4Btn').click(function(){
380
+		partFour();
381
+	})
382
+		$('.part4_list').on('click', 'li', function() {
383
+				if($(this).find(".tooltips").css("display") == 'none') {
384
+					$(this).find(".tooltips").show();
385
+					$(this).siblings().find(".tooltips").hide();
386
+				} else {
387
+					$(this).find(".tooltips").hide()
388
+				}
389
+
390
+			})
391
+	
392
+	function Ajax(){
393
+//				 var index = layer.load(1, { shade: [0.5,'#030303'] //0.1透明度的白色背景
394
+//							});
395
+//			$('.tsjb-bm ul').html('');
396
+//				$.ajax({
397
+//					type: "get",
398
+//					url: huayi.config.callcenter_url + "Info/GetTypeInfo",
399
+//					async: true,
400
+//					dataType: 'json',
401
+//					data:{
402
+//					},
403
+//				
404
+//					success: function(result) {
405
+//						if(result.state.toLowerCase() == 'success') {
406
+//								layer.close(index);
407
+//						
408
+//							//part 3
409
+//							var part3 = result.data.c;
410
+//							var colorArr = [];
411
+//							$(part3).each(function(i, n) {
412
+//								if(i<10){
413
+//									$('<li class="clearfix">' +
414
+//									'<div class="tsgjz-left">' +
415
+//									'<div class="progress" title="' + n.Count+ '个">' +
416
+//									'<div class="progress-bar bar' + i + '" title="' + n.Count + '" style="width: ' + n.Count + 'px;background:' + getColor() + '">' +
417
+//									'</div>' +
418
+//									'</div>' +
419
+//									'</div>' +
420
+//									'<div class="tsgjz-right">' + n.TypeName + '<span class="count' + i + '" style="color:' + $('.bar' + i).css("background-color") + '">' + n.Count + '</span></div>' +
421
+//									'</li>').appendTo('.tsjb-bm ul');
422
+//								colorArr.push($('.bar' + i).css("background-color"));
423
+//								}
424
+//								
425
+//							})
426
+		
427
+//							$(colorArr).each(function(i, n) {
428
+//								$('.count' + i).css("color", n)
429
+//		
430
+//							})
431
+//		
432
+							//part 4
433
+//							var part4 = result.data.d;
434
+//							var part_4_legend = [];
435
+//							var part_4_ser = [];
436
+//							$(part4).each(function(i, n) {
437
+//								part_4_legend.push(n.deptname);
438
+//								var part_4_obj = {};
439
+//								part_4_obj.value = n.count;
440
+//								part_4_obj.name = n.deptname;
441
+//								part_4_ser.push(part_4_obj)
442
+//							})
443
+//							tsdw_dw.setOption({
444
+//		//						legend: {
445
+//		//							data: part_4_legend
446
+//		//						},
447
+//								series: [{
448
+//									data: part_4_ser
449
+//								}]
450
+//							})
451
+//							
452
+//							
453
+							
454
+//						}
455
+//		
456
+//					}
457
+//				})
458
+		
265 459
 		}
266 460
 			
267
-		setInterval(Ajax, huayi.config.indextime);//Ajax调用函数
461
+		setInterval(Ajax, huayi.config.indextime);//Ajax调用函数
462
+		})

+ 310 - 56
WebChart/js/zhongxin.js

@@ -1,4 +1,148 @@
1
-//类型工单统计
1
+$(document).ready(function(){
2
+	laydate.render({
3
+		elem: '#time1',
4
+		theme: '#00a1cb'
5
+	});
6
+	laydate.render({
7
+		elem: '#time2',
8
+		theme: '#00a1cb'
9
+	});
10
+	laydate.render({
11
+		elem: '#time3',
12
+		theme: '#00a1cb'
13
+	});
14
+
15
+	laydate.render({
16
+		elem: '#time4',
17
+		theme: '#00a1cb'
18
+	});
19
+	laydate.render({
20
+		elem: '#time5',
21
+		theme: '#00a1cb'
22
+	});
23
+	//part1
24
+	partOne();
25
+  function partOne(){
26
+  	$('.gdmap-l ul').html('');
27
+   	   $.ajax({
28
+   	   	type:"get",
29
+   	   	url:huayi.config.callcenter_url + "info/GetCenterTypeCountByDate ",
30
+   	   	async:true,
31
+   	   	dataType:'json',
32
+   	   	success:function(data){
33
+   	   		if(data.state.toLowerCase()=='success'){
34
+   	   			var con=data.data;
35
+   	   			 $(con).each(function(i,n){
36
+			 	$('<li>'+
37
+						'<div>'+n.TypeName +'</div>'+
38
+						'<span>'+n.Count +'</span>'+
39
+					'</li>').appendTo('.gdmap-l ul');
40
+			 	
41
+			 })
42
+   	   		}
43
+   	   	}
44
+   	   });
45
+   }
46
+	 partOne_right()
47
+	 function partOne_right(){
48
+//	 	$('.gdmap-r ul').html('');
49
+   	   $.ajax({
50
+   	   	type:"get",
51
+   	   	url:huayi.config.callcenter_url + "info/GetAreaCountByDate",
52
+   	   	async:true,
53
+   	   	dataType:'json',
54
+   	   	data:{
55
+   	   		start:$('#time0').val(),
56
+   	   		end:$('#time1').val(),
57
+   	   	},
58
+   	   	success:function(data){
59
+   	   		if(data.state.toLowerCase()=='success'){
60
+   	   			var con=data.data;
61
+   	   		var color=["z","l","a","t","y","g","w","b","1","2","3"];
62
+			var dindex=Math.floor(Math.random()*10+1);
63
+			$(con).each(function(i,n){
64
+				var dindex=Math.floor(Math.random()*10+1);
65
+				if(n.AreaName.indexOf('商丘')!=-1){
66
+					$('<li>'+
67
+					'<i class="xe-'+ color[dindex] +'"></i>'+
68
+//					'<span>'+n.AreaName+'</span>'+
69
+					'<span>市直单位</span>'+
70
+					'<span>'+ n.Count+'</span>'+
71
+					'</li>').appendTo('.gdmap-r ul')
72
+				}if(n.AreaName.indexOf('虞城')!=-1){
73
+					$('<li>'+
74
+					'<i class="yuc"></i>'+
75
+					'<span>'+n.AreaName+'</span>'+
76
+					'<span>'+ n.Count+'</span>'+
77
+					'</li>').appendTo('.gdmap-r ul')
78
+				}if(n.AreaName.indexOf('民权')!=-1){
79
+					$('<li>'+
80
+					'<i class="mq"></i>'+
81
+					'<span>'+n.AreaName+'</span>'+
82
+					'<span>'+ n.Count+'</span>'+
83
+					'</li>').appendTo('.gdmap-r ul')
84
+				}if(n.AreaName.indexOf('睢县')!=-1){
85
+					$('<li>'+
86
+					'<i class="sx"></i>'+
87
+					'<span>'+n.AreaName+'</span>'+
88
+					'<span>'+ n.Count+'</span>'+
89
+					'</li>').appendTo('.gdmap-r ul')
90
+				}if(n.AreaName.indexOf('宁陵')!=-1){
91
+					$('<li>'+
92
+					'<i class="nl"></i>'+
93
+					'<span>'+n.AreaName+'</span>'+
94
+					'<span>'+ n.Count+'</span>'+
95
+					'</li>').appendTo('.gdmap-r ul')
96
+				}if(n.AreaName.indexOf('梁园')!=-1){
97
+					$('<li>'+
98
+					'<i class="lyq"></i>'+
99
+					'<span>'+n.AreaName+'</span>'+
100
+					'<span>'+ n.Count+'</span>'+
101
+					'</li>').appendTo('.gdmap-r ul')
102
+				}if(n.AreaName.indexOf('睢阳')!=-1){
103
+					$('<li>'+
104
+					'<i class="syq"></i>'+
105
+					'<span>'+n.AreaName+'</span>'+
106
+					'<span>'+ n.Count+'</span>'+
107
+					'</li>').appendTo('.gdmap-r ul')
108
+				}if(n.AreaName.indexOf('柘城')!=-1){
109
+					$('<li>'+
110
+					'<i class="zc"></i>'+
111
+					'<span>'+n.AreaName+'</span>'+
112
+					'<span>'+ n.Count+'</span>'+
113
+					'</li>').appendTo('.gdmap-r ul')
114
+				}if(n.AreaName.indexOf('夏邑')!=-1){
115
+					$('<li>'+
116
+					'<i class="xy"></i>'+
117
+					'<span>'+n.AreaName+'</span>'+
118
+					'<span>'+ n.Count+'</span>'+
119
+					'</li>').appendTo('.gdmap-r ul')
120
+				}if(n.AreaName.indexOf('永城')!=-1){
121
+					$('<li>'+
122
+					'<i class="yongc"></i>'+
123
+					'<span>'+n.AreaName+'</span>'+
124
+					'<span>'+ n.Count+'</span>'+
125
+					'</li>').appendTo('.gdmap-r ul')
126
+				}if(n.AreaName.indexOf('城乡一体化')!=-1){
127
+					$('<li>'+
128
+					'<i class="xe-'+ color[dindex] +'"></i>'+
129
+					'<span>'+n.AreaName+'</span>'+
130
+					'<span>'+ n.Count+'</span>'+
131
+					'</li>').appendTo('.gdmap-r ul')
132
+				}if(n.AreaName.indexOf('当即')!=-1){
133
+					$('<li>'+
134
+					'<i class="xe-'+ color[dindex] +'"></i>'+
135
+					'<span>'+n.AreaName+'</span>'+
136
+					'<span>'+ n.Count+'</span>'+
137
+					'</li>').appendTo('.gdmap-r ul')
138
+				}
139
+			})
140
+   	   		}
141
+   	   	}
142
+   	   });
143
+	 	
144
+	 }
145
+//类型工单统计 part2
2 146
 
3 147
 var slhw = echarts.init(document.getElementById('slhw'));
4 148
 slhw.setOption({
@@ -57,8 +201,54 @@ slhw.setOption({
57 201
 	
58 202
 	
59 203
 });
60
-
61
-//接通率报表
204
+  partTwo();
205
+  function partTwo(){
206
+   	   $.ajax({
207
+   	   	type:"get",
208
+   	   	url:huayi.config.callcenter_url + "info/GetTypeCountByDate",
209
+   	   	async:true,
210
+   	   	dataType:'json',
211
+   	   	data:{
212
+   	   		start:$('#time2').val(),
213
+   	   		end:$('#time3').val()
214
+   	   	},
215
+   	   	success:function(data){
216
+   	   		if(data.state.toLowerCase()=='success'){
217
+   	   			var con=data.data;
218
+				var part2_legend = [];
219
+				var part2_ser = [];
220
+   	   			$(con).each(function(i,n){
221
+   	   				var obj={};
222
+   	   				if(i==0){
223
+   	   					obj.value=n.Count;
224
+					obj.name=n.TypeName;
225
+					obj.selected=true;
226
+   	   				}else{
227
+   	   					obj.value=n.Count;
228
+						obj.name=n.TypeName;
229
+   	   				}
230
+   	   				
231
+   	   				
232
+					part2_legend.push(n.TypeName);
233
+					part2_ser.push(obj);
234
+   	   			})
235
+   	   			slhw.setOption({
236
+						legend: {
237
+							data: part2_legend
238
+						},
239
+						series: [{
240
+							data: part2_ser
241
+						}]
242
+			})
243
+			
244
+   	   		}
245
+   	   	}
246
+   	   });
247
+   }
248
+  $('.part2Btn').click(function(){
249
+  	partTwo();
250
+  })
251
+//接通率报表part3
62 252
 var jtv = echarts.init(document.getElementById('jtv_num'));
63 253
 jtv.setOption({
64 254
 	title: {
@@ -90,7 +280,8 @@ jtv.setOption({
90 280
                }
91 281
 	},
92 282
 	legend: {
93
-		top: 30,
283
+//		top: 30,
284
+bottom:'bottom',
94 285
 		data: ['接通率'],
95 286
 		textStyle: {
96 287
 			color: '#fff'
@@ -140,7 +331,41 @@ jtv.setOption({
140 331
 	}]
141 332
 
142 333
 });
143
-//通话时长
334
+partThree();
335
+function partThree(){
336
+   	   $.ajax({
337
+   	   	type:"get",
338
+   	   	url:huayi.config.callcenter_url + "info/GetTelRate24ByDate",
339
+   	   	async:true,
340
+   	   	dataType:'json',
341
+   	   	data:{
342
+   	   		date:$('#time4').val()
343
+   	   	},
344
+   	   	success:function(data){
345
+   	   		if(data.state.toLowerCase()=='success'){
346
+   	   			var con=data.data;
347
+// 	   			var part3=data.data.b;
348
+				jtv.setOption({
349
+						xAxis: {
350
+							data:con.hours
351
+						},
352
+						series: [{
353
+							data:con.rates
354
+						}]
355
+						
356
+				})
357
+			
358
+   	   		}
359
+   	   	}
360
+   	   });
361
+   }
362
+  $('.part3Btn').click(function(){
363
+  	partThree();
364
+  })
365
+
366
+
367
+
368
+//通话时长part4
144 369
 var th_nums = echarts.init(document.getElementById('th_nums'));
145 370
 th_nums.setOption({
146 371
 	title: {
@@ -164,8 +389,8 @@ th_nums.setOption({
164 389
 	
165 390
 	},
166 391
 	legend: {
167
-		top: 30,
168
-		data: ['平均通话时长统计'],
392
+		bottom:'bottom',
393
+		data: ['平均通话时长'],
169 394
 		textStyle: {
170 395
 			color: '#fff'
171 396
 		}
@@ -201,7 +426,43 @@ th_nums.setOption({
201 426
 		data: []
202 427
 	}]
203 428
 });
204
-Ajax();
429
+partFour();
430
+function partFour(){
431
+   	   $.ajax({
432
+   	   	type:"get",
433
+   	   	url:huayi.config.callcenter_url + "info/GetAvgTelTime24ByDate",
434
+   	   	async:true,
435
+   	   	dataType:'json',
436
+   	   	data:{
437
+   	   		date:$('#time5').val()
438
+   	   	},
439
+   	   	success:function(data){
440
+   	   		if(data.state.toLowerCase()=='success'){
441
+   	   			var con=data.data;
442
+				th_nums.setOption({
443
+						xAxis: {
444
+							data:con.hours
445
+						},
446
+						series: [{
447
+							data:con.avgtimes
448
+						}]
449
+						
450
+				})
451
+			
452
+				
453
+			
454
+   	   		}
455
+   	   	}
456
+   	   });
457
+   }
458
+  $('.part4Btn').click(function(){
459
+  	partFour();
460
+  })
461
+
462
+
463
+
464
+
465
+//Ajax();
205 466
 function Ajax(){
206 467
 	$('.gdmap-r ul').html('');
207 468
 	$('.gdmap-l ul').html('');
@@ -298,14 +559,14 @@ function Ajax(){
298 559
 					'</li>').appendTo('.gdmap-r ul')
299 560
 				}
300 561
 			})
301
-			 var part1_left=data.data.e;
302
-			 $(part1_left).each(function(i,n){
303
-			 	$('<li>'+
304
-						'<div>'+n.TypeName +'</div>'+
305
-						'<span>'+n.Count +'</span>'+
306
-					'</li>').appendTo('.gdmap-l ul');
307
-			 	
308
-			 })
562
+//			 var part1_left=data.data.e;
563
+//			 $(part1_left).each(function(i,n){
564
+//			 	$('<li>'+
565
+//						'<div>'+n.TypeName +'</div>'+
566
+//						'<span>'+n.Count +'</span>'+
567
+//					'</li>').appendTo('.gdmap-l ul');
568
+//			 	
569
+//			 })
309 570
 			
310 571
 			
311 572
 			var part2=data.data.a;
@@ -324,50 +585,43 @@ function Ajax(){
324 585
 				}
325 586
 				part2_legend.push(n);
326 587
 				part2_ser.push(obj);
327
-//				$('<li>'+
328
-//						'<div>'+n +'</div>'+
329
-//						'<span>'+part2.counts[i] +'</span>'+
330
-//					'</li>').appendTo('.gdmap-l ul');
331
-//					order_total+=part2.counts[i];
332
-			})
333
-//			$('<li style="margin-top:0;">'+
334
-//						'<div>总计</div>'+
335
-//						'<span>'+order_total+'</span>'+
336
-//					'</li>').prependTo('.gdmap-l ul');
337
-			slhw.setOption({
338
-						legend: {
339
-							data: part2_legend
340
-						},
341
-						series: [{
342
-							data: part2_ser
343
-						}]
344 588
 			})
345
-			
346
-			var part3=data.data.b;
347
-				jtv.setOption({
348
-						xAxis: {
349
-							data:part3.hours
350
-						},
351
-						series: [{
352
-							data:part3.rates
353
-						}]
354
-						
355
-				})
356
-			var part4=data.data.c;
357
-				th_nums.setOption({
358
-						xAxis: {
359
-							data:part4.hours
360
-						},
361
-						series: [{
362
-							data:part4.avgtimes
363
-						}]
364
-						
365
-				})
366
-			
589
+
590
+//			slhw.setOption({
591
+//						legend: {
592
+//							data: part2_legend
593
+//						},
594
+//						series: [{
595
+//							data: part2_ser
596
+//						}]
597
+//			})
598
+//			
599
+//			var part3=data.data.b;
600
+//				jtv.setOption({
601
+//						xAxis: {
602
+//							data:part3.hours
603
+//						},
604
+//						series: [{
605
+//							data:part3.rates
606
+//						}]
607
+//						
608
+//				})
609
+//			var part4=data.data.c;
610
+//				th_nums.setOption({
611
+//						xAxis: {
612
+//							data:part4.hours
613
+//						},
614
+//						series: [{
615
+//							data:part4.avgtimes
616
+//						}]
617
+//						
618
+//				})
619
+//			
367 620
 		}
368 621
 
369 622
 	}
370 623
 });
371 624
 }
372 625
 
373
-setInterval(Ajax, huayi.config.indextime);//Ajax调用函数
626
+//setInterval(Ajax, huayi.config.indextime);//Ajax调用函数
627
+})

+ 143 - 151
WebChart/touSuJuBao.html

@@ -1,168 +1,160 @@
1 1
 <!DOCTYPE html>
2 2
 <html>
3
-<head lang="en">
4
-    <meta charset="UTF-8">
5
-    <title></title>
6
-     <script src="Script/Common/huayi.load.js"></script>
7
-    <script src="Script/Common/huayi.config.js"></script>
8
-    <link rel="stylesheet" href="css/bootstrap.min.css" />
9
-    <link rel="stylesheet" href="css/index.css"/>
10
-</head>
11
-<body>
12
-<div class="navcon ">
13
-	<div class="navbox clearfix">
14
-	<p><img src="img/sqLogo.png" class="logo" alt="" />商丘12345数据展示</p>
15
-    <ul class="navl clearfix">
16
-        <li><a href="index.html">来源渠道情况</a></li>
17
-        <li><a  href="jieDanBuMen.html">接单部门情况</a></li>
18
-        <li><a class="active" href="touSuJuBao.html">投诉举报情况</a></li>
19
-        <li><a href="huaWuLiang.html">话务数量情况</a></li>
20
-        <li><a href="zhongXinDaShuJu.html">中心大数据</a></li>
21
-        <!--<li><a href="fuWuZhiShi.html">服务知识</a></li>-->
22
-    </ul>
23
-   </div>
24
-</div>
25
-<div class="tousujb">
26
-	<div class="tsjb-top clearfix">
27
-		<div class="tsjb-tl">
28
-			<!--<div class="biao-title">投诉/举报汇总</div>-->
29
-			<div id="quantity" style="width: 100%;height: 400px;"></div>
30
-		</div>
31
-		<div class="tsjb-tr">
32
-			<div class="biao-title">举报单位统计</div>
33
-			<div id="tsdwgr" style="width: 100%;height: 400px;"></div>
34
-		</div>
35
-	</div>
36
-	<div class="tsjb-bot clearfix">
37
-	
38 3
 
39
-<div class="tsjb-bm" style="float: left;">
40
-	<div class="biao-title">投诉关键字统计</div>
41
-	<ul>
42
-		<!--<li class="clearfix">
43
-			<div class="tsgjz-left">
44
-				<div class="progress">
45
-					<div class="progress-bar progress-bar-bohe" style="width: 100%">
46
-					</div>
47
-				</div>
48
-			</div>
49
-			<div class="tsgjz-right">护照办理<span class="bohe">1785</span></div>
50
-		</li>-->
51
-	</ul>
52
-</div>
4
+	<head lang="en">
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/bootstrap.min.css" />
10
+		<link rel="stylesheet" href="css/index.css" />
11
+		<style>
12
+			.table1 thead tr td {
13
+				background: #16385e;
14
+				color: #aba5a5;
15
+				/*text-align: center;*/
16
+			}
17
+			.table1{
18
+				margin-bottom: 0;
19
+			}
20
+			
21
+			.table1 tbody tr td {
22
+				border: 1px solid #151924;
23
+				color: #aba5a5;
24
+				padding: 7px!important;
25
+				/*text-align: center;*/
26
+			}
27
+			
28
+			.tool_count {
29
+				cursor: pointer;
30
+			}
31
+			.part4_list{
32
+				 border: 1px solid #151924;
33
+				 border-top: 0;
34
+			}
35
+			.part4_list li{
36
+				float: left;
37
+				width: 10%;
38
+				text-align: center;
39
+				color: #ccc;
40
+				cursor: pointer;
41
+				    border-top: 1px solid #151924;
42
+			}
43
+			.depName{
44
+				width: 100px;
45
+			    overflow: hidden;
46
+			    white-space: nowrap;
47
+			    text-overflow: ellipsis;
48
+			    text-align: center;
49
+			    margin: 0 auto;
50
+			}
51
+		</style>
52
+	</head>
53 53
 
54
-<div class="tsjb-bl">
55
-	<div id="tsdw_dw" style="width: 100%;height: 500px;"></div>
56
-</div>
57
-<!--
58
-<div class="tsjb-br" style="float: right;">
59
-			<div class="biao-title">举报关键字统计</div>
60
-	<ul>
61
-		<li class="clearfix">
62
-			<div class="tsgjz-left">
63
-				<div class="progress">
64
-					<div class="progress-bar progress-bar-success " style="width: 10%">
65
-					</div>
66
-				</div>
54
+	<body>
55
+		<div class="navcon ">
56
+			<div class="navbox clearfix">
57
+				<p><img src="img/sqLogo.png" class="logo" alt="" />商丘12345数据展示</p>
58
+				<ul class="navl clearfix">
59
+					<li>
60
+						<a href="index.html">来源渠道情况</a>
61
+					</li>
62
+					<li>
63
+						<a href="jieDanBuMen.html">接单部门情况</a>
64
+					</li>
65
+					<li>
66
+						<a class="active" href="touSuJuBao.html">投诉举报情况</a>
67
+					</li>
68
+					<li>
69
+						<a href="huaWuLiang.html">话务数量情况</a>
70
+					</li>
71
+					<li>
72
+						<a href="zhongXinDaShuJu.html">中心大数据</a>
73
+					</li>
74
+					<!--<li><a href="fuWuZhiShi.html">服务知识</a></li>-->
75
+				</ul>
67 76
 			</div>
68
-			<div class="tsgjz-right">不作为<span class="success">1785</span></div>
69
-		</li>
70
-		<li class="clearfix">
71
-			<div class="tsgjz-left">
72
-				<div class="progress">
73
-					<div class="progress-bar progress-bar-warning " style="width: 20%">
74
-					</div>
75
-				</div>
76
-			</div>
77
-			<div class="tsgjz-right">服务态度<span class="warning">1785</span></div>
78
-		</li>
79
-		<li class="clearfix">
80
-			<div class="tsgjz-left">
81
-				<div class="progress">
82
-					<div class="progress-bar progress-bar-danger " style="width: 30%">
83
-					</div>
84
-				</div>
85
-			</div>
86
-			<div class="tsgjz-right">护照办理<span class="danger">1785</span></div>
87
-		</li>
88
-		<li class="clearfix">
89
-			<div class="tsgjz-left">
90
-				<div class="progress">
91
-					<div class="progress-bar progress-bar-info" style="width: 40%">
92
-					</div>
93
-				</div>
94
-			</div>
95
-			<div class="tsgjz-right">护照办理<span class="info">1785</span></div>
96
-		</li>
97
-		<li class="clearfix">
98
-			<div class="tsgjz-left">
99
-				<div class="progress">
100
-					<div class="progress-bar progress-bar-zise" style="width: 50%">
101
-					</div>
102
-				</div>
103
-			</div>
104
-			<div class="tsgjz-right">护照办理<span class="zise">1785</span></div>
105
-		</li>
106
-		<li class="clearfix">
107
-			<div class="tsgjz-left">
108
-				<div class="progress">
109
-					<div class="progress-bar progress-bar-cheng" style="width: 60%">
110
-					</div>
111
-				</div>
112
-			</div>
113
-			<div class="tsgjz-right">护照办理<span class="cheng">1785</span></div>
114
-		</li>
115
-		<li class="clearfix">
116
-			<div class="tsgjz-left">
117
-				<div class="progress">
118
-					<div class="progress-bar progress-bar-fen" style="width: 70%">
77
+		</div>
78
+		<div class="tousujb">
79
+			<div class="tsjb-top clearfix">
80
+				<div class="tsjb-tl">
81
+					<div class="biao-title">
82
+						<div class="biao-title-l">
83
+							投诉/举报汇总
84
+						</div>
85
+						<div class="biao-title-r">
86
+							<input type="text" id="time1" />至<input type="text" id="time2" />
87
+							<button class="btns part1Btn">搜索</button>
88
+						</div>
89
+
119 90
 					</div>
91
+					<div id="quantity" style="width: 100%;height: 400px;"></div>
120 92
 				</div>
121
-			</div>
122
-			<div class="tsgjz-right">护照办理<span class="fen">1785</span></div>
123
-		</li>
124
-		<li class="clearfix">
125
-			<div class="tsgjz-left">
126
-				<div class="progress">
127
-					<div class="progress-bar progress-bar-dousha " style="width: 80%">
128
-					</div>
93
+				<div class="tsjb-tr">
94
+					<div class="biao-title">举报单位统计</div>
95
+					<div id="tsdwgr" style="width: 100%;height: 400px;"></div>
129 96
 				</div>
130
-			</div>
131
-			<div class="tsgjz-right">护照办理<span class="dousha">1785</span></div>
132
-		</li>
133
-		<li class="clearfix">
134
-			<div class="tsgjz-left">
135
-				<div class="progress">
136
-					<div class="progress-bar progress-bar-qing "  style="width: 90%">
97
+				<!--原来左下角-->
98
+				<div class="tsjb-trr">
99
+					<div class="biao-title">
100
+						<div class="biao-title-l">
101
+							投诉关键字统计
102
+						</div>
103
+						<div class="biao-title-r">
104
+							<input type="text" id="time3" />至<input type="text" id="time4" />
105
+							<button class="btns part3Btn">搜索</button>
106
+						</div>
137 107
 					</div>
108
+					<table class="table1 table">
109
+						<thead>
110
+							<tr>
111
+								<td>排名</td>
112
+								<td>关键字</td>
113
+								<td>投诉量</td>
114
+							</tr>
115
+						</thead>
116
+						<tbody>
117
+
118
+						</tbody>
119
+					</table>
138 120
 				</div>
121
+
139 122
 			</div>
140
-			<div class="tsgjz-right">护照办理<span class="qing">1785</span></div>
141
-		</li>
142
-		<li class="clearfix">
143
-			<div class="tsgjz-left">
144
-				<div class="progress">
145
-					<div class="progress-bar progress-bar-bohe" style="width: 100%">
123
+			<div class="tsjb-bot clearfix">
124
+				<div class="tsjb-bl">
125
+					<div class="biao-title">
126
+						<div class="biao-title-l">
127
+							承办单位统计
128
+						</div>
129
+						<div class="biao-title-r">
130
+							<input type="text" id="time5" />至<input type="text" id="time6" />
131
+							<button class="btns part4Btn">搜索</button>
132
+						</div>
146 133
 					</div>
134
+					<div id="tsdw_dw" style="width: 100%;height: 400px;"></div>
135
+				  <ul class="part4_list clearfix">
136
+				  	<li>
137
+				  		<span class="iconfont icon-tubiao2 color1"></span>
138
+				  		<div class="depName">畜牧局</div>
139
+				  		<div class="tool_count">
140
+				  		<!--<div class="tooltips clearfix"><div class="toolsTitle">咨询建议</div><p>咨询:0</p><p>求助:0</p><p>投诉:0</p><p>建议:0</p><p>表扬:0</p><p>其他:0</p></div>-->
141
+				  		</div>
142
+				  	</li>
143
+				  </ul>
144
+				
145
+				
147 146
 				</div>
148 147
 			</div>
149
-			<div class="tsgjz-right">护照办理<span class="bohe">1785</span></div>
150
-		</li>
151
-	</ul>
152
-			
153
-</div>-->
154 148
 
155
-</div>
156
-	
157
-</div>
149
+		</div>
158 150
 
159
-</body>
160
-<script src="js/jquery.min.js"></script>
161
-<script src="js/echarts.min.js"></script>
162
-<script src="js/highcharts.js"></script>
163
-<script src="js/gray.js"></script>
164
-<script src="js/radialIndicator.js"></script>
165
-<script src="js/coment.js"></script>
166
-<script src="js/tousujubao.js"></script>
167
-</html>
151
+	</body>
152
+	<script src="js/jquery.min.js"></script>
153
+	<script src="js/echarts.min.js"></script>
154
+	<script src="js/highcharts.js"></script>
155
+	<script src="js/gray.js"></script>
156
+	<script src="js/radialIndicator.js"></script>
157
+	<script src="js/coment.js"></script>
158
+	<script src="js/tousujubao.js"></script>
168 159
 
160
+</html>

+ 39 - 25
WebChart/zhongXinDaShuJu.html

@@ -40,35 +40,19 @@
40 40
 		<div class="containers">
41 41
 			<div class="mb clearfix">
42 42
 				<div style="width: 60%;">
43
-					<ul class="gd-tbox clearfix">
44
-						<li class="gd-tit">工单类型各数量</li>
45
-						<!--<li>系统电话量:<span>365</span></li>
46
-						<li>工单类型量:<span>300</span></li>-->
47
-					</ul>
43
+					<div class="biao-title">
44
+						<div class="biao-title-l">
45
+							工单类型各数量
46
+						</div>
47
+						<div class="biao-title-r">
48
+							<input type="text" id="time0" />至<input type="text" id="time1" />
49
+							<button class="btns part1Btn">搜索</button>
50
+						</div>
51
+					</div>
48 52
 					<div class="gdmap clearfix">
49 53
 
50 54
 						<div class="gdmap-l">
51 55
 							<ul>
52
-								<!--<li>
53
-									<div>查询</div>
54
-									<span>100</span>
55
-								</li>
56
-								<li>
57
-									<div>投诉</div>
58
-									<span>200</span>
59
-								</li>
60
-								<li>
61
-									<div>举报</div>
62
-									<span>300</span>
63
-								</li>
64
-								<li>
65
-									<div>建议</div>
66
-									<span>400</span>
67
-								</li>
68
-								<li>
69
-									<div>通话</div>
70
-									<span>500</span>
71
-								</li>-->
72 56
 							</ul>
73 57
 						</div>
74 58
 						<div class="gdmap-m">
@@ -82,6 +66,16 @@
82 66
 					</div>
83 67
 				</div>
84 68
 				<div style="width: 40%;">
69
+					<div class="biao-title">
70
+
71
+						<div class="biao-title-l">
72
+							工单类型统计
73
+						</div>
74
+						<div class="biao-title-r">
75
+							<input type="text" id="time2" />至<input type="text" id="time3" />
76
+							<button class="btns part2Btn">搜索</button>
77
+						</div>
78
+					</div>
85 79
 					<div id="slhw" style="width:100%;height: 400px;"></div>
86 80
 					<!--<div class="slqm">
87 81
 						<div class="sl_title">工单受理排名</div>
@@ -206,9 +200,29 @@
206 200
 					<div id="th_num" style="height: 400px;"></div>
207 201
 				</div>-->
208 202
 				<div>
203
+					<div class="biao-title">
204
+
205
+						<div class="biao-title-l">
206
+							接通率统计
207
+						</div>
208
+						<div class="biao-title-r">
209
+							<input type="text" id="time4" />
210
+							<button class="btns part3Btn">搜索</button>
211
+						</div>
212
+					</div>
209 213
 					<div id="jtv_num" style="height: 400px;"></div>
210 214
 				</div>
211 215
 				<div>
216
+					<div class="biao-title">
217
+
218
+						<div class="biao-title-l">
219
+							通话时长统计
220
+						</div>
221
+						<div class="biao-title-r">
222
+							<input type="text" id="time5" />
223
+							<button class="btns part4Btn">搜索</button>
224
+						</div>
225
+					</div>
212 226
 					<div id="th_nums" style="height: 400px;"></div>
213 227
 				</div>
214 228
 			</div>

+ 0 - 1
WebUI/CallCenterWeb.UI/SystemManager/caoZuoRiZhi.html

@@ -183,7 +183,6 @@
183 183
 			//*****************删除功能结束****************************
184 184
 
185 185
 			initTable(token);
186
-
187 186
 			function initTable(token) {
188 187
 				//先销毁表格
189 188
 				table.bootstrapTable('destroy');