Browse Source

修改话务量

zhangshuangnan 7 years ago
parent
commit
8193d29add
2 changed files with 43 additions and 30 deletions
  1. 1 1
      WebChart_2.0/TelephoneDetails.html
  2. 42 29
      WebChart_2.0/js/TelephoneDetails.js

+ 1 - 1
WebChart_2.0/TelephoneDetails.html

38
 				<div class="phone_top">
38
 				<div class="phone_top">
39
 				<div class="legend_bar clearfix">
39
 				<div class="legend_bar clearfix">
40
 					<div class="title_word pull-left">
40
 					<div class="title_word pull-left">
41
-						<span class="col-line"></span> 坐席闲忙比例
41
+						<span class="col-line"></span> 坐席话务量
42
 					</div>
42
 					</div>
43
 					<div class="time_box pull-right form-inline">
43
 					<div class="time_box pull-right form-inline">
44
 						日期<input type="text" id="time1" class="times" />
44
 						日期<input type="text" id="time1" class="times" />

+ 42 - 29
WebChart_2.0/js/TelephoneDetails.js

29
 				color: ['#4ab7c7', '#2484d9', '#2e39c1'],
29
 				color: ['#4ab7c7', '#2484d9', '#2e39c1'],
30
 				tooltip: {
30
 				tooltip: {
31
 					trigger: 'axis',
31
 					trigger: 'axis',
32
-					axisPointer: {
33
-						type: 'shadow',
34
-						label: {
35
-							show: true,
36
-							backgroundColor: '#333'
32
+						axisPointer: {
33
+							type: 'cross',
34
+							label: {
35
+								show: true,
36
+								backgroundColor: '#333'
37
+							}
37
 						}
38
 						}
38
-					},
39
-					formatter: function(datas) {
40
-						var res = datas[0].name + '<br/>',
41
-							val;
42
-						for(var i = 0, length = datas.length; i < length; i++) {
43
-							val = (datas[i].value) + '%';
44
-							res += datas[i].seriesName + ':' + val + '<br/>';
45
-						}
46
-						return res;
47
-					}
48
 				},
39
 				},
49
 				legend: {
40
 				legend: {
50
 					top: 'top',
41
 					top: 'top',
51
 					left: '135px',
42
 					left: '135px',
52
-					data: ['置忙', '通话', '空闲'],
43
+					data: ['呼入量', '呼入接通量', '呼出','呼出接通量'],
53
 					textStyle: {
44
 					textStyle: {
54
 						color: '#00e9ff'
45
 						color: '#00e9ff'
55
 					}
46
 					}
61
 					containLabel: true
52
 					containLabel: true
62
 					},
53
 					},
63
 				xAxis: {
54
 				xAxis: {
64
-					name: '',
55
+					name: '坐席',
65
 					data: [],
56
 					data: [],
66
 					axisLine: {
57
 					axisLine: {
67
 						lineStyle: {
58
 						lineStyle: {
81
 
72
 
82
 				},
73
 				},
83
 				yAxis: {
74
 				yAxis: {
84
-					name: '(比率)',
75
+					name: '',
85
 					splitLine: {
76
 					splitLine: {
86
 						show: false
77
 						show: false
87
 					},
78
 					},
98
 					}
89
 					}
99
 				},
90
 				},
100
 				series: [{
91
 				series: [{
101
-					name: '置忙',
102
-					type: 'bar',
92
+					name: '呼入量',
93
+					type: 'line',
94
+					smooth: true,
95
+							showAllSymbol: true,
96
+							symbol: "emptyCircle",
97
+							symbolSize: 10,
103
 					data: []
98
 					data: []
104
 				}, {
99
 				}, {
105
-					name: '通话',
106
-					type: 'bar',
100
+					name: '呼入接通量',
101
+					type: 'line',
102
+					smooth: true,
103
+							showAllSymbol: true,
104
+							symbol: "emptyCircle",
105
+							symbolSize: 10,
107
 					data: []
106
 					data: []
108
 				}, {
107
 				}, {
109
-					name: '空闲',
110
-					type: 'bar',
108
+					name: '呼出',
109
+					type: 'line',
110
+					smooth: true,
111
+							showAllSymbol: true,
112
+							symbol: "emptyCircle",
113
+							symbolSize: 10,
114
+					data: []
115
+				}, {
116
+					name: '呼出接通量',
117
+					type: 'line',
118
+					smooth: true,
119
+					showAllSymbol: true,
120
+					symbol: "emptyCircle",
121
+					symbolSize: 10,
111
 					data: []
122
 					data: []
112
 				}]
123
 				}]
113
 
124
 
115
 			function partOne(starts,ends) {
126
 			function partOne(starts,ends) {
116
 				$.ajax({
127
 				$.ajax({
117
 					type: "get",
128
 					type: "get",
118
-					url: huayi.config.callcenter_url + "info/GetUserStateCount24ByDate",
129
+					url: huayi.config.callcenter_url + "info/GetAgentTelCount",
119
 					async: true,
130
 					async: true,
120
 					dataType: 'json',
131
 					dataType: 'json',
121
 					data: {
132
 					data: {
128
 							var con = data.data;
139
 							var con = data.data;
129
 							sitProportion.setOption({
140
 							sitProportion.setOption({
130
 								xAxis: {
141
 								xAxis: {
131
-									data: con.hours
142
+									data: con.users
132
 								},
143
 								},
133
 								series: [{
144
 								series: [{
134
-									data: con.thpercents
145
+									data: con.incount
146
+								},{
147
+									data:con.inconnectcount
135
 								},{
148
 								},{
136
-									data:con.zmpercents
149
+									data:con.outcount
137
 								},{
150
 								},{
138
-									data:con.kxpercents
151
+									data:con.outconnectcount
139
 								}]
152
 								}]
140
 
153
 
141
 							})
154
 							})