|
|
@@ -16,7 +16,9 @@
|
|
16
|
16
|
<script type="text/javascript">
|
|
17
|
17
|
var stime;
|
|
18
|
18
|
$(function () {
|
|
|
19
|
+ LoadCounts();
|
|
19
|
20
|
LoadList();
|
|
|
21
|
+
|
|
20
|
22
|
});
|
|
21
|
23
|
|
|
22
|
24
|
function StartMonitor() {
|
|
|
@@ -29,7 +31,8 @@
|
|
29
|
31
|
top.OCX_SubscribeData("8", "0");//获取各种数量
|
|
30
|
32
|
top.OCX_SubscribeData("9", "0");//获取坐席列表
|
|
31
|
33
|
GetTimes(); //刷新时间
|
|
32
|
|
- LoadList();
|
|
|
34
|
+ //LoadList();
|
|
|
35
|
+ //LoadCounts();
|
|
33
|
36
|
}
|
|
34
|
37
|
function StopMonitor() {
|
|
35
|
38
|
top.document.getElementById("ismonitoring").value = "false";
|
|
|
@@ -108,6 +111,7 @@
|
|
108
|
111
|
function ChangeValue(times) {
|
|
109
|
112
|
try {
|
|
110
|
113
|
LoadList();
|
|
|
114
|
+ LoadCounts();
|
|
111
|
115
|
if (times < 60) {
|
|
112
|
116
|
return "" + times + "秒";
|
|
113
|
117
|
}
|
|
|
@@ -125,10 +129,37 @@
|
|
125
|
129
|
{ }
|
|
126
|
130
|
}
|
|
127
|
131
|
|
|
|
132
|
+ function LoadCounts()
|
|
|
133
|
+ {
|
|
|
134
|
+ alert("333333");
|
|
|
135
|
+ try {
|
|
|
136
|
+ $.ajax({
|
|
|
137
|
+ type: 'get',
|
|
|
138
|
+ url: '/telmanage/ajax/seatmonitoring.ashx?action=getcounts',
|
|
|
139
|
+ dataType: 'html',
|
|
|
140
|
+ async: false,
|
|
|
141
|
+ cache: false,
|
|
|
142
|
+ success: function (res) {
|
|
|
143
|
+ alert("22222" + res);
|
|
|
144
|
+ if (res != "" && res.indexOf('|') > 0) {
|
|
|
145
|
+ var counts = res.split('|');
|
|
|
146
|
+ document.getElementById("labZTJX").innerText = counts[0];
|
|
|
147
|
+ document.getElementById("labJT").innerText = counts[1];
|
|
|
148
|
+ document.getElementById("labHC").innerText = counts[2];
|
|
|
149
|
+ document.getElementById("labHCJT").innerText = counts[3];
|
|
|
150
|
+ }
|
|
|
151
|
+ }
|
|
|
152
|
+ });
|
|
|
153
|
+ }
|
|
|
154
|
+ catch (e) {
|
|
|
155
|
+ $.ligerDialog.error("加载失败,错误信息:" + e.Message);
|
|
|
156
|
+ }
|
|
|
157
|
+ }
|
|
128
|
158
|
|
|
129
|
159
|
//获取坐席列表
|
|
130
|
160
|
var gridlist;
|
|
131
|
161
|
function LoadList() {
|
|
|
162
|
+ alert("11111"+$("#hidUsers").val());
|
|
132
|
163
|
gridlist = $("#divDataUserList").ligerGrid({
|
|
133
|
164
|
height: '80%',
|
|
134
|
165
|
columns: [
|
|
|
@@ -143,7 +174,7 @@
|
|
143
|
174
|
{ display: '接通量', name: 'F_JTCount', width: 100 },
|
|
144
|
175
|
{ display: '呼出量', name: 'F_HCCount', width: 100 },
|
|
145
|
176
|
{ display: '呼出接通量', name: 'F_HCJTCount', width: 90 }
|
|
146
|
|
- ], url: '/telmanage/ajax/seatmonitoring.ashx?action=getuserslist?users=' + $("#hidUsers").val(), pageSize: 10, rownumbers: true
|
|
|
177
|
+ ], url: '/telmanage/ajax/seatmonitoring.ashx?action=getuserslist&users=' + $("#hidUsers").val(), pageSize: 10, rownumbers: true
|
|
147
|
178
|
|
|
148
|
179
|
});
|
|
149
|
180
|
gridlist.changePage('first');
|