Explorar el Código

修改话务量

zhangshuangnan %!s(int64=7) %!d(string=hace) años
padre
commit
8193d29add
Se han modificado 2 ficheros con 43 adiciones y 30 borrados
  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,7 +38,7 @@
38 38
 				<div class="phone_top">
39 39
 				<div class="legend_bar clearfix">
40 40
 					<div class="title_word pull-left">
41
-						<span class="col-line"></span> 坐席闲忙比例
41
+						<span class="col-line"></span> 坐席话务量
42 42
 					</div>
43 43
 					<div class="time_box pull-right form-inline">
44 44
 						日期<input type="text" id="time1" class="times" />

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

@@ -29,27 +29,18 @@
29 29
 				color: ['#4ab7c7', '#2484d9', '#2e39c1'],
30 30
 				tooltip: {
31 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 40
 				legend: {
50 41
 					top: 'top',
51 42
 					left: '135px',
52
-					data: ['置忙', '通话', '空闲'],
43
+					data: ['呼入量', '呼入接通量', '呼出','呼出接通量'],
53 44
 					textStyle: {
54 45
 						color: '#00e9ff'
55 46
 					}
@@ -61,7 +52,7 @@
61 52
 					containLabel: true
62 53
 					},
63 54
 				xAxis: {
64
-					name: '',
55
+					name: '坐席',
65 56
 					data: [],
66 57
 					axisLine: {
67 58
 						lineStyle: {
@@ -81,7 +72,7 @@
81 72
 
82 73
 				},
83 74
 				yAxis: {
84
-					name: '(比率)',
75
+					name: '',
85 76
 					splitLine: {
86 77
 						show: false
87 78
 					},
@@ -98,16 +89,36 @@
98 89
 					}
99 90
 				},
100 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 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 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 122
 					data: []
112 123
 				}]
113 124
 
@@ -115,7 +126,7 @@
115 126
 			function partOne(starts,ends) {
116 127
 				$.ajax({
117 128
 					type: "get",
118
-					url: huayi.config.callcenter_url + "info/GetUserStateCount24ByDate",
129
+					url: huayi.config.callcenter_url + "info/GetAgentTelCount",
119 130
 					async: true,
120 131
 					dataType: 'json',
121 132
 					data: {
@@ -128,14 +139,16 @@
128 139
 							var con = data.data;
129 140
 							sitProportion.setOption({
130 141
 								xAxis: {
131
-									data: con.hours
142
+									data: con.users
132 143
 								},
133 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
 							})