Просмотр исходного кода

大屏数据统计增加筛选项

miaofuhao лет назад: 2
Родитель
Сommit
658dce6e8d

+ 2 - 2
WebChartNewest/Script/Common/huayi.config.js

@@ -2,8 +2,8 @@ if (huayi == undefined) {
2 2
     var huayi = {};
3 3
 }
4 4
 huayi.config = {
5
-	 callcenter_url: "http://192.168.8.9:1042/",//生产环境  
6
-//	callcenter_url: "http://docking.zwfw.anyang.gov.cn:65527/",
5
+//	 callcenter_url: "http://192.168.8.9:1042/",//生产环境  
6
+	callcenter_url: "http://docking.zwfw.anyang.gov.cn:65527/",
7 7
     socket_ip: "61.54.2.122",//ip 61.54.2.122:8081
8 8
     socket_port: "8081",//端口
9 9
     indextime: 30000//报表刷新时间

+ 9 - 1
WebChartNewest/css/index.css

@@ -1071,5 +1071,13 @@ input::-webkit-input-placeholder{
1071 1071
 	width: 110px;
1072 1072
 }
1073 1073
 
1074
-
1074
+/*2023-10-08话务数据统计*/
1075
+#secondCut{
1076
+	top: 15px;
1077
+	background: none;
1078
+	color: #00f6ff;
1079
+}
1080
+#secondCut option{
1081
+	background: #022278;
1082
+}
1075 1083
 

+ 14 - 6
WebChartNewest/index.html

@@ -34,18 +34,24 @@
34 34
 					<div class="title_img">
35 35
 						<h2>话务数据统计</h2>
36 36
 					</div>
37
-					<div class="dataT act hwsjtj" style="display: none;">
37
+					<!--<div class="dataT act hwsjtj" style="display: none;">
38 38
 						<label class="dataAct" data-pos="1" indexTitle="话务数据统计1">
39 39
 							今日<span class="day active"></span>
40 40
 						</label><br>
41 41
 						<label class="dataAct" data-pos="2" indexTitle="话务数据统计1">
42 42
 							本月<span class="month"></span>
43 43
 						</label>
44
-					</div>
44
+					</div>-->
45 45
 					<div class="btn_time">
46
-						<span class="timeTraffic" data-state='0'>切换</span>
46
+						<!--<span class="timeTraffic" data-state='0'>切换</span>
47 47
 						<span class="daySeat" data-state='1'>切换</span>
48
-						<img src="./image/switch.png" alt="">
48
+						<img src="./image/switch.png" alt="">-->
49
+						<select class="form-control" id="secondCut">
50
+							<option value="">请选择</option>
51
+							<option value="0">0秒</option>
52
+							<option value="10">10秒</option>
53
+							<option value="15">15秒</option>
54
+						</select>
49 55
 					</div>
50 56
 					<div id="traffic" style="width: 100%;height:240px;"></div>
51 57
 					<div style="width: 100%;height:240px; display: flex;" id="timeTraffic">
@@ -920,6 +926,8 @@
920 926
 <script src="./js/laydate/laydate.js"></script>
921 927
 <!--2023-08-23页面初始化后执行-->
922 928
 <script src="js/documentDready.js"></script>
929
+<!--2023-10-08页面点击切换事件-->
930
+<script src=""></script>
923 931
 <!-- 首页js -->
924 932
 <script src="js/index.js"></script>
925 933
 <script src="js/main.js"></script>
@@ -933,8 +941,8 @@
933 941
 <script src="js/workOrder.js"></script>
934 942
 <!--当日话务数据统计修改-->
935 943
 <script src="js/trafficData.js"></script>
936
-<!--2023-06-01 切换年月日-->
937
-<script src="js/newAdd/timetype.js"></script>
944
+<!--2023-06-01 切换年月日 以及点击事件-->
945
+<script src="js/newAdd/operationEvent.js"></script>
938 946
 <!-- 2023-06-06 坐席监控修改 -->
939 947
 <script src="js/newSeats.js"></script>
940 948
 

+ 3 - 0
WebChartNewest/js/newAdd/timetype.js

@@ -1,4 +1,7 @@
1 1
 //话务点击
2
+ $('#secondCut').change(function(){
3
+  getworkOrder()           
4
+});
2 5
 $('.dataAct').click(function () {
3 6
 	var indexTitle = $(this).attr('indexTitle')
4 7
 	if($(this).attr('data-pos') == '1'){

+ 1 - 0
WebChartNewest/js/trafficData.js

@@ -25,6 +25,7 @@ function getworkOrder() {
25 25
 		url: huayi.config.callcenter_url + "/InfoNew/GetTelCountByNow",
26 26
 		data: {
27 27
 			token: $.cookie("token"),
28
+			second:$('#secondCut').val(),
28 29
 			timetype: telCountByNowType
29 30
 		},
30 31
 		callBack: function(res) {

+ 0 - 1
WebUI/CallCenterWeb.UI/js/reportCommon/common.js

@@ -14,7 +14,6 @@ $("#workorderlist").on("click-row.bs.table", function(e, row, ele) {
14 14
 });
15 15
 
16 16
 function initTable() {
17
-	console.log(apiUrl)
18 17
 	$.ajax({
19 18
 		url: huayi.config.callcenter_url + apiUrl,
20 19
 		type: 'get',