zhaomin %!s(int64=4) %!d(string=před) roky
rodič
revize
a696b61de4

+ 14 - 0
WebChartNew/1.html

@@ -0,0 +1,14 @@
1
+<!DOCTYPE html>
2
+<html>
3
+	<head>
4
+		<meta charset="utf-8">
5
+		<title></title>
6
+	</head>
7
+	<body>
8
+	</body>
9
+	<script type="text/javascript">
10
+		document.onclick=function(){
11
+			console.log(Math.floor(Math.random()*16));
12
+		}
13
+	</script>
14
+</html>

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

@@ -8,8 +8,8 @@ huayi.config = {
8 8
 // callcenter_url: "http://12345.shangqiu.gov.cn:8819/",//生产环境
9 9
     //callcenter_url: "http://localhost:63662/"//测试环境
10 10
 	callcenter_url: "http://125.45.12.146:9998/",
11
-    // socket_ip: "125.45.12.160",//ip
12
-    socket_ip: "192.168.8.7",//ip
11
+    socket_ip: "125.45.12.160",//ip
12
+    // socket_ip: "192.168.8.7",//ip
13 13
 	// socket_ip: "121.296.219.217",//ip
14 14
     socket_port: "8081",//端口
15 15
     menuworktime: 30000,//菜单工单数量刷新间隔

+ 23 - 8
WebChartNew/css/test-1920.css

@@ -59,6 +59,9 @@ div {
59 59
 	height: 290px;
60 60
 	background-size: cover;
61 61
 }
62
+/* .topRec_List{
63
+	font-size: 16px !important;
64
+} */
62 65
 .topRec_List dl,
63 66
 .maquee {
64 67
 	width: 90%;
@@ -71,7 +74,7 @@ div {
71 74
 	float: left;
72 75
 	text-align: left;
73 76
 	color: #fff;
74
-	font-size: 14px;
77
+	font-size: 16px;
75 78
 	background-color: #075871;
76 79
 	padding-left: 20px;
77 80
 	box-sizing: border-box;
@@ -110,7 +113,7 @@ div {
110 113
 	height: 40px;
111 114
 	line-height: 40px;
112 115
 	text-align: left;
113
-	font-size: 12px;
116
+	font-size: 14px;
114 117
 	color: #fff;
115 118
 	border-bottom: 1px solid #536d7f;
116 119
 }
@@ -213,15 +216,25 @@ body {
213 216
 }
214 217
 .call_situation h3,
215 218
 .accept_statistics .title,
216
-.accept_channel h3,
217
-.key_word h3,
218
-.time_statistics h3,
219
-.test_rank h3 {
219
+.accept_channel h3 {
220 220
 	position: absolute;
221 221
 	left: 213px;
222 222
 	top: 8px;
223 223
 	color: #fff;
224 224
 	z-index: 12;
225
+	font-size: 20px;
226
+}
227
+.key_word h3,
228
+.time_statistics h3,.test_rank h3{
229
+	position: absolute;
230
+	left:183px;
231
+	top:9px;
232
+	color: #fff;
233
+	z-index: 12;
234
+	font-size: 20px;
235
+}
236
+.test_rank .test_title{
237
+	left:216px;
225 238
 }
226 239
 .call_line{
227 240
 	position: absolute;
@@ -241,7 +254,7 @@ body {
241 254
 	background-repeat: no-repeat;
242 255
 	background-position: center;
243 256
 	color: #fff;
244
-	font-size: 14px;
257
+	font-size: 16px;
245 258
 }
246 259
 
247 260
 .accept_channel div {
@@ -1167,7 +1180,7 @@ thead {
1167 1180
 }
1168 1181
 .infoTitle li{
1169 1182
 	float: left;
1170
-	width: 16%;
1183
+	width: 11%;
1171 1184
 	text-align: center;
1172 1185
 	margin-bottom: 10px;
1173 1186
 }
@@ -1406,10 +1419,12 @@ a.aBtn{
1406 1419
 	width: 24% !important; 
1407 1420
 	background-color: rgb(2,112,129);
1408 1421
 	cursor: pointer;
1422
+	color: rgb(0, 246, 255);
1409 1423
 }
1410 1424
  .rankListDetial td.renkList_name{
1411 1425
 	 width: 13% !important; 
1412 1426
 	 background-color: rgb(2,112,129) !important;
1427
+	 
1413 1428
  }
1414 1429
  .rankListDetial .tablebox td{
1415 1430
 	 padding: 54px 20px;

File diff suppressed because it is too large
+ 0 - 1008
WebChartNew/index - 副本.html


+ 5 - 5
WebChartNew/index.html

@@ -132,7 +132,7 @@
132 132
 						</div>
133 133
 					</div>
134 134
 					<div class="test_rank">
135
-						<h3>月度考核排名</h3>
135
+						<h3 class="test_title">月度考核排名</h3>
136 136
 						<div class="count-share">
137 137
 							<div class="com-screen-content">
138 138
 								<div class="topRec_List">
@@ -246,7 +246,7 @@
246 246
 							</div>
247 247
 						</div>
248 248
 						<div class="pie_statistics">
249
-							<h3>问题分类统计</h3>
249
+							<h3 class="keyWordTitle">问题分类统计</h3>
250 250
 							<div class="time">
251 251
 								<p style="text-align: right;margin-left: 30px;" class="statisticsTime">
252 252
 									2021-5-16 00:00:00 至 2021-7-13 23:59:59
@@ -490,7 +490,7 @@
490 490
 								<div>
491 491
 									<p pos="2">
492 492
 										<label class="zb"></label>
493
-										<label></label>
493
+										<label>数量</label>
494 494
 									</p>
495 495
 									<p pos="2">
496 496
 										<label class="zbrate"></label>
@@ -862,7 +862,7 @@
862 862
 							</div>
863 863
 						</div>
864 864
 						<div class="pie_statistics">
865
-							<h3>问题分类统计</h3>
865
+							<h3 class="">问题分类统计</h3>
866 866
 							<div id="keywordPie2" style="width:1100px;height:803px;"></div>
867 867
 						</div>
868 868
 					</div>
@@ -893,7 +893,7 @@
893 893
 							</div>
894 894
 						</div>
895 895
 						<div class="pie_statistics">
896
-							<h3>问题分类统计</h3>
896
+							<h3 class="acceptContTitle">问题分类统计</h3>
897 897
 							<div class="time">
898 898
 								<p style="text-align: right;margin-left: 30px;" class="statisticsTime">
899 899
 									2021-5-16 00:00:00 至 2021-7-13 23:59:59

File diff suppressed because it is too large
+ 734 - 572
WebChartNew/js/index.js


+ 25 - 12
WebChartNew/js/main.js

@@ -15,8 +15,27 @@ var obj = {};
15 15
 var Statess;
16 16
 var cls = 0;
17 17
 var webData;
18
+var dataLength;
18 19
 let callDate = [];
20
+
19 21
 var lasttime = new Date().getTime();
22
+//坐席分析
23
+agentCount();
24
+setInterval(function(){
25
+	agentCount();
26
+},120000)
27
+//坐席数量
28
+function agentCount(){
29
+	$.ajax({
30
+		url: huayi.config.callcenter_url + "SeatMonitoring/getlist",
31
+		data: {},
32
+		async: false,
33
+		dataType:'json',
34
+		success: function(res) {
35
+			dataLength=res.data.length;
36
+		}
37
+	})
38
+}
20 39
 Connect()
21 40
 //创建scoket连接
22 41
 function createWebSocket() {
@@ -52,18 +71,12 @@ function Connect() {
52 71
 		var myDate = new Date();
53 72
 		webData = JSON.parse(evt.data)[0];
54 73
 		if(webData.Type=='GetAgentDetail'){
55
-			//坐席分析
56
-			// new doAjax({
57
-			// 	url: huayi.config.callcenter_url + "SeatMonitoring/getlist",
58
-			// 	data: {},
59
-			// 	callBack: function(res) {
60
-			// 		const outLine=res.data.length - webData.AgentOnlineCount;
61
-			// 		callDate = [res.data.length, webData.AgentOnlineCount, webData.AgentSpeakCount, webData
62
-			// 			.AgentProcessingCount, webData.AgentReposeCount, webData.AgentFreeCount, outLine
63
-			// 		]
64
-			// 		chart1(callDate);
65
-			// 	}
66
-			// });
74
+			const outLine=dataLength - webData.AgentOnlineCount;
75
+			callDate = [dataLength, webData.AgentOnlineCount, webData.AgentSpeakCount, webData
76
+				.AgentProcessingCount, webData.AgentReposeCount, webData.AgentFreeCount, outLine
77
+			]
78
+			chart1(callDate);
79
+			
67 80
 		}
68 81
 	}
69 82
 };

+ 86 - 0
WebChartNew/js/util - 副本.js

@@ -0,0 +1,86 @@
1
+/**
2
+ * ajax的二次封装
3
+ * Created by huantt on 2018/7/16.
4
+ * https://blog.csdn.net/u010791662
5
+ */
6
+
7
+(function () {
8
+    /**
9
+     * 
10
+     * @param opts
11
+     */
12
+    function doAjax(opts) {
13
+        this.url = opts.url;
14
+        this.data = opts.data || {};
15
+        // this.isShowLoad = opts.isShowLoad == undefined ? false : opts.isShowLoad;
16
+        this.Type = opts.Type || "POST";
17
+        this.dataType = opts.dataType || "json";
18
+        this.callBack = opts.callBack;
19
+        this.async = opts.async || true;
20
+        this.contentType = opts.contentType == undefined ? "application/x-www-form-urlencoded" : opts.contentType;
21
+        this.processData = opts.processData == undefined ? true : opts.processData;
22
+        this.error = opts.error || requestError;
23
+        this.init();
24
+    }
25
+
26
+    //初始化
27
+    doAjax.prototype.init = function () {
28
+        this.getRequire();
29
+    };
30
+
31
+    //发送请求
32
+    doAjax.prototype.getRequire = function () {
33
+
34
+        var self = this;
35
+        // if (self.isShowLoad)
36
+        //     showWait(0);
37
+        $.ajax({
38
+                url: self.url,
39
+                data: self.data,
40
+                type: self.Type,
41
+                dataType: self.dataType,
42
+                async: self.async,
43
+                contentType: self.contentType,
44
+                processData: self.processData,
45
+                success: function (res) {
46
+                    beforeResponse(res);
47
+                    if (self.callBack) {
48
+                        if ($.isFunction(self.callBack)) {
49
+                            self.callBack(res);
50
+                        } else {
51
+                            console.log("callBack is not a function");
52
+                        }
53
+                    }
54
+
55
+                },
56
+                error: self.error
57
+            }
58
+        );
59
+    };
60
+    window.doAjax = doAjax;
61
+    return this;
62
+})();
63
+
64
+/**
65
+ * 请求错误的统一处理
66
+ * @param jqXHR
67
+ * @param textStatus
68
+ * @param errorThrown
69
+ */
70
+function requestError(jqXHR, textStatus, errorThrown) {
71
+    /*弹出jqXHR对象的信息*/
72
+    // console.log(jqXHR.responseText);
73
+    console.log(jqXHR.status);
74
+    // console.log(jqXHR.readyState);
75
+    // console.log(jqXHR.statusText);
76
+    // /*弹出其他两个参数的信息*/
77
+    // console.log(textStatus);
78
+    // console.log(errorThrown);
79
+
80
+}
81
+/**
82
+ * 执行回调函数前的统一处理
83
+ * @param result
84
+ */
85
+function beforeResponse(result) {
86
+}

File diff suppressed because it is too large
+ 0 - 384
WebChartNew/text.html