Selaa lähdekoodia

大屏页面添加与修改

liuzhen 6 vuotta sitten
vanhempi
commit
3483025476
3 muutettua tiedostoa jossa 241 lisäystä ja 30 poistoa
  1. 36 1
      WebChart_2.0/css/index.css
  2. 103 27
      WebChart_2.0/index.html
  3. 102 2
      WebChart_2.0/js/index.js

+ 36 - 1
WebChart_2.0/css/index.css

@@ -991,7 +991,7 @@ a {
991 991
 
992 992
 .orderSource ul li {
993 993
 	margin-bottom: 20px;
994
-	margin-top: 50px;
994
+	margin-top: 40px;
995 995
 }
996 996
 
997 997
 .source_kuang {
@@ -1601,6 +1601,7 @@ a {
1601 1601
 	margin-left: 130px;
1602 1602
 	margin-top: 50px;
1603 1603
 }
1604
+.table_date_time,
1604 1605
 .table_box_key{
1605 1606
 	width: 490px;
1606 1607
 	height: 510px;
@@ -1609,6 +1610,33 @@ a {
1609 1610
 	padding: 10px;
1610 1611
 	color: #00E9FF;
1611 1612
 }
1613
+#list>tbody>tr:nth-of-type{
1614
+	background-color:rgba(255, 255, 255, 0);
1615
+}
1616
+.table_date_time table{
1617
+	table-layout:fixed;
1618
+}
1619
+.table_date_time table thead tr td{
1620
+	width: 25%;
1621
+	font-size: 18px;
1622
+	line-height: 32px;
1623
+}
1624
+#list tbody{
1625
+	overflow: hidden;
1626
+}
1627
+.table_date_time table tbody tr td{
1628
+	width: 25%;
1629
+	color: #27B723;
1630
+}
1631
+.table_date_time table tbody {
1632
+	table-layout: fixed;
1633
+}
1634
+/*.table_date_time table tbody tr td:first-child{
1635
+	width: 20%;
1636
+	white-space: nowrap;
1637
+  overflow: hidden;
1638
+  text-overflow: ellipsis;
1639
+}*/
1612 1640
 .table_box_key table thead tr td{
1613 1641
 	width: 33%;
1614 1642
 	font-size: 18px;
@@ -1778,6 +1806,13 @@ a {
1778 1806
 	right: 10px;
1779 1807
 	z-index: 777777;
1780 1808
 }
1809
+.time_box_six img{
1810
+	left: 240px !important;
1811
+}
1812
+.over_date_list{
1813
+	margin-top: 85px !important;
1814
+	margin-left: 1%;
1815
+}
1781 1816
 #bor_dere img{
1782 1817
 	 width:20px;
1783 1818
     height:20px;

+ 103 - 27
WebChart_2.0/index.html

@@ -27,10 +27,11 @@
27 27
 				top: 56px;
28 28
 				left: -63px;
29 29
 			}
30
-			.timeWrapPosi{
30
+			
31
+			.timeWrapPosi {
31 32
 				top: 160px !important;
32
-				
33 33
 			}
34
+			
34 35
 			.slide_right .twotimeWarp {
35 36
 				top: -68px;
36 37
 				left: 0px;
@@ -52,7 +53,7 @@
52 53
 				<div class="swiper-wrapper">
53 54
 					<!--第一屏  工单统计-->
54 55
 					<div class="swiper-slide">
55
-						
56
+
56 57
 						<div class="orderStatistic slideCon_bg clearfix">
57 58
 							<p class="slide_title slide_title1"></p>
58 59
 							<div class="orderCon_left slide_left">
@@ -67,7 +68,7 @@
67 68
 									<li>
68 69
 										<img src="img/num_icon.png" alt="" />
69 70
 										<p class="num_word">
70
-											<span>城关镇</span>
71
+											<span>绿洲</span>
71 72
 											<span class="order_count4" id="hc_count">0</span>
72 73
 										</p>
73 74
 									</li>
@@ -110,7 +111,7 @@
110 111
 										</p>
111 112
 									</li>
112 113
 									<!--<li class="ani" swiper-animate-effect="fadeInLeft" swiper-animate-duration="0.3s" swiper-animate-delay="5.5s">-->
113
-									
114
+
114 115
 									<!--<li class="ani" swiper-animate-effect="fadeInLeft" swiper-animate-duration="0.3s" swiper-animate-delay="6s">-->
115 116
 									<li>
116 117
 										<img src="img/num_icon.png" alt="" />
@@ -141,8 +142,7 @@
141 142
 										</p>
142 143
 									</li>-->
143 144
 									<!--<li class="ani" swiper-animate-effect="fadeInLeft" swiper-animate-duration="0.3s" swiper-animate-delay="6.5s">-->
144
-									
145
-									
145
+
146 146
 								</ul>
147 147
 							</div>
148 148
 							<div class="orderCon_middle slide_middle">
@@ -172,7 +172,7 @@
172 172
 								<div class="timeWrap">
173 173
 									<div class="time_box pull-right form-inline">
174 174
 										日期<input type="text" id="time1" class="times" />
175
-										<img src="img/rili.png" class="data-input-icon1"/>
175
+										<img src="img/rili.png" class="data-input-icon1" />
176 176
 									</div>
177 177
 								</div>
178 178
 								<ul id="right_ri">
@@ -278,6 +278,9 @@
278 278
 									<li class="clearfix">
279 279
 										<div class="line_wrap line four_line fourLeft_line"></div>
280 280
 									</li>
281
+									<li class="clearfix">
282
+										<div class="line_wrap line four_line fiveLeft_line"></div>
283
+									</li>
281 284
 								</ul>
282 285
 							</div>
283 286
 							<div class="source_middle slide_middle">
@@ -289,7 +292,7 @@
289 292
 								<div class="timeWrap twotimeWarp">
290 293
 									<div class="time_box pull-right form-inline">
291 294
 										日期<input type="text" id="time2" class="times" />
292
-										<img src="img/rili.png" class="data-input-icon2"/>
295
+										<img src="img/rili.png" class="data-input-icon2" />
293 296
 									</div>
294 297
 								</div>
295 298
 								<ul>
@@ -320,7 +323,7 @@
320 323
 							<div class="timeWrap twotimeWarp" style="float: right; margin-right: 200px; margin-top: -85px;">
321 324
 								<div class="time_box pull-right form-inline time_box_three">
322 325
 									日期<input type="text" id="time3" class="times" />
323
-									<img src="img/rili.png" class="data-input-icon3"/>
326
+									<img src="img/rili.png" class="data-input-icon3" />
324 327
 								</div>
325 328
 							</div>
326 329
 							<div class="orderTtype_Con">
@@ -423,7 +426,7 @@
423 426
 
424 427
 					<!--第四屏  工单状态-->
425 428
 					<div class="swiper-slide">
426
-						
429
+
427 430
 						<div class="slideCon_bg orderState clearfix">
428 431
 							<p class="slide_title slide_title4"></p>
429 432
 
@@ -468,7 +471,7 @@
468 471
 
469 472
 								</ul>
470 473
 							</div>
471
-							
474
+
472 475
 							<div class="orderCon_middle slide_middle">
473 476
 
474 477
 								<div class="earth_box">
@@ -478,12 +481,12 @@
478 481
 									<div class="earth"></div>
479 482
 								</div>
480 483
 							</div>
481
-							
484
+
482 485
 							<div class="orderCon_right slide_right">
483 486
 								<div class="timeWrap" style="left: 5px;">
484 487
 									<div class="time_box pull-right form-inline">
485 488
 										日期<input type="text" id="time4" class="times" />
486
-										<img src="img/rili.png" class="data-input-icon4"/>
489
+										<img src="img/rili.png" class="data-input-icon4" />
487 490
 									</div>
488 491
 								</div>
489 492
 								<ul class="orderState_ul">
@@ -523,16 +526,15 @@
523 526
 										</div>
524 527
 									</li>
525 528
 								</ul>
526
-								
529
+
527 530
 							</div>
528 531
 						</div>
529
-						
532
+
530 533
 					</div>
531 534
 
532 535
 					<!--第五屏  话务量统计-->
533 536
 					<div class="swiper-slide">
534
-						
535
-						
537
+
536 538
 						<div class="slideCon_bg trafficVolume clearfix">
537 539
 							<p class="slide_title slide_title5"></p>
538 540
 							<div class="orderCon_left slide_left">
@@ -548,13 +550,12 @@
548 550
 								<div class="timeWrap lasttimeWrap timeWrapPosi">
549 551
 									<div class="time_box pull-right form-inline" id="bor_dere">
550 552
 										日期
551
-										<input type="text" id="test6" class="times lasttime" style="margin-right: 50px;"/>
552
-										<img src="img/rili.png" class="data-input-icon5"/>
553
-										部门
553
+										<input type="text" id="test6" class="times lasttime" style="margin-right: 50px;" />
554
+										<img src="img/rili.png" class="data-input-icon5" /> 部门
554 555
 										<select class="depart selects"></select>
555 556
 									</div>
556 557
 								</div>
557
-								
558
+
558 559
 								<div class="keyBottom_left pull-left">
559 560
 									<div class="table_box table_box_key">
560 561
 										<table class="table">
@@ -585,19 +586,94 @@
585 586
 							</div>
586 587
 						</div>
587 588
 					</div>
588
-					
589
-					
589
+
590
+					<!--第六屏  办理情况统计-->
591
+					<div class="swiper-slide">
592
+
593
+						<div class="slideCon_bg orderState clearfix">
594
+							<p class="slide_title slide_title4"></p>
595
+
596
+							<div class="orderCon_left slide_left" style="width:50%;">
597
+								<div class="timeWrap" style="left: 5px;margin-top: 5px;">
598
+									<div class="time_box pull-left form-inline time_box_six">
599
+										日期<input type="text" id="time6" class="times" style="width: 195px;" />
600
+										<img src="img/rili.png" class="data-input-icon6" /> 部门
601
+										<select class="depart_six selects"></select>
602
+									</div>
603
+								</div>
604
+								<div class="keyBottom_left pull-left" style="margin-left: 0;">
605
+									<div class="table_box table_date_time" style="width: 570px;">
606
+										<table class="table">
607
+											<colgroup>
608
+												<col style="width: 120px;" />
609
+												<col/>
610
+											</colgroup>
611
+											<thead class="thead">
612
+												<tr>
613
+													<td>部门名称</td>
614
+													<td>延期数量</td>
615
+													<td>超期数量</td>
616
+													<td>不满意数量</td>
617
+												</tr>
618
+											</thead>
619
+										</table>
620
+										<div class="scroll_table_list" style="width: 100%;height: 460px; overflow: hidden;">
621
+											<table class="table">
622
+												<colgroup>
623
+													<col style="width: 120px;" />
624
+													<col/>
625
+												</colgroup>
626
+												<tbody>
627
+												</tbody>
628
+											</table>
629
+										</div>
630
+									</div>
631
+								</div>
632
+							</div>
633
+
634
+							<div class=" pull-left over_date_list" >
635
+								<div class="table_box table_box_key" style="width: 570px;">
636
+									<table class="table">
637
+										<colgroup>
638
+											<col style="width: 120px;" />
639
+											<col/>
640
+										</colgroup>
641
+										<thead class="thead">
642
+											<tr>
643
+												<td>工单编号</td>
644
+												<td>举办单位</td>
645
+												<td>超时时长</td>
646
+											</tr>
647
+										</thead>
648
+									</table>
649
+									<div class="scroll_table_right" style="width: 100%;height: 460px; overflow: hidden;">
650
+										<table class="table">
651
+											<colgroup>
652
+												<col style="width: 120px;" />
653
+												<col/>
654
+											</colgroup>
655
+											<tbody>
656
+											</tbody>
657
+										</table>
658
+									</div>
659
+								</div>
660
+
661
+							</div>
662
+						</div>
663
+
664
+					</div>
590 665
 				</div>
591
-				
666
+
592 667
 				<div class="swiper-button-prev"></div>
593 668
 				<div class="swiper-pagination"></div>
594 669
 				<div class="swiper-button-next"></div>
595
-				
670
+
596 671
 			</div>
597
-			
672
+
598 673
 		</div>
599 674
 		<script src="js/swiper.min.js"></script>
600 675
 		<script src="js/swiper.animate1.0.3.min.js"></script>
676
+		<script src="js/jquery.min.js"></script>
601 677
 		<script src="js/countUp.js"></script>
602 678
 		<script src="plugins/numbergd/index.js"></script>
603 679
 		<script src="js/tagcloud.js"></script>

+ 102 - 2
WebChart_2.0/js/index.js

@@ -29,6 +29,7 @@
29 29
 	})
30 30
 	Ajax();
31 31
 	deprtment();// 第五屏部门下拉
32
+	deprtment_six();// 第六屏部门下拉
32 33
 	laydate.render({
33 34
 					elem: '#time1',
34 35
 					eventElem:'.data-input-icon1',
@@ -83,6 +84,17 @@
83 84
 						fiveScreen(value && value.split(' ~ ')[0], value && value.split(' ~ ')[1])
84 85
 					}
85 86
 				});
