miaofuhao 1 rok temu
rodzic
commit
23e0526db8

+ 1 - 1
WebChartNewest/css/index.css

@@ -1099,7 +1099,7 @@ input::-webkit-input-placeholder{
1099 1099
 	margin-bottom: 10px;
1100 1100
 }
1101 1101
 .zx_charts .realTimeTraffi{
1102
-	width: 521px;
1102
+	/*width: 521px;*/
1103 1103
 	height: 208px;
1104 1104
 }
1105 1105
 

+ 3 - 3
WebChartNewest/index.html

@@ -82,7 +82,7 @@
82 82
 				<!-- 调度专题 -->
83 83
 				<div class="accept_channel">
84 84
 					<div class="title_img">
85
-						<h2 class="cutDispatchHandle">调度专题</h2>
85
+						<h2 class="cutDispatchHandle">调度专题</h2>
86 86
 					</div>
87 87
 					<div class="btn_rank">
88 88
 						<span data-state='0' id="themeRate"></span>
@@ -102,8 +102,8 @@
102 102
 					<!--注释--专题,分类单位切换,增加日月专题切换-->
103 103
 					<div class="dataT act">
104 104
 						<input hidden="hidden" id="themeClassType" value="0"/>
105
-						<label  class="newDataAct" data-pos="1" indexTitle="专题">
106
-							日调度<span class="day"></span>
105
+						<label  class="newDataAct" data-pos="1" indexTitle="专题">
106
+							周专题<span class="day"></span>
107 107
 						</label><br>
108 108
 						<label  class="newDataAct" data-pos="2" indexTitle="月专题">
109 109
 							月调度<span class="month active"></span>

+ 5 - 1
WebChartNewest/js/dispatTopic/dispatTopic.js

@@ -82,8 +82,12 @@ function cutHotThings() {
82 82
 					name = v.deptName ? v.deptName.replace(/[0-9]+/g, "") : '其他'
83 83
 				} else {
84 84
 					name = v.F_Name ? v.F_Name.replace(/[0-9]+/g, "") : '其他'
85
+					if(dispatTopicType == 2){
86
+						if(v.F_Cycle.indexOf('年'!== -1))
87
+						name = v.F_Cycle.split('年')[1] + name 
88
+					}
85 89
 				}
86
-
90
+				
87 91
 				nameData.push(name)
88 92
 				var objCount = {}
89 93
 				objCount.count = v.count

+ 196 - 0
WebChartNewest/js/index.js

@@ -751,6 +751,7 @@ function getworkOrderType() {
751 751
 	});
752 752
 }
753 753
 
