Selaa lähdekoodia

坐席监控只展示话务员

yangjunfeng 4 vuotta sitten
vanhempi
commit
b92db90380
2 muutettua tiedostoa jossa 10 lisäystä ja 2 poistoa
  1. 1 1
      WebChart/TelephoneDetails.html
  2. 9 1
      WebChart/js/TelephoneDetails.js

+ 1 - 1
WebChart/TelephoneDetails.html

@@ -304,7 +304,7 @@
304 304
 			height: 60px;
305 305
 		}
306 306
 		.tx{ 
307
-			width: 70%;
307
+			/* width: 70%; */
308 308
 			height: 60px;
309 309
 		}
310 310
 		.person{

+ 9 - 1
WebChart/js/TelephoneDetails.js

@@ -327,9 +327,17 @@
327 327
 			success: function(data) {
328 328
 				if(data.state.toLowerCase() == 'success') {
329 329
 					// 	   			layer.close(index);
330
+					var newdatas=[]
330 331
 					cons = data.data;
332
+					for(var i=0;i<cons.length;i++){
333
+						console.log(cons[i].F_RoleCode)
334
+						if(cons[i].F_RoleCode=="ZXHWY"){
335
+							newdatas.push(cons[i])
336
+						}
337
+					}
338
+					console.log(newdatas)
331 339
 					$(".users").html('')
332
-					$(cons).each(function(i, n) {
340
+					$(newdatas).each(function(i, n) {
333 341
 						var str = ' <li class="touxiang"><ol class="tx"><li class="person"><span class="yuan_one ">' +
334 342
 							'</span><span class="yuan_two"></span></li><li class="userid">' +
335 343
 							n.F_UserCode + '</li></ol></li>';