87
+	laydate.render({
88
+					elem: '#time6',
89
+					eventElem:'.data-input-icon6',
90
+		            trigger:'click',
91
+					range: '~',
92
+					format: 'yyyy-MM-dd',
93
+					theme: '#114a97',
94
+					done: function(value, date) {
95
+						sixScreen(value && value.split(' ~ ')[0], value && value.split(' ~ ')[1])
96
+					}
97
+				});
86 98
 })
87 99
 var cityObj = {
88 100
 		ele1: "xyx_count",
@@ -474,7 +486,94 @@ function keyWord(sd, ed) {
474 486
 			}
475 487
 		});
476 488
 	}
477
-	
489
+	//第六屏js
490
+	function sixScreen(sd,ed) {
491
+        workOrder(sd, ed);
492
+        workOrder_right(sd,ed)
493
+	} 
494
+	$(".depart_six").change(function() {
495
+        workOrder($('#time6').val() && $('#time6').val().split(' ~ ')[0], $('#time6').val() && $('#time6').val().split(' ~ ')[1]);
496
+        workOrder_right($('#time6').val() && $('#time6').val().split(' ~ ')[0], $('#time6').val() && $('#time6').val().split(' ~ ')[1]);
497
+	})
498
+	//部门下拉框
499
+	function deprtment_six () {
500
+		$.getJSON( "http://192.168.4.18:5001/info/GetDeptCountDate", function(result) {
501
+			if(result.state == "success") {
502
+				goodslist = result.data;
503
+				$(".depart_six").empty();
504
+				$('<option value="">请选择部门</option>').appendTo($(".depart_six"));
505
+				$(goodslist).each(function(i, n) {
506
+					$('<option value="' + n.deptid 
507
+					+ '">' + n.deptname 
508
+					+ '</option>').appendTo($(".depart_six"));
509
+				})
510
+			}
511
+		});
512
+	}
513
+	function workOrder(sd,ed){
514
+		$.ajax({
515
+			type: "get",
516
+			url: "http://192.168.4.18:5001/info/GetDeptCountDate",
517
+			async: true,
518
+			dataType: 'json',
519
+            data: {
520
+                start: sd,
521
+                end: ed,
522
+                deptid: $('.depart_six').val(),
523
+//              keyid: $(".tagcloud_bjShine").eq(0).attr("index")
524
+			},
525
+			success: function(data) {
526
+				if(data.state == 'success') {
527
+					$('.scroll_table_list tbody').html('');
528
+					var con = data.data;
529
+                    $(con).each(function (j, n) {
530
+                        var rate = '';
531
+                        if (n.rate) { rate = n.rate;}
532
+                        var str = '<tr><td class="list">' + n.deptname + '</td><td>' + n.delaycounts + '</td><td>' + n.overcounts + '</td><td>' + n.nosatisfiedcounts + '</td></tr>'
533
+						$('.scroll_table_list tbody').append(str);
534
+						$('.list').css({'white-space':'nowrap','overflow':'hidden','text-overflow':'ellipsis'})
535
+					})
536
+					$(".scroll_table_list").Scroll({
537
+						line: 1,
538
+						speed: 500,
539
+						timer: 2000
540
+					});
541
+				}
542
+			}
543
+		});
544
+}
545
+//第六屏右侧列表
546
+	function workOrder_right(sd,ed){
547
+		$.ajax({
548
+			type: "get",
549
+			url: "http://192.168.4.18:5001/Info/GetOverdueList",
550
+			async: true,
551
+			dataType: 'json',
552
+            data: {
553
+                start: sd,
554
+                end: ed,
555
+                deptid: $('.depart_six').val(),
556
+//              keyid: $(".tagcloud_bjShine").eq(0).attr("index")
557
+			},
558
+			success: function(data) {
559
+				if(data.state == 'success') {
560
+					$('.scroll_table_right tbody').html('');
561
+					var con = data.rows;
562
+                    $(con).each(function (j, n) {
563
+                        var rate = '';
564
+                        if (n.rate) { rate = n.rate;}
565
+                        var str = '<tr><td>' + n.F_WorkOrderId + '</td><td>' + n.DeptName + '</td><td>' + n.CSSecond + '</td></tr>'
566
+						$('.scroll_table_right tbody').append(str);
567
+					})
568
+					$(".scroll_table_right").Scroll({
569
+						line: 1,
570
+						speed: 500,
571
+						timer: 2000
572
+					});
573
+				}
574
+			}
575
+		});
576
+	}
478 577
 //	右侧部门
479 578
 function keyWordDetail(sd, ed) {
480 579
 		$.ajax({
@@ -498,7 +597,7 @@ function keyWordDetail(sd, ed) {
498 597
                         var str = '<tr><td>' + n.deptname + '</td><td>' + n.acceptcount + '</td><td>' + rate + '</td></tr>'
499 598
 						$('.scroll_table tbody').append(str);
500 599
 					})
501
-					$(".scroll_table").Scroll({
600
+					$(".scroll_table_list").Scroll({
502 601
 						line: 1,
503 602
 						speed: 500,
504 603
 						timer: 2000
@@ -521,4 +620,5 @@ function keyWordDetail(sd, ed) {
521 620
 		threeScreen();
522 621
 		fourScreen($('#time4').val() && $('#time4').val().split(' ~ ')[0], $('#time4').val() && $('#time4').val().split(' ~ ')[1])
523 622
         fiveScreen($('#test6').val() && $('#test6').val().split(' ~ ')[0], $('#test6').val() && $('#test6').val().split(' ~ ')[1])
623
+        sixScreen($('#time6').val() && $('#time6').val().split(' ~ ')[0], $('#time6').val() && $('#time6').val().split(' ~ ')[1])
524 624
 }