754
+
754 755
 function hotThingsChart(dom, data, count, count1, rotate = 0,conNumData) {
755 756
 	window.onresize = function() {
756 757
 		hotThings.resize()
@@ -951,6 +952,201 @@ function hotThingsChart(dom, data, count, count1, rotate = 0,conNumData) {
951 952
 	
952 953
 }
953 954
 
955
+function hotThingsChartMain(dom, data, count, count1, rotate = 0,conNumData) {
956
+	window.onresize = function() {
957
+		hotThings.resize()
958
+	}
959
+	option = {
960
+		textStyle: {
961
+			color: "#c0c3cd",
962
+			fontSize: 11
963
+		},
964
+		grid: {
965
+			top: '25%',
966
+			bottom: '30%'
967
+		},
968
+		xAxis: {
969
+			nameTextStyle: {
970
+				color: "#c0c3cd",
971
+				padding: [0, 0, -10, 0],
972
+				fontSize: 11
973
+			},
974
+			axisLabel: {
975
+				color: "#c0c3cd",
976
+				fontSize: 11,
977
+				rotate: rotate,
978
+			},
979
+			axisTick: {
980
+				lineStyle: {
981
+					color: "#8398c4",
982
+					width: 1
983
+				},
984
+				show: false
985
+			},
986
+			minorTick: {
987
+				length: 8
988
+			},
989
+			splitLine: {
990
+				show: false
991
+			},
992
+			axisLine: {
993
+				lineStyle: {
994
+					color: "#8398c4",
995
+					width: 1,
996
+					type: "solid"
997
+				},
998
+				show: true
999
+			},
1000
+			data: data,
1001
+			type: "category"
1002
+		},
1003
+		yAxis: {
1004
+			nameTextStyle: {
1005
+				color: "#c0c3cd",
1006
+				padding: [0, 0, 10, -5],
1007
+				fontSize: 11
1008
+			},
1009
+			axisLabel: {
1010
+				color: "#c0c3cd",
1011
+				fontSize: 11
1012
+			},
1013
+			axisTick: {
1014
+				lineStyle: {
1015
+					color: "#8398c4",
1016
+					width: 1
1017
+				},
1018
+				show: true
1019
+			},
1020
+			splitLine: {
1021
+				show: true,
1022
+				lineStyle: {
1023
+					color: "#8398c4",
1024
+					type: "dashed"
1025
+				}
1026
+			},
1027
+			axisLine: {
1028
+				lineStyle: {
1029
+					color: "#8398c4",
1030
+					width: 1,
1031
+					type: "solid"
1032
+				},
1033
+				show: true,
1034
+				// "symbol":['none', 'arrow'],
1035
+				symbol: ['none', 'path://M5, 20 L5, 5 L8, 8 L5, 2 L2, 8 L5, 5 L5.3, 6 L5.3,                  20'],
1036
+				symbolOffset: 5,
1037
+				symbolSize: [35, 38],
1038
+			},
1039
+			name: "条"
1040
+		},
1041
+		series: [{
1042
+				data: count,
1043
+				type: "bar",
1044
+				barMaxWidth: "auto",
1045
+				barWidth: 15,
1046
+				itemStyle: {
1047
+					color: {
1048
+						x: 0,
1049
+						y: 0,
1050
+						x2: 0,
1051
+						y2: 1,
1052
+						type: "linear",
1053
+						global: false,
1054
+						colorStops: [{
1055
+							offset: 0,
1056
+							color: "#ff4519"
1057
+						}, {
1058
+							offset: 1,
1059
+							color: "#fff500"
1060
+						}]
1061
+					},
1062
+					barBorderRadius: [30, 30, 0, 0]
1063
+				},
1064
+				label: {
1065
+					show: true,
1066
+					position: "top",
1067
+					distance: 10,
1068
+					color: "#fff"
1069
+				},
1070
+				emphasis: {
1071
+					itemStyle: {
1072
+						color: new echarts.graphic.LinearGradient(
1073
+							0, 0, 0, 1, [{
1074
+									offset: 0,
1075
+									color: '#fde301'
1076
+								},
1077
+								{
1078
+									offset: 1,
1079
+									color: '#0a2f3e'
1080
+								}
1081
+							]
1082
+						)
1083
+					}
1084
+				},
1085
+			},
1086
+			{
1087
+				data: conNumData,
1088
+				type: "line",
1089
+				symbolSize: 0, // symbol的大小设置为0
1090
+			    showSymbol: false, // 不显示symbol
1091
+			    lineStyle: {
1092
+			        width: 0, // 线宽是0
1093
+			        color: 'rgba(0, 0, 0, 0)' // 线的颜色是透明的
1094
+			    }
1095
+			},
1096
+			{
1097
+				data: [1, 1, 1, 1, 1, 1],
1098
+				type: "pictorialBar",
1099
+				barMaxWidth: "20",
1100
+				symbol: "none",
1101
+			},
1102
+			{
1103
+				// "data": [1500, 1148, 756, 1395, 1750, 1148],
1104
+				type: "pictorialBar",
1105
+				barMaxWidth: "20",
1106
+				symbolPosition: "end",
1107
+				symbol: "none",
1108
+				symbolOffset: [0, "-50%"],
1109
+				symbolSize: [30, 12],
1110
+				zlevel: 1
1111
+			},
1112
+			{
1113
+				data: count1,
1114
+				type: "bar",
1115
+				barMaxWidth: "auto",
1116
+				barWidth: 15,
1117
+				barGap: "-100%",
1118
+				itemStyle: {
1119
+					color: '#234caf'
1120
+				},
1121
+				zlevel: -1
1122
+			}, {
1123
+				data: [1, 1, 1, 1, 1, 1],
1124
+				type: "pictorialBar",
1125
+				barMaxWidth: "20",
1126
+				symbol: "none",
1127
+				symbolOffset: [0, "50%"],
1128
+				symbolSize: [30, 15],
1129
+				zlevel: -2
1130
+			}, {
1131
+				data: count1,
1132
+				type: "pictorialBar",
1133
+				barMaxWidth: "20",
1134
+				symbolPosition: "end",
1135
+				symbol: "circle",
1136
+				symbolOffset: [0, "-60%"],
1137
+				symbolSize: [15, 12],
1138
+				itemStyle: {
1139
+					color: '#234caf'
1140
+				},
1141
+				zlevel: -1
1142
+			},
1143
+		]
1144
+	}
1145
+	
1146
+	callSeatState.setOption(option);
1147
+	
1148
+}
1149
+
954 1150
 function getKeyInfo(keyid, n) {
955 1151
 	$('.keyInfo').html('');
956 1152
 	new doAjax({

+ 2 - 1
WebChartNewest/js/main.js

@@ -3,6 +3,7 @@ if(typeof console == "undefined") {
3 3
 		log: function(msg) {}
4 4
 	};
5 5
 }
6
+var callSeatState = echarts.init(document.getElementById("callSeatState"));
6 7
 // 如果浏览器不支持websocket,会使用这个flash自动模拟websocket协议,此过程对开发者透明
7 8
 WEB_SOCKET_SWF_LOCATION = "./js/websocket/WebSocketMain.swf";
8 9
 // 开启flash的websocket debug
@@ -216,7 +217,7 @@ function Connect() {
216 217
 				callDate = [Number(data.AgentOnlineCount), Number(data.WaiteCallCount), Number(hwcount), Number(jtcount)]
217 218
 				const outLine = dataLength - data.AgentOnlineCount;
218 219
 				callSeatStateData = [data.WaiteCallCount, data.AgentSpeakCount, data.AgentProcessingCount, data.AgentReposeCount, data.AgentFreeCount]
219
-//				hotThingsChart('callSeatState', callSeatStateName, callSeatStateData, 500)
220
+				hotThingsChartMain('callSeatState', callSeatStateName, callSeatStateData, 500)
220 221
 			}
221 222
 			
222 223
 		}

+ 2 - 2
WebUI/CallCenterWeb.UI/Script/Common/huayi.config.js

@@ -3,9 +3,9 @@
3 3
 }
4 4
 //var AYWebUrl = window.document.location.href
5 5
 huayi.config = {
6
-	callcenter_url: "http://192.168.8.9:1042/",// 生产环境	39.164.159.226
6
+//	callcenter_url: "http://192.168.8.9:1042/",// 生产环境	39.164.159.226
7 7
 //	callcenter_url: "http://39.164.159.226:1042/",// 生产环境	39.164.159.226
8
-//		callcenter_url: "http://docking.zwfw.anyang.gov.cn:65527/", // 生产环境 
8
+		callcenter_url: "http://docking.zwfw.anyang.gov.cn:65527/", // 生产环境 
9 9
 	socket_ip: "ws://39.164.159.226:8081", //ip 
10 10
 	// socket_ip: "wss://12345sp.zwfw.anyang.gov.cn:8082", //ip 
11 11
 	//	translation_socket:"ws://125.45.12.102:12233",

BIN
anyangWebAPP.zip