Bladeren bron

修改搜索参数,搜索日期图标点击事件

jinquanwu 6 jaren geleden
bovenliggende
commit
869a043084

+ 2 - 2
WebChart_2.0/Script/Common/huayi.config.js

@@ -2,8 +2,8 @@ if (huayi == undefined) {
2 2
     var huayi = {};
3 3
 }
4 4
 huayi.config = {
5
-	
6
-    callcenter_url: "http://192.168.4.18:4030/",//测试环境
5
+	callcenter_url: "http://192.168.4.18:4678/",//测试环境
6
+//  callcenter_url: "http://192.168.4.18:4030/",//测试环境
7 7
     // callcenter_url: "http://47.105.70.190:8889/",//生产环境
8 8
 //  socket_ip: "192.168.5.8",//ip
9 9
     socket_ip: "192.168.4.3",//ip

+ 1 - 0
WebChart_2.0/TelephoneDetails.html

@@ -42,6 +42,7 @@
42 42
 					</div>
43 43
 					<div class="time_box pull-right form-inline">
44 44
 						日期<input type="text" id="time1" class="times" />
45
+						<img src="img/rili.png" class="data-input-icon1"/>
45 46
 					</div>
46 47
 				</div>
47 48
 				<div id="sitProportion" style=" width: 100%;height: 400px;"></div>

+ 1 - 0
WebChart_2.0/complaintsReport.html

@@ -137,6 +137,7 @@
137 137
 					</div>
138 138
 					<div class="time_box pull-right form-inline">
139 139
 						日期<input type="text" id="time2" class="times" />
140
+						<img src="img/rili.png" class="data-input-icon1"/>
140 141
 					</div>
141 142
 				</div>
142 143
 				<div id="part_1" style="width: 100%;height: 400px;"></div>

+ 18 - 2
WebChart_2.0/css/index.css

@@ -1794,7 +1794,23 @@ a {
1794 1794
 	margin-right: 30px;
1795 1795
 }
1796 1796
 
1797
-.time_box:before {
1797
+.time_box img{
1798
+    width:20px;
1799
+    height:20px;
1800
+	position:absolute;
1801
+	top:3px;
1802
+	right: 10px;
1803
+	z-index: 777777;
1804
+}
1805
+#bor_dere img{
1806
+	 width:20px;
1807
+    height:20px;
1808
+	position:absolute;
1809
+	top:4px;
1810
+	right: 270px;
1811
+	z-index: 777777;
1812
+}
1813
+/*.time_box:before {
1798 1814
 	position: absolute;
1799 1815
 	left: 248px;
1800 1816
 	top: 7px;
@@ -1805,7 +1821,7 @@ a {
1805 1821
 	border-top: 10px solid #00e9ff;
1806 1822
 	border-right: 7px solid transparent;
1807 1823
 	border-left: 7px solid transparent;
1808
-}
1824
+}*/
1809 1825
 .time_box_three:before{
1810 1826
 	left: 192px;
1811 1827
 }

BIN
WebChart_2.0/img/rili.png


+ 7 - 1
WebChart_2.0/index.html

@@ -201,6 +201,7 @@
201 201
 								<div class="timeWrap">
202 202
 									<div class="time_box pull-right form-inline">
203 203
 										日期<input type="text" id="time1" class="times" />
204
+										<img src="img/rili.png" class="data-input-icon1"/>
204 205
 									</div>
205 206
 								</div>
206 207
 								<ul id="right_ri">
@@ -354,6 +355,7 @@
354 355
 								<div class="timeWrap twotimeWarp">
355 356
 									<div class="time_box pull-right form-inline">
356 357
 										日期<input type="text" id="time2" class="times" />
358
+										<img src="img/rili.png" class="data-input-icon2"/>
357 359
 									</div>
358 360
 								</div>
359 361
 								<ul>
@@ -385,7 +387,9 @@
385 387
 							<p class="slide_title slide_title3"></p>
386 388
 							<div class="timeWrap twotimeWarp" style="float: right; margin-right: 200px;">
387 389
 								<div class="time_box pull-right form-inline time_box_three" style="margin-top: -86px;">
390
+									
388 391
 									日期<input type="text" id="time3" class="times" />
392
+									<img src="img/rili.png" class="data-input-icon3"/>
389 393
 								</div>
390 394
 							</div>
391 395
 							<div class="orderTtype_Con">
@@ -548,6 +552,7 @@
548 552
 								<div class="timeWrap" style="left: 5px;">
549 553
 									<div class="time_box pull-right form-inline">
550 554
 										日期<input type="text" id="time4" class="times" />
555
+										<img src="img/rili.png" class="data-input-icon4"/>
551 556
 									</div>
552 557
 								</div>
553 558
 								<ul class="orderState_ul">
@@ -610,9 +615,10 @@
610 615
 							</div>
611 616
 							<div class="orderCon_right slide_right">
612 617
 								<div class="timeWrap lasttimeWrap timeWrapPosi">
613
-									<div class="time_box pull-right form-inline">
618
+									<div class="time_box  pull-right form-inline" id="bor_dere">
614 619
 										日期
615 620
 										<input type="text" id="test6" class="times lasttime" style="margin-right: 50px;"/>
621
+										<img src="img/rili.png" class="data-input-icon5"/>
616 622
 										部门
617 623
 										<select class="depart selects"></select>
618 624
 									</div>

+ 2 - 0
WebChart_2.0/js/TelephoneDetails.js

@@ -1,6 +1,8 @@
1 1
 	$(function(){
2 2
 		laydate.render({
3 3
 		elem: '#time1',
4
+		eventElem:'.data-input-icon1',
5
+		trigger:'click',
4 6
 		range: '~',
5 7
 		theme: '#114a97',
6 8
 		    done: function(value, date) {

+ 2 - 0
WebChart_2.0/js/complaintsReport.js

@@ -2,6 +2,8 @@ $(function() {
2 2
 	laydate.render({
3 3
 		elem: '#time2',
4 4
 		range: '~',
5
+		eventElem:'.data-input-icon1',
6
+		trigger:'click',
5 7
 		format: 'yyyy-MM-dd',
6 8
 		theme: '#114a97',
7 9
 			done: function(value, date) {

+ 10 - 0
WebChart_2.0/js/index.js

@@ -31,6 +31,8 @@
31 31
 	deprtment();// 第五屏部门下拉
32 32
 	laydate.render({
33 33
 					elem: '#time1',
34
+					eventElem:'.data-input-icon1',
35
+		            trigger:'click',
34 36
 					range: '~',
35 37
 					format: 'yyyy-MM-dd',
36 38
 					theme: '#114a97',
@@ -40,6 +42,8 @@
40 42
 				});
41 43
 	laydate.render({
42 44
 					elem: '#time2',
45
+			        eventElem:'.data-input-icon2',
46
+		            trigger:'click',
43 47
 					range: '~',
44 48
 					format: 'yyyy-MM-dd',
45 49
 					theme: '#114a97',
@@ -49,6 +53,8 @@
49 53
 				});
50 54
 	laydate.render({
51 55
 					elem: '#time3',
56
+				    eventElem:'.data-input-icon3',
57
+		            trigger:'click',
52 58
 					format: 'yyyy-MM-dd',
53 59
 					theme: '#114a97',
54 60
 					done: function(value) {
@@ -57,6 +63,8 @@
57 63
 				});
58 64
 	laydate.render({
59 65
 					elem: '#time4',
66
+					eventElem:'.data-input-icon4',
67
+		            trigger:'click',
60 68
 					range: '~',
61 69
 					format: 'yyyy-MM-dd',
62 70
 					theme: '#114a97',
@@ -66,6 +74,8 @@
66 74
 				});
67 75
 	laydate.render({
68 76
 					elem: '#test6',
77
+					eventElem:'.data-input-icon5',
78
+		            trigger:'click',
69 79
 					range: '~',
70 80
 					format: 'yyyy-MM-dd',
71 81
 					theme: '#114a97',

+ 6 - 3
WebChart_2.0/js/receiptDepartment.js

@@ -1,6 +1,8 @@
1 1
 $(function() {
2 2
 	laydate.render({
3 3
 		elem: '#phone_time',
4
+		eventElem:'.data-input-icon1',
5
+		trigger:'click',
4 6
 		range: '~',
5 7
 		theme: '#114a97',
6 8
 		done: function(value, date) {
@@ -271,14 +273,15 @@ sitProportion.setOption({
271 273
 
272 274
 });
273 275
 
274
-function partThree(dates) {
276
+function partThree(starts, ends) {
275 277
 	$.ajax({
276 278
 		type: "get",
277
-		url: huayi.config.callcenter_url + "info/GetDealCount24ByDate",
279
+		url: huayi.config.callcenter_url + "info/GetDealDate",
278 280
 		dataType: 'json',
279 281
 		async: true,
280 282
 		data: {
281
-			date: dates,
283
+			start: starts,
284
+			end: ends,
282 285
 		},
283 286
 		success: function(data) {
284 287
 			if(data.state.toLowerCase() == 'success') {

+ 7 - 4
WebChart_2.0/js/sourceChannel.js

@@ -2,6 +2,8 @@ $(function() {
2 2
 				
3 3
 				laydate.render({
4 4
 					elem: '#time2',
5
+					eventElem:'.data-input-icon1',
6
+		            trigger:'click',
5 7
 					range: '~',
6 8
 					format: 'yyyy-MM-dd',
7 9
 					theme: '#114a97',
@@ -80,14 +82,15 @@ $(function() {
80 82
 				},
81 83
 				series: []
82 84
 			});
83
-			function partOne(dates) {
85
+			function partOne(start,end) {
84 86
 				$.ajax({
85 87
 					type: "get",
86
-					url: huayi.config.callcenter_url + "info/GetAreaCount24ByDate",
88
+					url: huayi.config.callcenter_url + "info/GetCountByDate",
87 89
 					async: true,
88 90
 					dataType: "json",
89 91
 					data: {
90
-						date: dates
92
+						start:start,
93
+						end:end
91 94
 					},
92 95
 					success: function(data) {
93 96
 						if(data.state.toLowerCase() == "success") {
@@ -371,7 +374,7 @@ $(function() {
371 374
 			}
372 375
 		
373 376
 			function Ajax(){
374
-				partOne($('#time2').val()&& $('#time2').val().split(' ~ ')[0])
377
+				partOne($('#time2').val()&& $('#time2').val().split(' ~ ')[0]),
375 378
 				partTwo($('#time2').val()&& $('#time2').val().split(' ~ ')[0],$('#time2').val() && $('#time2').val().split(' ~ ')[1]);
376 379
 				partThree($('#time2').val() && $('#time2').val().split(' ~ ')[0], $('#time2').val() && $('#time2').val().split(' ~ ')[1])
377 380
 		}

+ 1 - 0
WebChart_2.0/receiptDepartment.html

@@ -79,6 +79,7 @@
79 79
 					</div>
80 80
 					<div class="time_box pull-right form-inline">
81 81
 						日期<input type="text" id="phone_time" class="times"/>
82
+						<img src="img/rili.png" class="data-input-icon1"/>
82 83
 					</div>
83 84
 					<!--<div class="time_box pull-right form-inline selects_box">
84 85
 						筛选<select name="" class="selects" id="">

+ 7 - 4
WebChart_2.0/sourceChannel.html

@@ -96,7 +96,7 @@
96 96
 			}
97 97
 			
98 98
 			.bottom_right ul li:nth-of-type(1) {
99
-				margin-top: 50px;
99
+				/*margin-top: 50px;*/
100 100
 				background: url(img/sbx_line0.png) no-repeat;
101 101
 			}
102 102
 			
@@ -207,7 +207,7 @@
207 207
 			
208 208
 			
209 209
 			.complaint_typeL{
210
-				height:355px;
210
+				height:324px;
211 211
 				/*background:red;*/
212 212
 				white-space: nowrap;
213 213
 			    -webkit-overflow-scrolling: touch;
@@ -215,6 +215,7 @@
215 215
 			    overflow-x: hidden;
216 216
 			    padding: 0 0.1rem;
217 217
 			    margin-bottom: -.2rem;
218
+			    margin-top:28px;
218 219
 			    overflow: -moz-scrollbars-none;
219 220
 			    overflow: -moz-scrollbars-none;
220 221
 			}
@@ -222,7 +223,7 @@
222 223
 				display: none;
223 224
 			}
224 225
 			.complaint_typeR{
225
-				height:355px;
226
+				height:324px;
226 227
 				/*background:red;*/
227 228
 				
228 229
 				
@@ -232,6 +233,7 @@
232 233
 			    overflow-x: hidden;
233 234
 			    padding: 0 0.1rem;
234 235
 			    margin-bottom: -.2rem;
236
+			    margin-top:28px;
235 237
 			    overflow: -moz-scrollbars-none;
236 238
 			    overflow: -moz-scrollbars-none;
237 239
 			}
@@ -276,6 +278,7 @@
276 278
 					</div>
277 279
 					<div class="time_box pull-right form-inline">
278 280
 						日期<input type="text" id="time2" class="times" />
281
+						<img src="img/rili.png" class="data-input-icon1"/>
279 282
 					</div>
280 283
 				</div>
281 284
 				<div id="part_1" style="width: 100%;height: 400px;"></div>
@@ -321,7 +324,7 @@
321 324
 							<li> <span class="type_name">咨询</span> <span class="type_count">0</span></li>
322 325
 						</ul>
323 326
 						<!--投诉分类统计-->
324
-						<div class="pull-left" id="part3" style=" width: 50%;height: 340px;"></div>
327
+						<div class="pull-left" id="part3" style=" width: 50%;height: 340px;margin-top: 25px;"></div>
325 328
 						
326 329
 						<ul class="pull-left complaint_typeR" style=" width:25%; position: absolute;right: -18px;top:0;">
327 330
 							<li>